Got error ‘PHP message: PHP Fatal error

[ad_1]

Hello support,

I have recently migrate a woocommerce website from a new server to a new PHP8.0 installation and I have an issue when I put an order from “processing” to “completed” in the order backend.

The error in the log is:

[Mon Apr 17 15:18:35.089803 2023] [proxy_fcgi:error] [pid 27059:tid 140558534125120] [client 86.172.213.11:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught ValueError: Unknown format specifier “V” in /home/runcloud/webapps/60oclock-gin-live/public/wp-content/themes/bramleyandgage-child/woocommerce/emails/customer-completed-order.php:28\nStack trace:\n#0 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/themes/bramleyandgage-child/woocommerce/emails/customer-completed-order.php(28): printf()\n#1 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘…’)\n#2 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template()\n#3 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-completed-order.php(109): wc_get_template_html()\n#4 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(572): WC_Email_Customer_Completed_Order->get_content_html()\n#5 /ho…’, referer:

I had a look at he “system status” and everything looks green. Here is the top part of the system status page:

WordPress address (URL):https://www.6oclockgin.comSite address (URL):https://www.6oclockgin.comWooCommerce version:7.5.0WooCommerce REST API package: 7.5.0 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/plugins/woocommerce/includesWooCommerce Blocks package: 9.6.5 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/plugins/woocommerce/packages/woocommerce-blocks/Action Scheduler package: 3.5.4 /home/runcloud/webapps/60oclock-gin-live/public/wp-content/plugins/woocommerce/packages/action-schedulerLog directory writable: /home/runcloud/webapps/60oclock-gin-live/public/wp-content/uploads/wc-logs/WordPress version:6.2WordPress multisite:–WordPress memory limit:256 MB

It looks like Woocemmerce throw a PHP error when it tries to send the “completed” notification email.

Can you please help with it?

Thanks

Marcello

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer