You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the function “kbs_setup_kbs_ticket_tag_taxonomy()” you have this line of code:
'search_items' => sprintf( esc_html__( 'Search %s Tags', 'kb-support' ), kbs_get_ticket_label_singular() ),
When you change the language to Spanish in the backend, that line of code becomes:
sprintf('Buscar Etiqueta…', 'Ticket')
It triggers a fatal error because the Spanish translation of ‘Search %s Tags’ misses the %s.
I suggest you be sure all the translations have the format specifier required by the function sprintf.
In my case, it triggers a fatal error in the backend because of a bad translation.
Here what I find in the debug.log file:
[01-Jan-2023 18:09:30 UTC] PHP Fatal error: Uncaught ValueError: Missing format specifier at end of string in /Users/josemortellaro/Sites/plugins/wp-content/plugins/kb-support/includes/post-taxonomies.php:76
Describe the bug
In the function “kbs_setup_kbs_ticket_tag_taxonomy()” you have this line of code:
'search_items' => sprintf( esc_html__( 'Search %s Tags', 'kb-support' ), kbs_get_ticket_label_singular() ),
When you change the language to Spanish in the backend, that line of code becomes:
sprintf('Buscar Etiqueta…', 'Ticket')
It triggers a fatal error because the Spanish translation of ‘Search %s Tags’ misses the %s.
I suggest you be sure all the translations have the format specifier required by the function sprintf.
In my case, it triggers a fatal error in the backend because of a bad translation.
Here what I find in the debug.log file:
[01-Jan-2023 18:09:30 UTC] PHP Fatal error: Uncaught ValueError: Missing format specifier at end of string in /Users/josemortellaro/Sites/plugins/wp-content/plugins/kb-support/includes/post-taxonomies.php:76
https://wordpress.org/support/topic/bad-translation-triggers-a-fatal-error/
The text was updated successfully, but these errors were encountered: