Title: Erro: Illegal string offset
Last modified: August 21, 2016

---

# Erro: Illegal string offset

 *  Resolved [Jabed Shoeb](https://wordpress.org/support/users/onnoysomoy/)
 * (@onnoysomoy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/)
 * Hi,
    I am facing problem with Genesis simple sidebar plugin after upgrade. Please
   see below error code.
 *     ```
       Warning: Illegal string offset 'name' in /....../......../public_html/wp-content/plugins/genesis-simple-sidebars/plugin.php on line 105
   
       Warning: Illegal string offset 'description' in /....../....../public_html/wp-content/plugins/genesis-simple-sidebars/plugin.php on line 107
       ```
   
 * What should I do? I have Latest Genesis Version and Custom Child Theme on site.
 * Waiting to hear from you soon.
 * [http://wordpress.org/plugins/genesis-simple-sidebars/](http://wordpress.org/plugins/genesis-simple-sidebars/)

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/erro-illegal-string-offset/?output_format=md)
[1](https://wordpress.org/support/topic/erro-illegal-string-offset/?output_format=md)
2

 *  [gsacheli](https://wordpress.org/support/users/gsacheli/)
 * (@gsacheli)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119985)
 * Super Nick 🙂
    everyday I discover something new! Today I was playing with NewRelict
   and I noticed a very high error rate, all of them with this message “Illegal 
   string offset ‘description'”… The website works fine and no warning in the admin
   page, but NewRelict…Some lurking and I found this page, I replaced the plugin.
   php file inside the plugin directory and the error rate drop to 0%… Amazing internet
   <3
 * Thanks Nick
 *  [dni777](https://wordpress.org/support/users/dni777/)
 * (@dni777)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119988)
 * Having the same issue.
    Tried replacing the code with what Nick posted above,
   to no avail. So I FTPed in and removed the plugin – but still getting this:
 * Warning: Illegal string offset ‘name’ in /home/myservername/public_html/wp-content/
   plugins/genesis-simple-sidebars/plugin.php on line 105
 * Warning: Illegal string offset ‘description’ in /home/myservername/public_html/
   wp-content/plugins/genesis-simple-sidebars/plugin.php on line 107
 *  [dni777](https://wordpress.org/support/users/dni777/)
 * (@dni777)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119989)
 * And to top it off, I can’t get into my Admin area.
 * Getting this error
 * **Warning: ** Cannot modify header information – headers already sent by (output
   started at /home/myservername/public_html/wp-content/plugins/genesis-simple-sidebars/
   plugin.php:105) in /home/myservername/public_html/wp-includes/pluggable.php on
   line 1121
 *  [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119990)
 * I’m not sure you removed the plugin — you can’t get an error in a file that does’t
   exist 😉
 * I forked the plugin and fixed the errors, give this a try:
    [https://github.com/nciske/genesis-simple-sidebars/tree/master](https://github.com/nciske/genesis-simple-sidebars/tree/master)
 *  [dni777](https://wordpress.org/support/users/dni777/)
 * (@dni777)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119991)
 * true that – there must be some cache going on that i don’t remember putting in
   there 😉
    have gone through all the other plugins and don’t see one….but will
   keep fishing. thanks for the code will give that a try.
 *  [Roger MacRae](https://wordpress.org/support/users/rmac0001/)
 * (@rmac0001)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119992)
 * The problem still persists. The reason the problem persists is because the info
   array is empty and the newest version of php doesn’t like that.
 * The fix is simple and here it is:
 *     ```
       foreach ( (array) $_sidebars as $id => $info ) {
       	if (!is_array($info)) {
       		//do nothing
       	}
       		genesis_register_sidebar( array(
       			'name'        => esc_html( $info['name'] ),
       			'id'          => $id,
       			'description' => esc_html( $info['description'] ),
       			'editable'    => 1,
       		) );
               }
       	}
       ```
   
 * at least that is what worked for me.
 *  [westernwoman](https://wordpress.org/support/users/westernwoman/)
 * (@westernwoman)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119993)
 * Ron are you going to update this plugin so that it works w/ new PHP and WP 3.92?
   That would be so great!!
 * Many thanks,
    Western Woman
 *  [Brad](https://wordpress.org/support/users/bhull7/)
 * (@bhull7)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119994)
 * The very last post on this page helped fix the error for me:
 * [http://wordpress.org/support/topic/error-after-updating-to-php-54](http://wordpress.org/support/topic/error-after-updating-to-php-54)
 *  [mloewenberg](https://wordpress.org/support/users/mloewenberg/)
 * (@mloewenberg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119995)
 * i had this error this morning on inmotionhosting. i grabbed Nick Ciske’s plugin.
   php file and replaced the one on my site and it’s all fixed. Thank you!

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/erro-illegal-string-offset/?output_format=md)
[1](https://wordpress.org/support/topic/erro-illegal-string-offset/?output_format=md)
2

The topic ‘Erro: Illegal string offset’ is closed to new replies.

 * ![](https://ps.w.org/genesis-simple-sidebars/assets/icon-256x256.png?rev=1335778)
 * [Genesis Simple Sidebars](https://wordpress.org/plugins/genesis-simple-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-simple-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-simple-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-simple-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-simple-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-simple-sidebars/reviews/)

## Tags

 * [genesis](https://wordpress.org/support/topic-tag/genesis/)

 * 24 replies
 * 14 participants
 * Last reply from: [mloewenberg](https://wordpress.org/support/users/mloewenberg/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/page/2/#post-4119995)
 * Status: resolved