Make WordPress Core

Opened 21 months ago

Closed 9 months ago

#55866 closed defect (bug) (reported-upstream)

wordpress 6 with arabic bug

Reported by: sabry91's profile sabry91 Owned by:
Milestone: Priority: normal
Severity: blocker Version: 6.0
Component: I18N Keywords:
Focuses: rtl Cc:

Description (last modified by SergeyBiryukov)

Once you install version 6 and change the language to Arabic.
This problem occurs.
Tested on more than one server

Fatal error: Uncaught ValueError: Missing format specifier at end of string in //wp-includes/script-loader.php:1271

Stack trace:
#0 //wp-includes/script-loader.php(1271): sprintf()
#1 //wp-includes/class-wp-hook.php(307): wp_default_scripts()
#2 //wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 //wp-includes/plugin.php(524): WP_Hook->do_action()
#4 //wp-includes/class.wp-scripts.php(167): do_action_ref_array()
#5 //wp-includes/class.wp-scripts.php(142): WP_Scripts->init()
#6 //wp-includes/functions.wp-scripts.php(24): WP_Scripts->__construct()
#7 //wp-includes/functions.wp-scripts.php(147): wp_scripts()
#8 //wp-includes/widgets/class-wp-widget-text.php(59): wp_add_inline_script()
#9 //wp-includes/class-wp-widget.php(274): WP_Widget_Text->_register_one()
#10 //wp-includes/class-wp-widget-factory.php(102): WP_Widget->_register()
#11 //wp-includes/class-wp-hook.php(307): WP_Widget_Factory->_register_widgets() 
#12 //wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#13 //wp-includes/plugin.php(476): WP_Hook->do_action()
#14 //wp-includes/widgets.php(1854): do_action()
#15 //wp-includes/class-wp-hook.php(307): wp_widgets_init()
#16 //wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#17 //wp-includes/plugin.php(476): WP_Hook->do_action()
#18 //wp-settings.php(598): do_action()
#19 //wp-config.php(96): require_once('/...')
#20 //wp-load.php(50): require_once('/...')
#21 //wp-blog-header.php(13): require_once('/...')
#22 //index.php(17): require('/...')
#23 {main} thrown in 

Change History (5)

#1 @SergeyBiryukov
21 months ago

#55867 was marked as a duplicate.

#2 @SergeyBiryukov
21 months ago

  • Component changed from General to I18N
  • Description modified (diff)
  • Keywords needs-unit-tests removed

Hi there, welcome to WordPress Trac!

This appears to be a bug in the Arabic translation of a particular string. Note %2$ there, it should be %2$s instead.

Once the translation is corrected and the language pack is updated, the error should disappear. Pinging @okfie as a Translation Editor for Arabic.

#3 @okfie
21 months ago

Hi there,
Thanks to inform us about this issue.
I changed the string variable from %2$ to %2$s.

@SergeyBiryukov Can tell us about the websites that have this issue it will update Arabic translations automatically?

This ticket was mentioned in Slack in #core by sergey. View the logs.

21 months ago

#5 @sabernhardt
9 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

I am unsure whether the error fixed itself automatically or if the code change suggested in the support topic would have worked, but the translation was corrected.

Note: See TracTickets for help on using tickets.