• 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

    (@ashishpatel1992)

    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.