Make WordPress Core

Opened 19 months ago

Closed 19 months ago

Last modified 19 months 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
19 months 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.


19 months ago

#3 @bgoewert
19 months 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
19 months 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.