• Resolved sanjayniu

    (@sanjayniu)


    Hello team,

    I am facing the below fatal error on the default german language with PHP 8.0 version.

    PHP Fatal error: Uncaught ValueError: Unknown format specifier "t" in wp-content/plugins/user-registration/includes/libraries/wp-background-process.php:430
    Stack trace:
    #0 wp-content/plugins/user-registration/includes/libraries/wp-background-process.php(430): sprintf('Alle %te Minute...', 5)
    #1 /wp-includes/class-wp-hook.php(308): WP_Background_Process->schedule_cron_healthcheck(Array)
    #2 /wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #3 /wp-includes/cron.php(1062): apply_filters('cron_schedules', Array)
    #4 /wp-includes/cron.php(984): wp_get_schedules()
    #5 /wp-includes/class-wp-hook.php(308): _wp_cron('')
    #6 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #7 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #8 /wp-settings.ph" while reading response header from upstream, client: 202.131.1
    

    Debugged the issue, the issue is with the default language. the sprintf function is not working properly with the default german language. because sprintf (%d) parameter changed with german language.

    Currently, I changed in plugin on user-registration/includes/libraries/wp-background-process.php:430 and removed sprintf function and now it’s working fine.

    Before: 'display' => sprintf( __( 'Every %d minutes', 'user-registration' ), $interval ),
    After: __( 'Every '.$interval.' minutes', 'user-registration' ),

    Can you please debug and fix it on next release?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @sanjayniu,

    Thank you for the issue details,

    We are looking into it, we will release the update within 3 working days to resolved this issue.

    Regards!

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @sanjayniu,

    We have translated the plugin into the German language, but we did not find any issues. We have carefully checked your error message and found the mistake in your translation that causes the error. You have translated the dynamic value (%d) during the translation that generates the fatal error.

    For more clarification, please check the screenshot https://i.imgur.com/pLTsJuX.png.

    We recommend you undo such translation and be careful while translating the string, which generates the values dynamically.

    Regards!

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

The topic ‘[NSFW] Fatal Error with German language’ is closed to new replies.