WordPress.org

Forums

410 for WordPress
[resolved] How to fix database errors coming from WP-410 (5 posts)

  1. wpmhweb
    Member
    Posted 2 years ago #

    I am getting database errors from this plugin:

    [02-Apr-2013 19:42:33] WordPress database error Duplicate entry '12345' for key 1 for query INSERT INTO wp_410_links (gone_key,gone_regex,is_404) VALUES ('http://domain.com/wp','|^http\\://domain\\.com/wp$|i','1') made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), call_user_func_array, WP_410->check_for_410, WP_410->add_link

    There is any way to fix this?

    Thanks,

    http://wordpress.org/extend/plugins/wp-410/

  2. Samir Shah
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, it looks like your database didn't upgrade properly when the plugin was last upgraded. I'm trying to figure out why that could have happened and whether I can prevent it.

    In the mean time, if you want to fix it quickly, then it should be fixed by deactivating and uninstalling the plugin and then reinstalling it (make sure you keep a temporary list of your 410 pages).

  3. Samir Shah
    Member
    Plugin Author

    Posted 2 years ago #

    Having looked into this, I think there is some corruption in your database because the field which it is saying is duplicate should be auto-incremented by the database system (i.e., duplicates should never occur).

    Please uninstall (not just deactivate but uninstall) the plugin and then reinstall it - that should resolve this problem.

  4. wpmhweb
    Member
    Posted 2 years ago #

    Thank you for the response!

    I just upgraded to the latest update and just in case I deactivated/activate.

    I also have a error log plugin that I just cleared, hopefully it will not show me the error again.

    Thanks,

    PS: I'll wait to see if no error shows up and I will mark this topic as solved.

  5. wpmhweb
    Member
    Posted 2 years ago #

    So far, so good.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • 410 for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic