• Resolved web361ondemand

    (@web361ondemand)


    Good morning,
    since yesterday I have a problem with adding a new product or modify an old one. It doesn’t let me write the product description and when I try to add images it opens up a weird gallery. I tried to disable all plugin to verify if it was a problem caused by other plugins in conflict with WooCommerce but that was not the case. Can you help me out?
    I’ll leave a link to screenshots of the problem: https://imgur.com/a/wa2i1gT
    Thank you in advice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Everything latests version here
    PHP 8.1
    same issues
    product pages are saved but results with the following Fatal error:

    Fatal error: Uncaught Error: array_flip(): Argument #1 ($array) must be of type array, WP_Error given
    in /home/xxx/public_html/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 441
    Call stack:
    1. array_flip()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:441
    2. Automattic\W\I\P\LookupDataStore::get_term_ids_by_slug_cache()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:360
    3. Automattic\W\I\P\LookupDataStore::create_data_for_variable_product()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:285
    4. Automattic\W\I\P\LookupDataStore::create_data_for()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:161
    5. Automattic\W\I\P\LookupDataStore::run_update_callback()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:116
    6. Automattic\W\I\P\LookupDataStore::maybe_schedule_update()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:100
    7. Automattic\W\I\P\LookupDataStore::on_product_changed()
    wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:1430
    8. WC_Product::save()
    wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:420
    9. WC_Meta_Box_Product_Data::save()
    wp-includes/class-wp-hook.php:307
    10. WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:331
    11. WP_Hook::do_action()
    wp-includes/plugin.php:476
    12. do_action()
    wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:287
    13. WC_Admin_Meta_Boxes::save_meta_boxes()
    wp-includes/class-wp-hook.php:309
    14. WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:331
    15. WP_Hook::do_action()
    wp-includes/plugin.php:476
    16. do_action()
    wp-includes/post.php:4673
    17. wp_insert_post()
    wp-includes/post.php:4775
    18. wp_update_post()
    wp-admin/includes/post.php:426
    19. edit_post()
    wp-admin/post.php:227

    • This reply was modified 2 years, 1 month ago by eyeswiseopen.

    updated woo to beta 7.01 still same issue

    rolled back to woo 6.9.4
    and still getting these errors on saving products:

    Fatal error: Uncaught Error: array_flip(): Argument #1 ($array) must be of type array, WP_Error given
    in /home/xxx/public_html/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 517
    
    Call stack:
    
    array_flip()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:517
    Automattic\W\I\P\LookupDataStore::get_term_ids_by_slug_cache()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:436
    Automattic\W\I\P\LookupDataStore::create_data_for_variable_product()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:361
    Automattic\W\I\P\LookupDataStore::create_data_for()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:237
    Automattic\W\I\P\LookupDataStore::run_update_callback()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:192
    Automattic\W\I\P\LookupDataStore::maybe_schedule_update()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:176
    Automattic\W\I\P\LookupDataStore::on_product_changed()
    wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:1430
    WC_Product::save()
    wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:420
    WC_Meta_Box_Product_Data::save()
    wp-includes/class-wp-hook.php:307
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:331
    WP_Hook::do_action()
    wp-includes/plugin.php:476
    do_action()
    wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:268
    WC_Admin_Meta_Boxes::save_meta_boxes()
    wp-includes/class-wp-hook.php:309
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:331
    WP_Hook::do_action()
    wp-includes/plugin.php:476
    do_action()
    wp-includes/post.php:4673
    wp_insert_post()
    wp-includes/post.php:4775
    wp_update_post()
    wp-admin/includes/post.php:426
    edit_post()
    wp-admin/post.php:227
    Query Monitor

    Hi @web361ondemand

    Thanks for reaching out!

    since yesterday I have a problem with adding a new product or modify an old one. It doesn’t let me write the product description and when I try to add images it opens up a weird gallery.

    I’d like to understand your site properly, can you please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    Hi @eyeswiseopen

    Since every case is a different scenario and you’re not the person who originally started this topic then, per the forum guidelines, would you please start your own topic?

    We’ll be more than happy to help there ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New Product Problems’ is closed to new replies.