Suddenly started getting this error message when trying to create a new post and the content area is not displaying.
http://s28.postimg.org/sw7d9kqcd/error.jpg
Don’t think I’ve changed anything. Existing posts and pages can be edited fine, this only happens when trying to create a new one.
The error messages in the image read:
“Warning: Creating default object from empty value in /home/murphywealth/public_html/wp-admin/includes/post.php on line 631”
“Warning: number_format() expects parameter 1 to be double, string given in /home/murphywealth/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-utils.php on line 610”
Thanks
Hello,
Sometimes plugins can create all kinds of problems. Please try to disable all of your plugins except visual composer(it is required by the theme) and try to create a new post or page.
You can also check the site console for errors using your browser inspector.
Let us know if the problem is still there
Thank You!
Hi Bogdan,
I think it’s happened during the site migration. I haven’t changed anything in terms of plugins. I did what you suggested and deactivated all the plugins except visual composer and it didn’t work (although it did get rid of the second error message above).
“You can also check the site console for errors using your browser inspector.” – What does this mean?
Thanks
Hi,
Every browser has an inspector. Right click on your website and select: Inspect element. There you will see a ‘console’ button. Here is an example for firefox: https://developer.mozilla.org/en/docs/Tools/Web_Console
This console shows you any errors you might have on your site.
Thanks
No errors.
I changed the theme and have the same problem. So the problem is with WordPress and not Newspaper.
Is there any way i can reinstall the WordPress files without disrupting the way the website looks? (perhaps only replacing certain folders that don’t get affected by themes or database settings etc.)
Thanks
Hello,
Our advice, as Chris stated, is to manually replace WordPress files via FTP. You can read about it in this guide
: https://codex.wordpress.org/Installing_WordPress
Make sure you back-up your files before attempting to replace them.
I Hope you get it fixed. Let us know.
Thank you