Undefined variable: enable

Hi,
After Upgrading to Cornerstone (just the WP-Plugin, no Pro-Theme) 4.0.4 we get a lot of notices saying:
Notice: Undefined variable: enable in [...]/cornerstone/includes/classes/components/class-shortcode-finder.php on line 81

How can we fix this?
Thanks alot!

Hi Michael,

Thanks for reaching out.

I can’t confirm this on my end but based on that line. It’s probably due to returning values when the slider is active. Could you try editing that line 81 on /cornerstone/includes/classes/components/class-shortcode-finder.php and change it to

return $options;

I also went ahead and added this to the issue tracker.

Thanks!

Hi Rad,

thanks for your fast reply!
I can confirm that changing

fixed the notices. Thanks!

Do you know if this is to a cornerstone issue (that can be fixed with an update) or due to our specific (Wordpress/config/plugin) setup?
I am asking because after the next cornerstone update my code changes will be gone, so this is rather a temporary fix.

Some Background:

  • Wordpress: 5.2.4
  • Antispam Bee 2.9.1
  • BackWPup 3.6.10
  • Borlabs Cookie - Cookie Opt-in 2.0.6
  • Classic Editor 1.5
  • Contact Form 7 5.1.4
  • Slider Revolution 6.1.2
  • Yoast SEO 12.4
  • Custom Sidebars 3.2.3

Thanks alot for your help!

Hi Michael,

It’s just a temporary fix, but it should be permanently fix on next update so overwriting it has no issue at all.

Thanks!

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