Fatal error after switching to PHP 8.1
-
Hi, I updated PHP on my site from 7.2 to 8.1 and this caused a fatal error on the site. After checking the logs, the error points to your plugin. The error is
PHP Fatal error: Uncaught Error: Call to a member function setLogger() on string in /plugins/shopmagic-for-woocommerce_/src/Workflow/Extensions/ExtensionsSet.php:115\nStack trace:\n#0 /plugins/shopmagic-for-woocommerce_/src/Workflow/Extensions/ExtensionsSet.php(86): WPDesk\ShopMagic\Workflow\Extensions\ExtensionsSet->init_extension(Object(WPDesk\ShopMagic\Workflow\Extensions\Builtin\WooCommerceExtension))\n#1 /plugins/shopmagic-for-woocommerce_/src/Plugin.php(276): WPDesk\ShopMagic\Workflow\Extensions\ExtensionsSet->init_extensions()\n#2 /wp-includes/class-wp-hook.php(308): WPDesk\ShopMagic\Plugin->WPDesk\ShopMagic\{closure}(”)\n#3 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)\n#4 /wp-includes/…
The issue is resolved if I revert back to older PHP. The plugin is up to date on version 4.0.2.
Could you support me with this problem, please?
- The topic ‘Fatal error after switching to PHP 8.1’ is closed to new replies.