Passer la navigation

[En attente du retour de l'utilisateur] Fatal Error Accessing Toolset Settings Page with WooCommerce Blocks

This support ticket is created Il y a 3 days, 6 hours. There's a good chance that you are reading advice that it now obsolete.

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.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par Christopher Amirian Il y a 14 hours, 8 minutes.

Assisté par: Christopher Amirian.

Auteur
Publications
#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

#2878820

Christopher Amirian
Supporter

Les langues: Anglais (English )

Screenshot 2026-09-13 at 12.01.14 PM.png

Hi,

Welcome to Toolset Support. I checked my installation, but I could not reproduce the error you mentioned.

Therefore, the issue might be related to your installation. Let's check it by following these steps:

- IMPORTANT STEP! Create a backup of your website. An even better approach would be to test this on a copy/staging version of the website to avoid disrupting the live website.
- Go to "WordPress Dashboard > Plugins > Add New > Commercial (tab)."
- Click the "Check for Updates" button.
- Update Toolset and its add-ons there.

After that, follow these steps:

- IMPORTANT STEP! Create a backup of your website. An even better approach would be to test this on a copy/staging version of the website to avoid disrupting the live website.
- Switch to a default theme such as Twenty Twenty by going to "WordPress Dashboard > Appearance > Themes."
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except:
- Toolset Types
- Toolset Blocks
- WooCommerce
- WooCommerce Blocks
- Check whether you can still reproduce the issue.
- If not, reactivate your plugins one by one and check for the issue each time to identify the plugin causing the problem.

Thanks.