Skip Navigation

Fatal Error Accessing Toolset Settings Page with WooCommerce Blocks

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 voice and has 0 replies.

Author
Posts
#2878059

I am trying to:
Access the Toolset settings page in the WordPress admin.

Link to a page where the issue can be seen:
wp-admin > Toolset > Settings (WC Styling section) — [insert your site URL here]

I expected to see:
The Toolset settings page loading normally.

Instead, I got:
A fatal PHP error that crashes the settings page entirely. Full error details below:

Error Details
=============
An error of type E_ERROR was caused in line 234 of the file /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/illuminate/events/Dispatcher.php. Error message: Uncaught Error: Call to undefined function Illuminate\Events\array_wrap() in /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/illuminate/events/Dispatcher.php:234
Stack trace:
#0 /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/illuminate/events/Dispatcher.php(188): Illuminate\Events\Dispatcher->parseEventAndPayload()
#1 /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/illuminate/events/Dispatcher.php(172): Illuminate\Events\Dispatcher->dispatch()
#2 /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/illuminate/view/Concerns/ManagesEvents.php(190): Illuminate\Events\Dispatcher->fire()
#3 /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/illuminate/view/Factory.php(137): Illuminate\View\Factory->callCreator()
#4 /home/emedia/public_html/wp-content/plugins/bit-pi-pro/vendor/illuminate/support/helpers.php(320): Illuminate\View\Factory->Illuminate\View\{closure}()
#5 /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/illuminate/view/Factory.php(136): tap()
#6 /home/emedia/public_html/wp-content/plugins/woocommerce-views/vendor/jenssegers/blade/src/Blade.php(79): Illuminate\View\Factory->make()
#7 /home/emedia/public_html/wp-content/plugins/woocommerce-views/application/Frontend/Blade_Renderer.php(37): Jenssegers\Blade\Blade->render()
#8 /home/emedia/public_html/wp-content/plugins/woocommerce-views/application/Settings/Sections/WC_Styling.php(52): WooViews\Frontend\Blade_Renderer->render()
#9 /home/emedia/public_html/wp-content/plugins/woocommerce-views/application/Settings/Sections/ASection.php(65): WooViews\Settings\Sections\WC_Styling->render()
#10 /home/emedia/public_html/wp-includes/class-wp-hook.php(353): WooViews\Settings\Sections\ASection->register()
#11 /home/emedia/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters()
#12 /home/emedia/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/toolset.settings.screen.class.php(99): apply_filters()
#13 /home/emedia/public_html/wp-includes/class-wp-hook.php(353): Toolset_Settings_Screen->settings_page()
#14 /home/emedia/public_html/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters()
#15 /home/emedia/public_html/wp-includes/plugin.php(523): WP_Hook->do_action()
#16 /home/emedia/public_html/wp-admin/admin.php(264): do_action()
#17 {main}
thrown

This appears to stem from a missing/undefined function (Illuminate\Events\array_wrap) in the bundled Illuminate/Laravel components within the woocommerce-views (Toolset Blocks / Toolset WooCommerce Blocks) plugin, possibly due to a PHP version incompatibility (array_wrap was removed in newer Laravel/Illuminate component versions).

Plugin(s) involved: Toolset WooCommerce Blocks 3.1.6 (woocommerce-views), Toolset Blocks (toolset-blocks)
PHP version: 8.3
WooCommerce version: 11.1.0
WordPress version: 7.1