Title: Got error &#8216;PHP message: PHP Fatal error
Last modified: April 17, 2023

---

# Got error ‘PHP message: PHP Fatal error

 *  Resolved [marcellofanatic](https://wordpress.org/support/users/marcellofanatic/)
 * (@marcellofanatic)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/got-error-php-message-php-fatal-error-3/)
 * 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: [https://www.6oclockgin.com/wp-admin/post.php?post=59714&action=edit](https://www.6oclockgin.com/wp-admin/post.php?post=59714&action=edit)_“
 * 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](https://www.6oclockgin.comSite)
   address (URL):[https://www.6oclockgin.comWooCommerce](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

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/got-error-php-message-php-fatal-error-3/#post-16663725)
 * Hi [@marcellofanatic](https://wordpress.org/support/users/marcellofanatic/)
 * Thanks for reaching out!
 * I understand that after migrating your site from a new server to a new installation
   having PHP 8, you are receiving the error message above when updating an order
   from `Processing` to `Completed`, correct?
 * Checking the error logs above, this points to your theme `/themes/bramleyandgage-
   child`. It seems that you’ve overridden the default email template by creating
   a child theme.
 * Since this is a third-party product that we don’t provide support for based on
   our [Support Policy](https://woocommerce.com/support-policy/), I recommend that
   you reach out to the developers of the plugin for further assistance. They will
   be better equipped to help you resolve any issues you’re experiencing with the
   plugin.
 * All the best and hopefully, the issue will be fixed soon.
 *  Thread Starter [marcellofanatic](https://wordpress.org/support/users/marcellofanatic/)
 * (@marcellofanatic)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/got-error-php-message-php-fatal-error-3/#post-16664244)
 * Hi Xue,
 * thanks for your quick reply,
 * I found the error, the issue is on the custom completed order notification email
   on the custom template as you suggested. The ‘%’ on the function below throw 
   a PHP error:
 * “_printf( \_\_( “Hi there.  Your recent order with Bramley & Gage has been completed
   and is on its way to you. Thank you for ordering from us, we hope you like your
   products and will visit our site again soon. Your order details are shown below
   for your reference. Price includes 20**%** VAT.”, ‘woocommerce’ ), get\_option(‘
   blogname’ ) );_“
 * Thanks for your help
 * Marcello
 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/got-error-php-message-php-fatal-error-3/#post-16664309)
 * Hi [@marcellofanatic](https://wordpress.org/support/users/marcellofanatic/)
 * You are most welcome and we’re glad that worked! 🙂
 * Meanwhile, if you have a moment to spare, we would love it if you could share
   your thoughts with us by leaving a [review or feedback](https://wordpress.org/support/plugin/woocommerce/reviews/).
   Your experience and feedback are important to help us improve and ensure we’re
   always providing the best possible support.
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Got error ‘PHP message: PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/got-error-php-message-php-fatal-error-3/#post-16664309)
 * Status: resolved