Title: [Plugin: Custom sidebars] Fatal Error
Last modified: August 19, 2016

---

# [Plugin: Custom sidebars] Fatal Error

 *  [bbubser](https://wordpress.org/support/users/bbubser/)
 * (@bbubser)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-sidebars-fatal-error/)
 * I’m getting the following fatal error on the site only after selecting the boxes
   available for substition in the admin:
 * Fatal error: Cannot unset string offsets in /home/content/s/k/y/skylinemove/html/
   wp1.opt6/wp-content/plugins/custom-sidebars/customsidebars.php on line 103
 * When I deselect the options and save it the error goes away.
 * I had no problems when I was using this plugin locally. I just got the remote
   site up and running and went to set up the custom sidebars as I had them on my
   local system and got the error. Any ideas how I can resolve this?
 * [http://wordpress.org/extend/plugins/custom-sidebars/](http://wordpress.org/extend/plugins/custom-sidebars/)

Viewing 1 replies (of 1 total)

 *  [marquex](https://wordpress.org/support/users/marquex/)
 * (@marquex)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-sidebars-fatal-error/#post-1695678)
 * Hi bbubser,
 * That is an error that affects to some PHP5 versions, that’s the reason you get
   that error in the server but not in your local installation.
 * I’ll fix it in the next version of the plugin, meanwhile, you can fix it yourself
   editing the code of customsidebars.php. In line 103 you have:
    `unset($replacements[
   $sb]);` replace it for the next code:
 *     ```
       if(isset($replacements[$sb]))
       	unset($replacements[$sb]);
       ```
   
 * Also in line 118 replace:
    `unset($default_replacements[$sb]);`` for:
 *     ```
       if(isset($default_replacements[$sb]))
       	unset($default_replacements[$sb]);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Custom sidebars] Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [marquex](https://wordpress.org/support/users/marquex/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-sidebars-fatal-error/#post-1695678)
 * Status: not resolved