PHP error: Duplicate entry in database
-
When adding new galleries, I’ve found these errors in PHP log on the server:
WordPress database error Duplicate entry '222' for key 'PRIMARY' for query INSERT INTO
wp_bwg_shortcode
(id
,tagtext
) VALUES (222, ' gallery_type=\"thumbnails\" theme_id=\"1\" use_option_defaults=\"0\" gallery_id=\"112\" tag=\"0\" thumb_width=\"160\" thumb_height=\"160\" image_column_number=\"7\" image_enable_page=\"1\" images_per_page=\"42\" load_more_image_count=\"30\" sort_by=\"order\" order_by=\"asc\" show_search_box=\"0\" placeholder=\"Search\" search_box_width=\"330\" show_sort_images=\"0\" show_tag_box=\"0\" showthumbs_name=\"0\" show_gallery_description=\"1\" image_title=\"show\" show_thumb_description=\"0\" play_icon=\"1\" gallery_download=\"0\" ecommerce_icon=\"undefined\" thumb_click_action=\"open_lightbox\" thumb_link_target=\"1\" popup_fullscreen=\"0\" popup_width=\"1280\" popup_height=\"1060\" popup_effect=\"fade\" popup_effect_duration=\"0.1\" popup_autoplay=\"0\" popup_interval=\"3\" popup_enable_filmstrip=\"1\" popup_filmstrip_height=\"60\" popup_enable_ctrl_btn=\"0\" popup_enable_fullscreen=\"1\" popup_enable_comment=\"1\" popup_enable_email=\"1\" popup_enable_captcha=\"0\" gdpr_compliance=\"undefined\" comment_moderation=\"0\" popup_enable_info=\"1\" popup_info_always_show=\"0\" popup_info_full_width=\"0\" autohide_lightbox_navigation=\"1\" popup_hit_counter=\"0\" popup_enable_rate=\"0\" popup_enable_zoom=\"0\" popup_enable_fullsize_image=\"0\" popup_enable_download=\"1\" show_image_counts=\"0\" enable_loop=\"1\" enable_addthis=\"0\" addthis_profile_id=\"\" popup_enable_facebook=\"1\" popup_enable_twitter=\"1\" popup_enable_pinterest=\"0\" popup_enable_tumblr=\"0\" popup_enable_ecommerce=\"undefined\" watermark_type=\"none\" watermark_link=\"https://10web.io/\"') made by do_action('wp_ajax_shortcode_bwg'), WP_Hook->do_action, WP_Hook->apply_filters, BWG->admin_ajax, ShortcodeController_bwg->execute, ShortcodeController_bwg->saveThere are no visible errors in functionality, but attempts to insert a row into database with the duplicate primary key is probably not an intended action.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP error: Duplicate entry in database’ is closed to new replies.