WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53553


Ignore:
Timestamp:
06/29/2021 08:50:09 PM (4 months ago)
Author:
SergeyBiryukov
Comment:

Hi there, welcome to WordPress Trac! Thanks for the report.

This also seems similar to #49145 (fixed in [49639] for 5.6).

Seems problem shows up when wp-config.php includes:

<?php
define('WP_CONTENT_URL', $_SERVER[HTTP_HOST])

Just noting that this line sets WP_CONTENT_URL to an empty value due to incorrect quotes, these should be straight single quotes instead of ‘curly’ quotes:

<?php
define('WP_CONTENT_URL', $_SERVER['HTTP_HOST'])

It also causes a warning in PHP 7.2+:

Warning: Use of undefined constant ‘HTTP_HOST’ - assumed '‘HTTP_HOST’' (this will throw an Error in a future version of PHP)

And a fatal error on PHP 8:

Fatal error: Uncaught Error: Undefined constant "‘HTTP_HOST’"

Fixing the quotes should remove the notice, though I wonder if an empty WP_CONTENT_URL could cause other issues elsewhere, and whether this notice in load_script_textdomain() is currently the only indicator that something is wrong, in which case it might be helpful for debugging. Moving to 5.9 for investigation.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53553

    • Property Component changed from General to I18N
    • Property Milestone changed from Awaiting Review to 5.9
  • Ticket #53553 – Description

    initial v1  
    1 There was a previous ticket for a similar problem [https://core.trac.wordpress.org/ticket/46387#ticket] that was resolved but a similar issue has appeared on line 1047 of /wp-includes/l10n.php. Existed in 5.6.x. Still exists in 5.7.2.
     1There was a previous ticket for a similar problem #46387 that was resolved but a similar issue has appeared on line 1047 of /wp-includes/l10n.php. Existed in 5.6.x. Still exists in 5.7.2.
    22
    33Seems problem shows up when wp-config.php includes: