• Resolved Malav Vasita

    (@malavvasita)


    Hey there,

    I have activated YOAST SEO on my site. And when I try to add new post, It is showing WordPress > Error: The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

    In firebug, post-new.php is having status 500. Then I deactivated YOAST SEO and everything seems to be working nice.

    Then I have check my debug.log and found this:

    PHP Fatal error:  Uncaught TypeError: Argument 2 passed to WPSEO_Link_Watcher::save_post() must be an instance of WP_Post, null given, called in /home/datingwebsiterev/public_html/wp-includes/class-wp-hook.php on line 288 and defined in /home/datingwebsiterev/public_html/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php:45
    Stack trace:
    #0 /home/datingwebsiterev/public_html/wp-includes/class-wp-hook.php(288): WPSEO_Link_Watcher->save_post(0, NULL)
    #1 /home/datingwebsiterev/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /home/datingwebsiterev/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /home/datingwebsiterev/public_html/wp-includes/post.php(3951): do_action('save_post', 0, NULL, false)
    #4 /home/datingwebsiterev/public_html/wp-admin/includes/post.php(666): wp_insert_post(Array)
    #5 /home/datingwebsiterev/public_html/wp-admin/post-new.php(66): get_default_post_to_edit('post', true)
    #6 {main}
      thrown in /home/datingwebsiterev/public_html/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php on line 45

    Testing environment is:
    WordPress => v5.2.1
    YOAST SEO => v11.2.1
    Ubuntu => 16.04

    Please help me regarding this.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Malav Vasita

    (@malavvasita)

    Hello,

    Any update regarding this ticket?

    I have tried to switch to default theme. And I have deactivated all the plugins except YOAST SEO.

    I have also updated YOAST SEO and WordPress to latest version 11.3 and 5.2.1 respectively.

    Still I am able to reproduce the issue.

    When can I expect reply from support?

    Thank you.

    Hello @malavvasita

    Sorry to hear about your issue. The error was previously discussed in this bug report and determined that the issue is likely caused by a database issue. Please check the WP_POSTS table and see if the ‘ID’ field is set to AUTO_INCREMENT (image example here). If the field is not set for ‘AUTO_INCREMENT’, the database must be manually fixed to add ‘AUTO_INCREMENT’.

    Closed. No further concerns.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress > Error | 500 Error on post-new.php’ is closed to new replies.