WP-Super Cache "Developmental" Fatal Error …Array
-
Just upgraded to Developmental version of super cache. Using most recent version of WP. I’m using Legacy Mode.
Got this message when i ran a test:
Cannot use object of type WP_Error as array in …/wp-content/plugins/wp-super-cache/wp-cache.php on line 570These are lines 570-572:
if ( $page[ ‘response’ ][ ‘code’ ] != 200 || $page2[ ‘response’ ][ ‘code’ ] != 200 ) {
echo ‘<p>‘ . __( ‘One or more page requests failed:’, ‘wp-super-cache’ ) . ‘</p>’;
echo ‘- ‘ . sprintf( __( ‘Page %d: %d (%s)’, ‘wp-super-cache’ ), 1, $page[ ‘response’ ][ ‘code’ ], $page[ ‘response’ ][ ‘message’ ] ) . ‘
‘;
I had a similar problem with the regular/most current version of Super Cache, but it was line 473. I thought this upgrade would fix the problem, and I guess it did, but it has created another one. I’m sure this is easy to fix though.
Any thoughts?
Thanks!
UPDATE 1:
When I change the setting from legacy to mod mode or PHP mode, i’m getting the following warning:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /wp-content/plugins/wp-super-cache/wp-cache.php on line 1848Line 1848 says:
if ( array_key_exists(‘fsize’, $cache_stats[ ‘supercache’ ]) )
$fsize = $cache_stats[ ‘supercache’ ][ ‘fsize’ ] / 1024;Thanks!
UPDATE 2:
In the Mod setting, looks like i’m having the Fatal Error line 570 problem again. The Warning…line 1848 problem seems to be gone.
- The topic ‘WP-Super Cache "Developmental" Fatal Error …Array’ is closed to new replies.