Title: PHP Error/Warning in Cache File
Last modified: August 21, 2016

---

# PHP Error/Warning in Cache File

 *  [Jeffrey Schutzman](https://wordpress.org/support/users/jeffpyebrookcom/)
 * (@jeffpyebrookcom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-errorwarning-in-cache-file/)
 * Getting an invalid warning at line 1207 of wp-cache-phase-2.php. Fixed it by 
   replacing the conditional with the following:
 *     ```
       if ( is_array($posts) && isset( $posts[0] ) && ( is_single() || is_page() ) ) {
       		 return $posts[0]->ID;
       	}
       ```
   

The topic ‘PHP Error/Warning in Cache File’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jeffrey Schutzman](https://wordpress.org/support/users/jeffpyebrookcom/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/php-errorwarning-in-cache-file/)
 * Status: not resolved