Opened 20 months ago
Last modified 20 months ago
#58502 new defect (bug)
Visiting /wp-admin/options-permalink.php causing Fatal Error
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.2.2 |
Component: | Permalinks | Keywords: | close 2nd-opinion |
Focuses: | administration | Cc: |
Description (last modified by )
I'm using WordPress 6.2.2 on PHP 8.1.x
Fatal error: Uncaught ValueError: Unknown format specifier "<" in /wp-admin/options-permalink.php:38 Stack trace: #0 /wp-admin/options-permalink.php(38): sprintf() #1 {main} thrown in /wp-admin/options-permalink.php on line 38
Here is the WordPress Health Status:
### wp-core ### version: 6.2.2 site_language: bn_BD user_language: bn_BD timezone: Asia/Dhaka permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/PATHTRUNCATED wordpress_size: 685.79 MB (719102256 bytes) uploads_path: /home/PATHTRUNCATED/wp-content/uploads uploads_size: 584.80 MB (613205338 bytes) themes_path: /home/PATHTRUNCATED/wp-content/themes themes_size: 7.46 মেগাবাইট (7824982 bytes) plugins_path: /home/PATHTRUNCATED/wp-content/plugins plugins_size: 121.31 MB (127206397 bytes) database_size: 25.04 MB (26253129 bytes) total_size: 1.39 GB (1493592102 bytes) ### wp-dropins (1) ### maintenance.php: true ### wp-active-theme ### name: Twenty Fifteen (twentyfifteen) version: 3.4 author: ওয়ার্ডপ্রেস টিম author_website: https://wordpress.org/%20 parent_theme: none theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, menus, html5, post-formats, custom-logo, custom-background, editor-style, editor-styles, wp-block-styles, responsive-embeds, editor-color-palette, editor-gradient-presets, customize-selective-refresh-widgets, custom-header, widgets theme_path: /home/PATHTRUNCATED/wp-content/themes/twentyfifteen auto_update: off ### wp-themes-inactive (1) ### Twenty Twenty-Three: version: 1.1, author: the WordPress team, automated updates is turned off ### wp-mu-plugins (1) ### InfiniteWP - Client Loader: version: 1.0.1, author: Revmakx ### wp-plugins-active (1) ### Maintenano: version: 0.0.1, author: nanodesigns, automated updates is turned off ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: not found imagemagick_version: not found imagick_version: not found file_uploads: File uploads is turned off post_max_size: 8M upload_max_filesize: 2M max_effective_size: 2 মেগাবাইট max_file_uploads: 20 gd_version: 2.3.3 gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 4.18.0-348.20.1.lve.1.el7h.x86_64 x86_64 httpd_software: LiteSpeed php_version: 8.1.18 64bit php_sapi: litespeed max_input_variables: 1000 time_limit: 180 memory_limit: 128M admin_memory_limit: 256M max_input_time: 60 upload_max_filesize: 2M php_post_max_size: 8M curl_version: 7.87.0 OpenSSL/1.1.1p suhosin: false imagick_availability: false pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.3.39-MariaDB client_version: mysqlnd 8.1.18 max_allowed_packet: 268435456 max_connections: 151 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/PATHTRUNCATED/wp-content WP_PLUGIN_DIR: /home/PATHTRUNCATED/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: true WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable
Change History (5)
#2
@
20 months ago
I suggested corrections for both strings in Bengali (Bangladesh), Afrikaans, Myanmar (Burmese) and Tagalog. I also suggested changes to the second text string in Swahili and Uzbek. They still need approval.
#3
@
20 months ago
I corrected it a few minutes ago. Thank you so much for finding the issue, and also suggesting the string.
Note: See
TracTickets for help on using
tickets.
This is apparently a translation problem in Bengali and a few other languages. The
sprintf()
function expects placeholders such as%s
instead of<code>%</code>
for the "If you pick an option other than Plain" help text (since changeset 45926).The full error I received in PHP 8.1 is:
Fatal error: Uncaught ValueError: Unknown format specifier "<" in /.../wp-admin/options-permalink.php:38 Stack trace: #0 /.../wp-admin/options-permalink.php(38): sprintf('\xE0\xA6\x86\xE0\xA6\xAA\xE0\xA6\xA8\xE0\xA6\xBF \xE0\xA6...', '<code>%</code>') #1 {main} thrown in /.../wp-admin/options-permalink.php on line 38
Likewise, the "When you assign multiple categories or tags to a post" string needs both the
%1$s
and%2$s
placeholders, though I only had a warning about that in PHP 7.4:Warning: sprintf(): Too few arguments in \wp-admin\options-permalink.php on line 44