Tagged: enfold, Invalid argument., plugins, update
-
AuthorPosts
-
July 15, 2014 at 6:18 pm #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=1Maybe 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.July 16, 2014 at 1:39 am #291907Hey!
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,
JosueJuly 16, 2014 at 9:56 am #291982Hi,
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.
July 16, 2014 at 6:20 pm #292160Hi,
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,
JosueJuly 16, 2014 at 6:22 pm #292162Yes, 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).
July 17, 2014 at 5:31 pm #292576Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.