Updating Site to PHP 7.4 Warning: Creating Default Object From Empty Value
-
Updating a client’s site to PHP 7.4. A PHP warning popped up (Warning: Creating default object from empty value). I’m working to troubleshoot, and need some PHP advice on what to add/change to clear the warning. Here’s the code it’s referencing in the warning:
$class->config['forced_load_objects'] = array( 'layerslider' ); // fallback only to make sure we load in case user overwrites this class and direct checks for shortcode might fail
The warnings are popping up on the top of the screen which is distracting, and I want to ensure the theme code is clean going forward.
Here’s the filepath:
www/krcd.org/public_html/krcd.org/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php on line 28Thanks for any input or advice.
The page I need help with: [log in to see the link]
- The topic ‘Updating Site to PHP 7.4 Warning: Creating Default Object From Empty Value’ is closed to new replies.