Creating default object from empty value warning
-
Just downloaded version 4.1 this morning on WordPress (InStyle theme), and immediately, I got two warnings on my dashboard (both identical):
Warning: Creating default object from empty value in /home/bodemuro/bobbydemuro.com/wp-content/themes/InStyle/epanel/custom_functions.php on line 676
I found line 676 in my epanel/custom_functions.php and it is:
'body' => $send_to_api,For more context, lines 675-677 in my epanel/custom_functions.php are here:
'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 'body' => $send_to_api, 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url()I’m not sure how to change that empty value, or do whatever I need to do, to get my site working again? I’m not even sure if that’s the correct line to be looking at – hopefully I’m at least looking at the right line. I have a feeling it’s a simple fix, but at present, it’s beyond me!
Right now, I can’t edit anything on my site, I can’t add pages, I can’t do anything. It hasn’t taken my site down; it’s still operational, though it’s made it impossible to add anything to the site.
I’ve looked at other forum posts on here with the similar “Warning: Creating default object from empty value…” issue and each problem seems to have a unique solution to that particular site. I don’t have an events manager on my site, which I’ve seen mentioned in a few of the forum posts from several years back.
Any fixes? Thank you all in advance!
The topic ‘Creating default object from empty value warning’ is closed to new replies.