Page 1 of 1

XAMPP not checking for wordpress plugin updates

PostPosted: 11. May 2014 09:16
by IceDarkness
I seem to be having a weird problem with XAMPP and wordpress. Since the new versions, it will no longer check for plugin updates and instead gives this error at the top of the page:

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

The code in the file is this:

Code: Select all
   $response = json_decode( wp_remote_retrieve_body( $raw_response ), true );
   foreach ( $response['plugins'] as &$plugin ) {
      $plugin = (object) $plugin;
   }


Works fine on the server, just not in xampp.

Re: XAMPP not checking for wordpress plugin updates

PostPosted: 11. May 2014 20:04
by Altrea
Wordpress issue, you should ask that at a wordpress support board.
Very common the used Wordpress version is not able to run on the PHP version you are using (your Live Server very common uses a different version).

Re: XAMPP not checking for wordpress plugin updates

PostPosted: 15. May 2014 16:59
by IceDarkness
Yeah, looks like my server is running PHP 5.4.23 and xampp is 5.5.11.