Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #291736

    Hi,

    I’m using ENFOLD 2.9.1 and without having changed/updating anything at my site in the last days (site is currently in Maintenance Mode) I see as “network admin” at the plugins page this error:

    Warning: Invalid argument supplied for foreach() in ......./wp-includes/update.php on line 295

    LIne 295 in der update.php in wp-includes is:
    foreach ( $response['plugins'] as &$plugin ) {

    I have done now a LOT of debugging, de-activated and deleted all plugins, and as soon as I de-activate ENFOLD and replaced it with Twentyfourteen Theme, this error is gone. Yes, I have also downloaded the WordPress files and replaced them with the fresh ones!

    By the way, I remember, that I have found this error somewhere in this forum some time ago, too, where you have suggested to put
    in ENFOLD’s function.php:
    add_theme_support('avia_manual_updates_only');
    and I have done this – without success.

    After searching a lot with Google I have found this:
    http://wordpress.org/support/topic/plugins-update-php-warnings?replies=1

    Maybe it is somewhere in ENFOLD’s theme files a similar “behaviour” (German Umlauts?)

    As soon as I de-activate ENFOLD 2.9.1, the error with update.php is gone and I see again the update notification for my plugins. As soon as I activate ENFOLD again, the error mentioned above is there again.

    (Using WP 3.9.1 network installation, the WordPress download from wpde.org (German WordPress), ENFOLD 2.9.1, all plugins disabled, no caching plugin installed, PHP 5.5 at a German Hoster).

    Any idea?
    Thanks.

    #291907

    Hey!

    Try installing a WordPress copy from here.

    Also, you can hide those ‘warnings’ with a code like this in functions.php or wp-config.php:

    error_reporting(E_ERROR | E_PARSE);
    

    Regards,
    Josue

    #291982

    Hi,

    haven’t you read my post?
    I DO HAVE installed WordPress anew!

    Secondly, it is not correct to “hide” error warnings:
    these “error warnings” you’d like to hide cause, that I cannot see any updates, neither if there’s an update for WordPress, nor if there is an update for a plugin, neither as normal admin I see this, nor as network admin.

    So it need to be solved and not to be “hidden”!

    I have spent a LOT of debugging time and it is caused with or from ENFOLD 2.9.1 together with PHP 5.5.

    #292160

    Hi,

    I don’t know if you noted it but i suggested to install a copy from the WordPress default repository to discard if its a problem with the localized version (sometimes there are differences that could cause these warnings).

    Also, the error_reporting code was meant to be taken as a temporary workaround, no need to alarm :)

    Best regards,
    Josue

    #292162

    Yes, I will try this with the WP from default rep, but this installation worked all the years with ENFOLD, only since ENFOLD 2.9.1 together with PHP 5.5 is this error (http://wordpress.org/support/topic/plugins-update-php-warnings?replies=1).

    #292576

    Hey!

    We’ll monitor the issue and check if more users report it. We use an envato class ( https://github.com/envato/envato-wordpress-toolkit-library ) for the theme updater and maybe it triggers this error somehow.

    Best regards,
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.