[NSFW] Fatal Error with German language
-
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.1Debugged 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]
The topic ‘[NSFW] Fatal Error with German language’ is closed to new replies.