WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 3 months ago

#40598 new defect (bug)

PHP Fatal error: Call to a member function switch_to_locale() on null

Reported by: hiheaven01 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.4
Component: I18N Keywords:
Focuses: Cc:

Description

Wordpress 4.7.4, WooCommerce 3.0.4. Please help.
My front page won't display images of products, get this error in log:

PHP Fatal error: Call to a member function switch_to_locale() on null in /nas/content/live/lhsupply/wp-includes/l10n.php on line 1277

Change History (2)

#1 @jdsteinbach
3 months ago

First time in the tickets: apologies in advance if this is the wrong place for this.

I'm getting the same error logged with WP 4.8, WooCommerce 3.1.1.

#2 @SergeyBiryukov
3 months ago

  • Component changed from General to I18N
Note: See TracTickets for help on using tickets.