XAMPP not checking for wordpress plugin updates
Posted: 11. May 2014 09:16
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:
Works fine on the server, just not in xampp.
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.