[wp-trac] [WordPress Trac] #61794: Bugfix in class-wp-translation-file-mo for "PHP Warning: Undefined array key 1 in"

WordPress Trac noreply at wordpress.org
Wed Jul 31 10:06:53 UTC 2024


#61794: Bugfix in class-wp-translation-file-mo for "PHP Warning:  Undefined array
key 1 in"
--------------------------+------------------------------
 Reporter:  pander        |       Owner:  swissspidy
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:  6.6.1
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by swissspidy):

 The fix sounds reasonable to me, it adds some hardening.

 > If there are way to pinpoint better what is causing this, please let me
 know. I can help to locate it but need some guidance.

 One of your plugins has an invalid MO file. You can try a `var_dump(
 $this->file ) on line 160 to find the culprit.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61794#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list