Warning: Creating default object from empty value
-
I am a relatively new WordPress user who has inherited the website above. I was using and modifying it for about a week when all of a sudden a couple of days ago I was unable to add a new page to the site. When I click on “new page”, it gives me the following warning and then stops: “Warning: Creating default object from empty value in /home/valleyo8/public_html/northbendescapes.com/wp-admin/includes/post.php on line 708. I’ve searched the internet and see that others have experienced this issue but it’s not clear what the cause was. I tried updating the PHP code on my hosting site to version 7.1 and no change. I installed the Health Check and Troubleshooting plugin v1.3.2 and went into troubleshooting mode with no change (same error and unable to add page). I’m now using WordPress 5.2 instead of 5.1 but had same thing on both.
When I try to add a page in non-troubleshooting mode, I also see a second warning:
Warning: Invalid argument supplied foreach() in /home/valleyo8/public_html/northbendescapes.com/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox.php on line 962. Don’t know if this is a clue or not. Most of what I have been doing so far is related to adding the “Enjoy North Bend WA hospitality” page and getting the SEO stuff inserted to make it green.Thanks for any help you can provide as I’m ready to do significant work to get this website working for us but am dead in the water as far as adding new pages. Everything already in the site works fine.
The page I need help with: [log in to see the link]
- The topic ‘Warning: Creating default object from empty value’ is closed to new replies.