Title: PHP 7.1 errors
Last modified: December 3, 2016

---

# PHP 7.1 errors

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-1-errors/)
 * After upgrading to PHP 7.1, I get this in my logs:
 * (this site 4.7 RC2)
 *     ```
       PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /var/www/stevenstern.us/wordpress/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:584\nStack trace:\n#0 /var/www/stevenstern.us/wordpress/wp-content/plugins/wp-super-cache/wp-cache-phase2.php(313): wp_cache_get_ob('<!DOCTYPE html>...')\n#1 [internal function]: wp_cache_ob_callback('<!DOCTYPE html>...', 9)\n#2 /var/www/stevenstern.us/wordpress/wp-includes/functions.php(3673): ob_end_flush()\n#3 /var/www/stevenstern.us/wordpress/wp-includes/class-wp-hook.php(298): wp_ob_end_flush_all('')\n#4 /var/www/stevenstern.us/wordpress/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)\n#5 /var/www/stevenstern.us/wordpress/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#6 /var/www/stevenstern.us/wordpress/wp-includes/load.php(670): do_action('shutdown')\n#7 [internal function]: shutdown_action_!
        hook()\n#8 {main}\n  thrown in /var/www/stevenstern.us/wordpress/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 584, referer: https://www.stevenstern.me/2015/01/stock-up-on-those-little-batteries-now-before/
       ```
   
 * and
 *     ```
       legal string offset 'headers' in /var/www/stevenstern.us/wordpress/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 584, referer: https://www.stevenstern.me/2015/01/pretty-damn-close-give-em-a-cigar-spacex/
       ```
   
 * and this on a 4.6 site:
 *     ```
       [Sat Dec 03 13:03:03.857250 2016] [php7:error] [pid 6225] [client 205.178.123.47:43894] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /var/www/lvr2/wordpress/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:584\nStack trace:\n#0 /var/www/lvr2/wordpress/wp-content/plugins/wp-super-cache/wp-cache-phase2.php(313): wp_cache_get_ob('<!DOCTYPE html>...')\n#1 [internal function]: wp_cache_ob_callback('<!DOCTYPE html>...', 9)\n#2 /var/www/lvr2/wordpress/wp-includes/functions.php(3598): ob_end_flush()\n#3 /var/www/lvr2/wordpress/wp-includes/plugin.php(524): wp_ob_end_flush_all('')\n#4 /var/www/lvr2/wordpress/wp-includes/load.php(671): do_action('shutdown')\n#5 [internal function]: shutdown_action_hook()\n#6 {main}\n  thrown in /var/www/lvr2/wordpress/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 584
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Joe Fusco](https://wordpress.org/support/users/joefusco/)
 * (@joefusco)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-1-errors/#post-8530227)
 * +1 – I am also receiving the same errors after moving to PHP 7.1
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-1-errors/#post-8530242)
 * I backed off 7.1 and am back to 7.0 — I ran into way too many plugin issues. 
   Not a long term solution, but given that 7.1 has been out for just a week or 
   so, I think we have to give the devs some time.
 *  [Pothi Kalimuthu](https://wordpress.org/support/users/pothi/)
 * (@pothi)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-1-errors/#post-8545673)
 * Fix is on the way. [https://github.com/Automattic/wp-super-cache/pull/158](https://github.com/Automattic/wp-super-cache/pull/158)
 *  [doume](https://wordpress.org/support/users/doume/)
 * (@doume)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-1-errors/#post-8563443)
 * Fix is available in the current development version.
    Works on PHP7.1.0 + WP4.7
   local server.
 *  [Milos Spasic](https://wordpress.org/support/users/spale/)
 * (@spale)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-1-errors/#post-8660445)
 * When this fix is going to be released as official plugin update?
    -  This reply was modified 9 years, 4 months ago by [Milos Spasic](https://wordpress.org/support/users/spale/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP 7.1 errors’ 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/)

 * 5 replies
 * 5 participants
 * Last reply from: [Milos Spasic](https://wordpress.org/support/users/spale/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-1-errors/#post-8660445)
 * Status: not resolved