Opened 7 weeks ago
Closed 7 weeks ago
#62097 closed defect (bug) (duplicate)
MO-Translation: Undefinied Array-Key
Reported by: | marcusthierfelder | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.6.2 |
Component: | I18N | Keywords: | has-patch |
Focuses: | Cc: |
Description
In the file wp-includes/l10n/class-wp-translation-file-mo.php in line 161, the following error occurs under certain circumstances:
“PHP message: PHP Warning: Undefined array key 1 in /wp-includes/l10n/class-wp-translation-file-mo.php on line 161”.
The error can be corrected by the following adjustment:
list( $name, $value ) = array_map( 'trim', array_pad(explode( ':', $meta_line, 2 ), 2, '' ));
Change History (2)
This ticket was mentioned in PR #7419 on WordPress/wordpress-develop by @narenin.
7 weeks ago
#1
- Keywords has-patch added
#2
@
7 weeks ago
- Component changed from General to I18N
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Hi there and welcome to Trac!
Thanks for the detailed report & patch.
If you encounter this issue, it means one of your plugins has a faulty MO file.
This issue was previously identified and fixed in #61794 and will be in WordPress 6.7.
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/62097