• Resolved kees78

    (@kees78)


    hi,

    Since updating to the newest woocommerce plugin release, 9.8.2, we have a fatal error.

    Uncaught ValueError: Missing format specifier at end of string in …wp-content/plugins/woocommerce/includes/class-wc-post-types.php:238
    On this line, if i replace:
    ‘all_items’ => sprintf( __( ‘All %s’, ‘woocommerce’ ), $label ),
    by
    ‘all_items’ => ‘All ‘ . $label,
    the error is gone.
    But this is obviously not supposed to be like this, as it is a core woocommerce file.

    I have tried to search for loco translate etc. for what might be wrong but i cant find anything.
    I disabled all other plugins except woocommerce and error remains.

    Please advice what to do,

    kind regards, kees

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @kees78,

    If you’re using the WPML plugin, this might be related to a known issue with the WPML String Translation module. In that case, please check out the following link for more details and a suggested fix:

    https://wpml.org/errata/wpml-string-translation-3-2-10-fatal-error-due-to-format-specifier/

    Thread Starter kees78

    (@kees78)

    We are not using wpml neither loco translate or any other of these plugins.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!


    To assist you further, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    Thread Starter kees78

    (@kees78)

    I have trouble posting all that information here, visible for all visitors.

    • This reply was modified 1 year, 1 month ago by kees78.
    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the system status report and error log. To assist you further, could you please create a staging site? You can use the following plugin to do that: https://ww.wp.xz.cn/plugins/wp-staging/

    Once the staging site is set up, please update WordPress to the latest version, deactivate all plugins except WooCommerce, and then reinstall WooCommerce. After that, check if you still experience the same issue.

    Let me know how it goes!

    hoffmana78

    (@hoffmana78)

    Hi, I had the same problem. After deactivating all plugins and using standard theme, then deleting woocommerce from server inclusing language files via FTP, then reinstalling, it worked! I activated all plugins again and my regular theme, all was running fine. So deleting and reinstalling woocommerce plugin can help!

    Thanks.

    georg03

    (@georgdem)

    Same problem here with Woocommerce 9.8.5. I already tried to delete/reinstall woocommerce and I do not use WPML. What is causing this fatal error?

    Uncaught ValueError: Missing format specifier at end of string in …wp-content/plugins/woocommerce/includes/class-wc-post-types.php:238

    I can confirm that this error occurs starting with Woocommerce 9.8.0.

    Thanks

    • This reply was modified 1 year ago by georg03.
    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi @georgdem

    I understand that you have a somewhat similar problem.

    However, per forum best practices shown here, it is advised that you create a new thread so that we can address your issue(s) separately.

    You can create a new thread here: https://ww.wp.xz.cn/support/plugin/woocommerce/#new-topic-0 and make sure to include as much information as you can.

    Thanks for understanding!

    Plugin Support Kay U a11n

    (@kingsleyinfo)

    Hello @kees78

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    If you have a few minutes, we’d love if you could leave us a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/

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

The topic ‘Php Fatal error: Uncaught ValueError: Missing format specifier at end of string’ is closed to new replies.