• Resolved munky

    (@munky)


    After upgrading to 7.7.2 started getting CRITICAL Uncaught Error: Cannot use a scalar value as an array error.

    So far couldn’t figure out what is causing it. Steps taken – disabled all the plugins, switched to default theme, cleared caches, updated database schema, regenerated whatever was possible. No solution. Anyone have any ideas which could help?

    The error happens when opening single product in WP-Admin from Products -> All Products -> Any product.

    2023-06-13T06:35:13+00:00 CRITICAL Uncaught Error: Cannot use a scalar value as an array in /home/runcloud/webapps/app-t3hwin-store/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php:126
    Stack trace:

    0 /home/runcloud/webapps/app-t3hwin-store/wp-includes/class-wp-hook.php(308): WC_Admin_Post_Types->post_updated_messages()

    1 /home/runcloud/webapps/app-t3hwin-store/wp-includes/plugin.php(205): WP_Hook->apply_filters()

    2 /home/runcloud/webapps/app-t3hwin-store/wp-admin/edit-form-advanced.php(219): apply_filters()

    3 /home/runcloud/webapps/app-t3hwin-store/wp-admin/post.php(206): require(‘…’)

    4 {main}

    thrown in /home/runcloud/webapps/app-t3hwin-store/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php on line 126

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @munky ,

    Thanks for reaching out!

    I understand that you are seeing the above error when opening a single product via Products → All Products, is this correct?

    I see you have already tried a few troubleshooting steps prior to reaching out to support, however this has made no difference.

    As a next step, can you try deleting WooCommerce,?downloading a fresh copy?here, and the installing this to see if this makes any difference?

    Should the issue persist, please can you share a copy of your sites System Status Report so that we can have a better understanding of your sites current environment.

    You can find this via ?WooCommerce?→?Status. Select?Get system report?and then?Copy for support. Once you have this, please share the results in your response here.

    In the meantime, I’d also suggest installing the?Query Monitor?plugin on your site as this might share more details on what may be causing the error.

    Cheers!

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CRITICAL Uncaught Error: Cannot use a scalar value as an array’ is closed to new replies.