All My Sidebars are Broken

All My Sidebars have this message:

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/northw74/public_html/wp-content/themes/pro/framework/functions/custom-sidebars.php on line 86

How do I fix this?

Hello @ETBliss,

Thanks for writing in!

You are seeing a PHP warning message. This means that the custom sidebar name does not exist or set to null. Please go to Appearance > Sidebars and do create a custom sidebar.

Meanwhile, you can get rid of the PHP warning message by disabling your debug mode. You can do this by opening wp-config.php and adding


define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing the PHP warning message.

I am having the same issue. When I go to appearance and side bars, there is no custom side bar option. I have also tried inserting this define(‘WP_DEBUG’, false); code into the php where the error is, and also on my X child theme php editor and it didnt work.

Hello Eric,

Could you please update to the latest versions?
Our latest versions are:

  • Pro theme 2.5.2
  • X theme 6.5.2
  • Cornerstone 3.5.2

This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

_After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.-

Please let us know how it goes.

It worked. Thank you!

Hi @etbliss,

Please update your X/Cornerstone or PRO theme to the latest version, we have that bug fixed on latest release.

Updating Your Themes and Plugins

Changelog

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.