Error when trying to create a sidebar

When I click on the “create sidebar” in wordress I get the following error on a blank page:

Warning: array_key_exists() expects parameter 2 to be array, boolean given in /home2/daytondoulas/breakfreefamily.com/wp-content/themes/x/framework/functions/custom-sidebars.php on line 378

Warning: Cannot modify header information - headers already sent by (output started at /home2/daytondoulas/breakfreefamily.com/wp-content/themes/x/framework/functions/custom-sidebars.php:378) in /home2/daytondoulas/breakfreefamily.com/wp-includes/pluggable.php on line 1219

How do I go about fixing this?

Thanks

Hello @ohtara,

Thanks for asking.

This is just a PHP notice and warning messages. To resolve this, please disable the debug mode. You can do this by opening wp-config.php file and adding:

define( 'WP_DEBUG' , true ); just above /* That's all, stop editing! Happy blogging. */

For example:

define('WP_DEBUG', true);

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

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

To learn more about WP_DEBUG, please take a look at following resource:

https://codex.wordpress.org/WP_DEBUG

Thanks.

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