PHP8 Fatal Error in WooCommerce 5.1
-
Any ideas how to fix fatal error in WooCommerce with PHP8? On PHP 7.4 all works fine.
Here is the error message:
Fatal error: Uncaught TypeError: Unsupported operand types: int / string in /var/www/vhosts/tomtalk.co/ca7.pl/wp-content/plugins/woocommerce/includes/wc-core-functions.php:987 Stack trace: #0 /var/www/vhosts/tomtalk.co/ca7.pl/wp-content/plugins/woocommerce/includes/class-woocommerce.php(658): wc_get_image_size() #1 /var/www/vhosts/tomtalk.co/ca7.pl/wp-includes/class-wp-hook.php(292): WooCommerce->add_image_sizes() #2 /var/www/vhosts/tomtalk.co/ca7.pl/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #3 /var/www/vhosts/tomtalk.co/ca7.pl/wp-includes/plugin.php(484): WP_Hook->do_action() #4 /var/www/vhosts/tomtalk.co/ca7.pl/wp-settings.php(560): do_action() #5 /var/www/vhosts/tomtalk.co/ca7.pl/wp-config.php(86): require_once('/var/www/vhosts...') #6 /var/www/vhosts/tomtalk.co/ca7.pl/wp-load.php(37): require_once('/var/www/vhosts...') #7 /var/www/vhosts/tomtalk.co/ca7.pl/wp-admin/admin.php(34): require_once('/var/www/vhosts...') #8 {main} thrown in /var/www/vhosts/tomtalk.co/ca7.pl/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 987
This is a fresh installation for test purposes.
The page I need help with: [log in to see the link]
- The topic ‘PHP8 Fatal Error in WooCommerce 5.1’ is closed to new replies.