Support » Plugin: WooCommerce » duplicate product Fatal Error

  • Resolved zade123


    I started to upload some product via woocomerce with the duplicate function having to change only the title of the pruducts, at some point it started giving me the following error.
    Fatal error: Uncaught Error: Call to a member function get_id() on boolean in /home/impres77/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-product.php:121 Stack trace: #0 /home/impres77/public_html/wp-includes/class-wp-hook.php(286): WC_Admin_Duplicate_Product->duplicate_product_action(”) #1 /home/impres77/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /home/impres77/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /home/impres77/public_html/wp-admin/admin.php(399): do_action(‘admin_action_du…’) #4 /home/impres77/public_html/wp-admin/edit.php(10): require_once(‘/home/impres77/…’) #5 {main} thrown in /home/impres77/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-product.php on line 121

    Please help.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • WordPress database error: [Duplicate entry ‘2000’ for key ‘PRIMARY’]
    INSERT INTO wphe_posts (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) VALUES (1, ‘2019-08-09 18:48:25’, ‘2019-08-09 18:48:25’, ‘<span style=\”font-size: 18.0pt;\”>

    Plugin Support Thomas Shellberg


    Automattic Happiness Engineer

    Hey @zade123,

    What version of WooCommerce are you experiencing this error with? Do you get this error if you try to duplicate a product with *only* the WooCommerce plugin active?

    Plugin Support Mike W


    Hi @zade123,

    I am going to close this thread for now as we have not heard back from you, however if you are still having the issue just reply to this and we will re-open it.

    If you have other issues please open a new thread and let us know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.