PHP Fatal Error: Uncaught TypeError
-
When attempting to create a new page or post I am getting 500 error.
Using latest version of Yoast WordPress SEO. When I disable the plugin the error disappears and everything works fine.`[Tue Feb 20 17:11:01.263902 2018] [:error] [pid 30731] PHP Fatal error: Uncaught TypeError: Argument 2 passed to WPSEO_Link_Watcher::save_post() must be an instance of WP_Post, null given in /nas/content/live/sporttravel/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php:41\nStack trace:\n#0 [internal function]: WPSEO_Link_Watcher->save_post(0, NULL)\n#1 /nas/content/live/sporttravel/wp-includes/class-wp-hook.php(288): call_user_func_array(Array, Array)\n#2 /nas/content/live/sporttravel/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#3 /nas/content/live/sporttravel/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#4 /nas/content/live/sporttravel/wp-includes/post.php(3581): do_action(‘save_post’, 0, NULL, false)\n#5 /nas/content/live/sporttravel/wp-admin/includes/post.php(608): wp_insert_post(Array)\n#6 /nas/content/live/sporttravel/wp-admin/post-new.php(70): get_default_post_to_edit(‘post’, true)\n#7 {main}\n thrown in /nas/content/live/sporttravel/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php on line 41, referer:
- The topic ‘PHP Fatal Error: Uncaught TypeError’ is closed to new replies.