• Resolved marcellofanatic

    (@marcellofanatic)


    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

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @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, 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

    (@marcellofanatic)

    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

    Hi @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. 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.