• Resolved zitoooo

    (@zitoooo)


    Hello, it appears that in WordPress v6.3 (or Woocommerce 8.0.1) this plugin causes an error page upon Duplicating or Deleting a product. The error page lists the following error caused by this plugin:
    WC_Product::__construct()
    /bitnami/wordpress/wp-content/plugins/product-quantity-for-woocommerce/includes/class-alg-wc-pq-core.php:1604

    This error does not occur if I disable the plugin, delete/duplicate, then re-enable.

    many thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter zitoooo

    (@zitoooo)

    Just an update to this; it only appears to affect Variable Products. Simple products duplicate and delete without an issue

    Hi @zitoooo,

    Thanks for reaching out.

    Could you please ensure you are using the latest version (4.5.11) of the plugin? If you are not, then please update the plugin to the latest version and let us know if the issue persists.

    Kind regards,
    Moshtafizur

    Thread Starter zitoooo

    (@zitoooo)

    Hi @moshtafizur01

    I can confirm I am running the latest 4.5.11 version.

    Kind regards

    Hi @zitoooo,

    Thanks for your reply.

    I have escalated this with our development team. They will get back to you as soon as they can.

    Kind regards,
    Moshtafizur

    Plugin Contributor Kousik Mukherjee

    (@kousikmukherjeeli)


    Hello @zitoooo,

    Could you please share the complete error message you receive when attempting to delete or duplicate a product? This information will greatly assist us in identifying and resolving the issue.

    Best regards,
    Kousik Mukherjee
    WPFactory Support.

    Thread Starter zitoooo

    (@zitoooo)

    Hi @kousikmukherjeeli
    Thanks for your reply, the error page displays the following

    Fatal error: Uncaught Exception: Invalid product.
    in /bitnami/wordpress/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 167
    
    Call stack:
    
        WC_Product_Data_Store_CPT::read()
        /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-data-store.php:159
        WC_Data_Store::read()
        /bitnami/wordpress/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:138
        WC_Product::__construct()
        /bitnami/wordpress/wp-content/plugins/product-quantity-for-woocommerce/includes/class-alg-wc-pq-core.php:1604
        Alg_WC_PQ_Core::save_stock_status_overwrite_thresold()
        wp-includes/class-wp-hook.php:312
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:334
        WP_Hook::do_action()
        wp-includes/plugin.php:517
        do_action()
        wp-includes/post.php:4751
        wp_insert_post()
        /bitnami/wordpress/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:161
        WC_Product_Variation_Data_Store_CPT::create()
        /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-data-store.php:186
        WC_Data_Store::create()
        /bitnami/wordpress/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:1435
        WC_Product::save()
        /bitnami/wordpress/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-product.php:210
        WC_Admin_Duplicate_Product::product_duplicate()
        /bitnami/wordpress/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-product.php:113
        WC_Admin_Duplicate_Product::duplicate_product_action()
        wp-includes/class-wp-hook.php:310
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:334
        WP_Hook::do_action()
        wp-includes/plugin.php:517
        do_action()
        wp-admin/admin.php:419
        require_once()
        wp-admin/edit.php:10

    Many Thanks

    Plugin Contributor Kousik Mukherjee

    (@kousikmukherjeeli)

    Hello,

    We are pleased to announce the release of the new version, which includes the necessary fixes and updates.

    Regards
    Kousik Mukherjee
    WPFactory Support.

    Thread Starter zitoooo

    (@zitoooo)

    Hi @kousikmukherjeeli

    Fantastic support and speed, can confirm it now works perfectly

    Many thanks

    Hi @zitoooo,

    We are happy to help 🙂

    Please consider leaving a review here if you like the support.

    Kind regards,
    Moshtafizur

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WordPress error when duplicating or deleting product’ is closed to new replies.