By: Prem Tiwari | Last Updated:
Yesterday, I have changed the server from shared server to dedicated server for my blog i.e. FreeWebMentor.com. After changing the server, everything seems working fine, but when I was going to write a new article by using the WordPress admin panel, then I get the error which related to the Yost SEO plugin. Below is the complete error message what I get while going to add a new Posts or Pages.
Catchable fatal error: Argument 2 passed to WPSEO_Link_Watcher::save_post() must be an instance of WP_Post, null given in /home/public_html/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php on line 37
After fixing this issues, I get the another error message that is:
Warning: Creating default object from empty value in /home/public_html/wp-admin/includes/post.php on line 641
And my add new post and page screen look like the below screenshots.
I again search on google to get ride of this error and now I am able to do everything like before I am doing. Below is the complete steps how to fix the catchable fatal error in WordPress website.
Step 1) Take a complete backup of your website with the database.
Step 2) Download the latest version of WordPress from wordpress.org.
Step 3) Now replace the root file, wp-admin, and wp-includes folder of your website with latest one.
Step 4) Also update the Yost SEO plugin to the latest version if you are using the old one.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari