• dimal

    (@dimalifragis)


    [23-Jan-2022 19:56:43 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/wp-content/plugins/wp-super-cache/wp-cache.php on line 2050

    WP 5.8.3 and PHP 7.4.x

Viewing 4 replies - 1 through 4 (of 4 total)
  • Такая же проблема. Query Monitor показывает ошибки PHP.
    Предупреждения: Invalid argument supplied for foreach()

    wp-content/plugins/wp-super-cache/wp-cache.php:2050
    wp_cache_edit_rejected_cookies()
    wp-content/plugins/wp-super-cache/wp-cache.php:1199
    wp_cache_manager()
    wp-includes/class-wp-hook.php:307
    do_action('settings_page_wpsupercache')
    wp-admin/admin.php:259

    WP 5.9 и PHP 7.4.x

    This has been fixed in the latest release out today.

    Да Спасибо!
    Но теперь появилась вот такое уведомление от Query Monitor:

    Уведомления	Undefined variable: wp_cache_mobile_prefixes	1	
    wp-content/plugins/wp-super-cache/partials/advanced.php:72
    wpsc_render_partial()
    wp-content/plugins/wp-super-cache/wp-cache.php:1055
    wp_cache_manager()
    wp-includes/class-wp-hook.php:307
    do_action('settings_page_wpsupercache')
    wp-admin/admin.php:259
    Плагин: wp-super-cache

    Thanks for reporting that.

    Grab the development version of the plugin from http://odd.blog/y/2o and install it if you’d like a fix for this.

    Or make the same change I did to wp-cache.php here: https://github.com/Automattic/wp-super-cache/pull/803/files

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Warning: Invalid argument supplied for foreach()’ is closed to new replies.