Error when editing Sidebars

We’re getting an “iframe cannot be loaded” error when we’re adding menus via the Cornerstone editor.

Our logs show the following error:

PHP message: PHP Warning:  array_key_exists() expects parameter 2 to be array, bool given in /home/[redacted]/public_html/wp-content/plugins/cornerstone/includes/extend/custom-sidebars.php on line 426

Our server reports the following versions:

PHP: 7.4.0
WordPress 5.3.1
X Theme: 7.1.2
Plugins:

  • cornerstone: 4.1.2
  • WP Mail SMTP: 1.7.1

Hi @Siero,

Thank you for writing in, what you are seeing is the PHP Warning messages. This usually appears when a variable is null or not yet initialized. You can get rid of these messages 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 messages.

WP DEBUG

Cheers!

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