Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#57444 closed defect (bug) (duplicate)

PHP issue with maintance page

Reported by: nekojonez's profile NekoJonez Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: I18N Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Since the PHP 8.0 update, I get this error message on my websites while plugins are updating:

Fatal error: Uncaught Error: Call to undefined function trailingslashit() in ***/httpd.www/ontwikkel/wp-includes/class-wp-textdomain-registry.php:103
Stack trace:
#0 ***/httpd.www/ontwikkel/wp-includes/l10n.php(784): WP_Textdomain_Registry->set('default', 'nl_NL', '/*/*/*/...')
#1 ***/httpd.www/ontwikkel/wp-includes/load.php(1401): load_textdomain('default', '/*/*/*/...', 'nl_NL')
#2 ***/httpd.www/ontwikkel/wp-includes/load.php(278): wp_load_translations_early() 
#3 ***/httpd.www/ontwikkel/wp-settings.php(74): wp_maintenance()
#4 ***/httpd.www/ontwikkel/wp-config.php(125): require_once('/*/*/*/...')
#5 ***/httpd.www/ontwikkel/wp-load.php(50): require_once('/*/*/*/...')
#6 ***/httpd.www/ontwikkel/wp-admin/admin.php(34): require_once('/*/*/*/...')
#7 ***/httpd.www/ontwikkel/wp-admin/index.php(10): require_once('/*/*/*/...')
#8 {main} thrown in ***/httpd.www/ontwikkel/wp-includes/class-wp-textdomain-registry.php on line 103

I censored my domain and such for obivious reasons.

It's only a visual thing since this shows when the plugin/theme's are updating.

Change History (4)

#1 @NekoJonez
2 years ago

Something I forgot to say was that this error message shows instead of the "Briefly unavailble due to maintance" page.

This ticket was mentioned in Slack in #core by nekojonez. View the logs.


2 years ago

#3 @bgoewert
2 years ago

  • Component changed from Site Health to I18N
  • Resolution set to duplicate
  • Status changed from new to closed

Hello @NekoJonez and thank you for the bug report.

I saw this posted in Slack and agree with what todeveni said that this looks to be a duplicate. It appears that we are already tracking this issue in #57218

#4 @SergeyBiryukov
2 years ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted

Hi there, thanks for the ticket!

Indeed, as pointed out above, this looks like a manifestation of the issue that was previously reported in #57218.

Note: See TracTickets for help on using tickets.