• Resolved locoleader

    (@locoleader)


    I received an e-mail from wordpress that there is a critical error on my site. Details of the error are below. How can I fix this situation?

    WordPress version 5.9.2
    Theme used: Sober (version 3.2.6)
    Plugin used: WP Mail SMTP (version 3.3.0)
    PHP version 8.1.1

    Error details
    =================
    An error of type E_ERROR occurred on line 557 of the file /home2/ariathxm/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/DashboardWidget.php. Error message: Uncaught ValueError: Unknown format specifier "S" in /home2/ariathxm/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/DashboardWidget.php:557
    Stack trace:
    #0 /home2/ariathxm/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/DashboardWidget.php(557): sprintf('%S g\xC3\xB6nted', 'N/A')
    #1 /home2/ariathxm/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/DashboardWidget.php(465): WPMailSMTP\Admin\DashboardWidget->get_email_stats_data()
    #2 /home2/ariathxm/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/DashboardWidget.php(301): WPMailSMTP\Admin\DashboardWidget->email_stats_block()
    #3 /home2/ariathxm/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/DashboardWidget.php(237): WPMailSMTP\Admin\DashboardWidget->widget_content_html()
    #4 /home2/ariathxm/public_html/wp-admin/includes/template.php(1395): WPMailSMTP\Admin\DashboardWidget->widget_content('', Array)
    #5 /home2/ariathxm/public_html/wp-admin/includes/dashboard.php(265): do_meta_boxes(Object(WP_Screen), 'normal', '')
    #6 /home2/ariathxm/public_html/wp-admin/index.php(203): wp_dashboard()
    #7 {main}
      thrown
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @locoleader,

    Thanks for reaching out! This issue seems to be related to the language that you’re using on your WordPress site.

    Could you please confirm the language that you’re using on your WordPress site? so that I can check with our developers and assist you further.

    Thanks!

    Thread Starter locoleader

    (@locoleader)

    Default language is Turkish but I made a multilingual site with Polylang (TR-EN-DE)

    Plugin Support Darshana

    (@darshanaw)

    Hi @locoleader,

    Thank you for the details!

    As we have checked the Turkish and German languages on WP.org, the Turkish language does not have a translation for the string “Sent %s”, and the German language does have it.

    Maybe you have manually translated this string via Polylang. If so, could you please check this “Sent %s” string? From the error that you have provided, it looks like you have translated it to “%S g\xC3\xB6nted”, which is not OK. Maybe the “%s” placeholder has to have a lowercase s.

    I hope this helps. Thanks!

    Thread Starter locoleader

    (@locoleader)

    I think I solved the problem. I fixed the mistakes made by the Locotranslate automatic translation one by one. I hope everything is resolved. Thank you for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error – DashboardWidget.php’ is closed to new replies.