Title: Illegal string offset
Last modified: January 24, 2017

---

# Illegal string offset

 *  [brazeroo](https://wordpress.org/support/users/brazeroo/)
 * (@brazeroo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/illegal-string-offset-31/)
 * Hi,
 * I have a big error with wp super cache.
 * The script create a cache file every time the pages are loaded…
 * But worse, i have errors on my pages :
    <b>Warning</b>: Illegal string offset‘
   headers’ in <b>/htdocs/wp-content/plugins/wp-super-cache/wp-cache-phase2.php</
   b> on line <b>584</b><br /> <br /> <b>Fatal error</b>: Uncaught Error: Cannot
   use string offset as an array in /htdocs/wp-content/plugins/wp-super-cache/wp-
   cache-phase2.php:584 Stack trace: #0 /htdocs/wp-content/plugins/wp-super-cache/
   wp-cache-phase2.php(313): wp_cache_get_ob(‘\t<!DOCTYPE html…’) #1 [internal function]:
   wp_cache_ob_callback(‘\t<!DOCTYPE html…’, 9) #2 /htdocs/wp-includes/functions.
   php(3718): ob_end_flush() #3 /htdocs/wp-includes/class-wp-hook.php(298): wp_ob_end_flush_all(”)#
   4 /htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)#
   5 /htdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #6 /htdocs/wp-
   includes/load.php(677): do_action(‘shutdown’) #7 [internal function]: shutdown_action_hook()#
   8 {main} thrown in <b>/htdocs/wp-content/plugins/wp-super-cache/wp-cache-phase2.
   php</b> on line <b>584</b><br />
 * Can you help me ?
 * Regards
    Diego

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

 *  [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/illegal-string-offset-31/#post-8697431)
 * It’s possible that [this problem](https://wordpress.org/support/topic/fatal-error-on-php-7-1/)
   is relevant. If you’re running PHP 7.1 on your server, that might be the crux
   of the issue.
 *  [Soren Guldberg Kjer](https://wordpress.org/support/users/fairsosworld/)
 * (@fairsosworld)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/illegal-string-offset-31/#post-8705168)
 * I have maybe same problem how to move the text see screenshot here [http://take.ms/IwEw5](http://take.ms/IwEw5)
   when I turn off caches, it move away.
 * I just try to change PHP 7.1 to 7.0.
    I’m not sure about it will help. Hope someone
   can help with an answer.
 * Kind Regards Søren
    -  This reply was modified 9 years, 3 months ago by [Soren Guldberg Kjer](https://wordpress.org/support/users/fairsosworld/).

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

The topic ‘Illegal string offset’ 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/)

 * 3 replies
 * 4 participants
 * Last reply from: [ChrisFo](https://wordpress.org/support/users/chrisfo/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/illegal-string-offset-31/#post-8715381)
 * Status: not resolved