Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#11681 closed defect (bug) (fixed)

Erratic Behavior When wp-includes/pomo Missing

Reported by: miqrogroove Owned by: westi
Priority: normal Milestone: 3.0
Component: I18N Version: 2.8
Severity: normal Keywords: commit
Cc: Focuses:

Description

WordPress throws

Fatal error: Class 'NOOP_Translations' not found in /wp-includes/l10n.php on line 437

I believe this is caused by erroneous use of "include_once" in wp-settings.php, where "require_once" was intended.

See it in the wild at http://wordpress.org/support/topic/344708

Change History (3)

#1 @westi
17 years ago

  • Component Generali18n
  • Milestone 2.9.13.0
  • Owner set to westi
  • Severity criticalnormal
  • Status newaccepted

I don't see how switching to require_once instead of include_once would fix this.

The file which includes the NOOP_Translations class wp-includes/pomo/translations.php has always existed and the way this is pulled in hasn't changed between 2.8 and 2.9.

The content of the file has though - http://bit.ly/66oWKa

Moving to 3.0 - I can see the argument for using require over include here as the content of the files is needed.

#2 @miqrogroove
17 years ago

  • Keywords commit added

westi, do you need a patch?

#3 @nacin
17 years ago

  • Resolutionfixed
  • Status acceptedclosed
Note: See TracTickets for help on using tickets.