Support » Plugin: Yoast SEO » Fatal Error on post-new.php

  • Resolved gnarlyinc

    (@gnarlyinc)


    any of the pages to create a new post, page or product throw a fatal php error

    Fatal error: Uncaught TypeError: Argument 2 passed to WPSEO_Link_Watcher::save_post() must be an instance of WP_Post, null given, called in /var/www/site/wp-includes/class-wp-hook.php on line 288 and defined in /var/www/site/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php:43 Stack trace: #0 /var/www/site/wp-includes/class-wp-hook.php(288): WPSEO_Link_Watcher->save_post(0, NULL) #1 /var/www/site/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /var/www/site/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/site/wp-includes/post.php(3640): do_action(‘save_post’, 0, NULL, false) #4 /var/www/site/wp-admin/includes/post.php(608): wp_insert_post(Array) #5 /var/www/site/wp-admin/post-new.php(70): get_default_post_to_edit(‘page’, true) #6 {main} thrown in /var/www/site/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php on line 43

Viewing 1 replies (of 1 total)
  • Plugin Support jerparx

    (@jerparx)

    Sometimes strange behavior may be caused by a plugin or theme conflict. The fastest way to rule out conflicts is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Seventeen. If this resolves the issue, you have a conflict and should activate one plugin at a time until you locate the conflict. Finally, after all plugins are active, switch to your theme. This will narrow down the conflict to a specific plugin or a theme conflict. If you are unfamiliar with checking for conflicts, we wrote a small guide that will walk you through the steps. You can find it here: How to Check For Plugin Conflicts

    Also, can you confirm if your WordPress version is up-to-date (4.9.7) and also your Yoast SEO?

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error on post-new.php’ is closed to new replies.