CRITICAL Uncaught Error: Cannot use a scalar value as an array
-
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
- The topic ‘CRITICAL Uncaught Error: Cannot use a scalar value as an array’ is closed to new replies.