Title: Plugin throwing error
Last modified: November 14, 2019

---

# Plugin throwing error

 *  [stevevogelaar](https://wordpress.org/support/users/stevevogelaar/)
 * (@stevevogelaar)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-throwing-error/)
 * I am getting the following error on wp-admin screens at top row…
    while upgrading
   the database schema. Please report the following error: Duplicate entry ‘174788’
   for key ‘PRIMARY’
 * When I disable plugin, it stops throwing the error. I suppose it’s having issue
   with latest wp update to 5.3.
 * Full error log entry:
    WordPress database error Duplicate entry ‘174788’ for 
   key ‘PRIMARY’ for query INSERT INTO `wp_options` (`option_name`, `option_value`,`
   autoload`) VALUES (‘cron’, ‘a:2:{i:1573703258;a:1:{s:27:\”pum_weekly_scheduled_events\”;
   a:1:{s:32:\”x”;a:3:{s:8:\”schedule\”;s:6:\”weekly\”;s:4:\”args\”;a:0:{}s:8:\”
   interval\”;i:604800;}}}s:7:\”version\”;i:2;}’, ‘yes’) ON DUPLICATE KEY UPDATE`
   option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`),`
   autoload` = VALUES(`autoload`) made by require(‘wp-blog-header.php’), wp, WP-
   >main, do_action_ref_array(‘wp’), WP_Hook->do_action, WP_Hook->apply_filters,
   PUM_Utils_Cron->schedule_events, PUM_Utils_Cron->weekly_events, wp_schedule_event,
   _set_cron_array, update_option, add_option

Viewing 1 replies (of 1 total)

 *  [Ashish](https://wordpress.org/support/users/ashishpatel1992/)
 * (@ashishpatel1992)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-throwing-error/#post-12148848)
 * Hi,
    It seems your database has become inconsistent and you are having duplicate
   entries for PRIMARY_KEY. Goto phpmyadmin and run database repair.

Viewing 1 replies (of 1 total)

The topic ‘Plugin throwing error’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-logging/assets/icon-256x256.jpg?rev=2562296)
 * [WP Mail Logging](https://wordpress.org/plugins/wp-mail-logging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-logging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-logging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-logging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-logging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-logging/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ashish](https://wordpress.org/support/users/ashishpatel1992/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-throwing-error/#post-12148848)
 * Status: not resolved