Title: WordPress database error Duplicate entry
Last modified: July 25, 2025

---

# WordPress database error Duplicate entry

 *  Resolved [salih24by7](https://wordpress.org/support/users/salih24by7/)
 * (@salih24by7)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/wordpress-database-error-duplicate-entry-24/)
 * Getting WordPress database error Duplicate entry a lot in my server error log,
   I am using latest version of the Plugin with PHP 8.2, Is there any fix for this?
 * [Fri Jul 25 06:27:19.728441 2025] [proxy_fcgi:error] [pid 2xxxxxxx] [client xx.
   xxx.x.xx:xxxxx] AH01071: Got error ‘PHP message: WordPress database error Duplicate
   entry ‘8388607’ for key ‘wp3y_sbb_visitorslog.PRIMARY’ for query INSERT INTO `
   wp3y_sbb_visitorslog`\n\t\t\t(ip, date, human, response, bot, method, url, referer,
   ua, access, reason)\n\t\t\tVALUES (‘xx.xxx.x.xx’, CURRENT_TIMESTAMP(), ‘Maybe’,‘
   200’, ‘?’, ‘GET’, ‘/event-directory/2024-06-08/’, ”, ‘meta-externalagent/1.1 (
   +https://developers.facebook.com/docs/sharing/webmasters/crawler)’, ‘Masked’,”)
   made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.
   php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters,
   stopbadbots_record_log’

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/wordpress-database-error-duplicate-entry-24/#post-18570481)
 * Hello,
   I’m sorry to hear about the issues you’re experiencing.
 * There are several possibilities that could cause **table insertion errors**, 
   such as:
    1. **Insufficient memory** (either WordPress or PHP server memory).
    2. A **corrupted database table** or index.
    3. **Lack of space** on the server’s hard drive.
    4. An **overloaded server**.
    5. **Malware** on the site.
    6. Among other factors.
 * I suggest you install our free **Site Checkup plugin**. It will likely provide
   more detailed information about the cause of these errors. I have this plugin
   running on approximately 50 sites, and I don’t see this type of error on them.
   
   [https://wordpress.org/plugins/site-checkup](https://wordpress.org/plugins/site-checkup)
 * Please post your findings here, and I’ll do my best to help.
   Regards,BillPlugin
   Developer
 *  Thread Starter [salih24by7](https://wordpress.org/support/users/salih24by7/)
 * (@salih24by7)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/wordpress-database-error-duplicate-entry-24/#post-18570653)
 * Thank you for the quick response, let me check and get back to you.
 *  Plugin Author [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/wordpress-database-error-duplicate-entry-24/#post-18576035)
 * Hello,
   You are welcome.To keep things organized, I’m marking this as resolved.
   Feel free to post new information if you need anything.Regards,
 * Bill

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress database error Duplicate entry’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stopbadbots_f0f0f0.svg)
 * [Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection](https://wordpress.org/plugins/stopbadbots/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stopbadbots/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stopbadbots/)
 * [Active Topics](https://wordpress.org/support/plugin/stopbadbots/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stopbadbots/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stopbadbots/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * Last activity: [10 months, 1 week ago](https://wordpress.org/support/topic/wordpress-database-error-duplicate-entry-24/#post-18576035)
 * Status: resolved