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 15 replies - 1 through 15 (of 24 total)

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

 *  Plugin Contributor [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119816)
 * If you switch to the sample child theme do you still see those warning messages.
 *  Thread Starter [Jabed Shoeb](https://wordpress.org/support/users/onnoysomoy/)
 * (@onnoysomoy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119884)
 * Hello Ron,
    Solved the problem after changing code a bit in line 105 & 107. See
   below.
 *     ```
       genesis_register_sidebar( array(
       			'name'        => esc_html( $info->name ),
       			'id'          => $id,
       			'description' => esc_html( $info->description ),
       			'editable'    => 1,
       		) );
       ```
   
 * Dont need to switch theme. Thank you.
 *  [vander25](https://wordpress.org/support/users/vander25/)
 * (@vander25)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119942)
 * I did this fix, and it solved the warnings, but now I don’t see any titles on
   wp-admin/admin.php?page=simple-sidebars , the ID shows, but no Name or Description,
   they DO show up on the edit page. Everything else about the sidebars appears 
   to be working as it should as far as I can tell. (php 5.4.20, Apache 2.4.6)
 *  [Steve Borsch](https://wordpress.org/support/users/sborsch/)
 * (@sborsch)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119965)
 * Bluehost upgraded PHP to 5.4.20 today (yes, one day before a MAJOR HOLIDAY) and
   maybe Apache. Took sites down all over their hosting but also impacted we dedicated
   server folks too.
 * This error happened to me too. The fix worked too and sidebars appear as they
   did with the widgets assigned to them, but now cannot see sidebar names nor add/
   subtract widgets from any Simple Sidebars in wp-admin.
 * Am not a php guy but I’m betting there is a new php array call that needs to 
   be tweaked. Whaddya think Ron?
 *  [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [12 years ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119972)
 * Here’s what worked for me — this code only attempts to register a sidebar if 
   it has a name:
 *     ```
       if( isset( $info['name'] ) ){
   
       			genesis_register_sidebar( array(
       				'name'        => esc_html( $info['name'] ),
       				'id'          => $id,
       				'description' => esc_html( $info['description'] ),
       				'editable'    => 1,
       			) );
   
       		}
       ```
   
 *  [Steve Borsch](https://wordpress.org/support/users/sborsch/)
 * (@sborsch)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119973)
 * Nicely done Nick. Thanks!
 * By the way, you are getting quite a rep on the MSP WordPress GGroup as Mr. Helpful
   and I know *I* really appreciate all of your contributions…and now here too?
 * Guess I need to buy a Nick Ciske Action Figure. Know where I can get one? 😉
 *  [mrisdon](https://wordpress.org/support/users/mrisdon/)
 * (@mrisdon)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119975)
 * Hey Guys,
    Hoping you can help. I barely know HTML and am trying to figure out
   what to change.
 * Here’s my code that I find in my genesis-simple-sidebars/plugin.php I searched
   the code to find what you guys had above:
 * genesis_register_sidebar( array(
    ‘name’ => esc_html( $info[‘name’] ), ‘id’ =
   > $id, ‘description’ => esc_html( $info[‘description’] ), ‘editable’ => 1, ) );
 * I see in one post above the [ before ‘name’ & ‘description’ was changed to to-
   >
 * But then that wasn’t in the code Nick had. Any ideas what to do to make the errors
   for line 105 & 107 go away? Thanks!
 *  [mrisdon](https://wordpress.org/support/users/mrisdon/)
 * (@mrisdon)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119976)
 * So I emptied my cache. I update the code on the plugin and saved it, saw a new
   3rd error, deleted it. Save the code. Now the errors are gone. So I’m guessing
   patience was the key? My site looks fine now. That was an odd one 🙂
 *  [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119977)
 * PHP can treat objects as arrays, so: `$info['name']` and `$info->name` could 
   both work but it’s best not to change the core code if you can help it.
 * My code is based on the actual plugin code — so use that and you should be fine
   😉
 *  [beng7980](https://wordpress.org/support/users/beng7980/)
 * (@beng7980)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119978)
 * I have just encountered the same problem and resolved immediately. Thanks Nick.
 *  Anonymous User
 * (@anonymized-264603)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119979)
 * Nick, thank you for this, but could you clarify — do you mean that I should replace
   this block of code (below) with your code? I did that, saved the plugin code,
   and cleared my cache. The sidebars disappeared from their screen in the Admin
   and from the Widgets screen. Any help on this would be much appreciated. PHP 
   is not upgraded yet on my server, but will be in 6 days, and I’m using the plugin
   on a lot of websites.
 *     ```
       foreach ( (array) $_sidebars as $id => $info ) {
   
       		genesis_register_sidebar( array(
       			'name'        => esc_html( $info['name'] ),
       			'id'          => $id,
       			'description' => esc_html( $info['description'] ),
       			'editable'    => 1,
       		) );
   
       	}
       ```
   
 *  [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119980)
 * Here’s the modified `plugin.php` I’m using:
    [https://gist.github.com/nciske/d5abe8b3903d08f9e71d](https://gist.github.com/nciske/d5abe8b3903d08f9e71d)
 * Just replace the entire plugin.php file with that and you should be good to go.
 * I’m seeing sidebars in the admin (Genesis: Simple Sidebars), the widgets screen,
   and the sidebar selector on pages/posts.
 *  Anonymous User
 * (@anonymized-264603)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119981)
 * Thanks very much, Nick. But now I’m being told by StudioPress Support that the
   plugin has already been fixed, and that the problem is the ss-settings option
   in the database, which just needs to be deleted.
 * Does it still make sense to overwrite the plugin code, when there will likely
   be updates on it going forward?
 *  [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119982)
 * Just sharing what worked for me. What you do is up to you.
 *  Anonymous User
 * (@anonymized-264603)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/erro-illegal-string-offset/#post-4119983)
 * I understand. Thanks very much.

Viewing 15 replies - 1 through 15 (of 24 total)

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

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