• Resolved xnosek00

    (@xnosek00)


    Hi, I think, I found a bug. I was investigating some problem on my server and I found, there was an error in the debug.log.

    [07-Jul-2022 13:04:28 UTC] PHP Fatal error:  Uncaught ValueError: Unknown format specifier "S" in /var/www/mywebsite.org/wp-content/plugins/woocommerce/templates/single-product-reviews.php:120
    Stack trace:
    #0 /var/www/mywebsite.org/wp-content/plugins/woocommerce/templates/single-product-reviews.php(120): sprintf()
    #1 /var/www/mywebsite.org/wp-includes/comment-template.php(1556): require('...')
    #2 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/module/woocommerce/Tabs.php(408): comments_template()
    #3 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/functions.php(1358): ET_Builder_Module_Woocommerce_Tabs::get_tabs()
    #4 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/functions.php(1606): et_fb_current_page_woocommerce_components()
    #5 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/frontend-builder/helpers.php(344): et_fb_current_page_params()
    #6 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/frontend-builder/helpers.php(2818): et_fb_get_dynamic_backend_helpers()
    #7 /var/www/mywebsite.org/wp-includes/class-wp-hook.php(307): et_fb_backend_helpers()
    #8 /var/www/mywebsite.org/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #9 /var/www/mywebsite.org/wp-includes/plugin.php(476): WP_Hook->do_action()
    #10 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/frontend-builder/assets.php(349): do_action()
    #11 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/frontend-builder/view.php(119): et_fb_enqueue_assets()
    #12 /var/www/mywebsite.org/wp-includes/class-wp-hook.php(307): et_fb_wp_footer()
    #13 /var/www/mywebsite.org/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #14 /var/www/mywebsite.org/wp-includes/plugin.php(476): WP_Hook->do_action()
    #15 /var/www/mywebsite.org/wp-includes/general-template.php(3058): do_action()
    #16 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-footer-template.php(18): wp_footer()
    #17 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(216): require_once('...')
    #18 /var/www/mywebsite.org/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(260): et_theme_builder_frontend_override_partial()
    #19 /var/www/mywebsite.org/wp-includes/class-wp-hook.php(309): et_theme_builder_frontend_override_footer()
    #20 /var/www/mywebsite.org/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #21 /var/www/mywebsite.org/wp-includes/plugin.php(476): WP_Hook->do_action()
    #22 /var/www/mywebsite.org/wp-includes/general-template.php(82): do_action()
    #23 /var/www/mywebsite.org/wp-content/plugins/woocommerce/templates/single-product.php(60): get_footer()
    #24 /var/www/mywebsite.org/wp-includes/template-loader.php(106): include('...')
    #25 /var/www/mywebsite.org/wp-blog-header.php(19): require_once('...')
    #26 /var/www/mywebsite.org/index.php(17): require('...')

    So I found row 120 in the file wp-content/plugins/woocommerce/templates/single-product-reviews.php and added space between %1$s logged. And the bug has been solved.

    The string had had this value before (without space): %1$slogged

    I’m running on php version 8.1.

    Can you please confirm, if it is a bug? And is it correctly repaired? Or is there any other way, how to solve this bug?

    • This topic was modified 2 years, 4 months ago by xnosek00.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error: Uncaught ValueError: Unknown format specifier “S”’ is closed to new replies.