[wp-trac] [WordPress Trac] #63104: Undefined constant "BLOGUPLOADDIR" for subdirectory multisites
WordPress Trac
noreply at wordpress.org
Fri Mar 14 14:21:11 UTC 2025
#63104: Undefined constant "BLOGUPLOADDIR" for subdirectory multisites
--------------------------------+-----------------------------
Reporter: danielpw | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: WordPress.org Site | Version: 6.7.2
Severity: normal | Keywords:
Focuses: multisite |
--------------------------------+-----------------------------
A fatal error occurs when navigating to any site URL that contains '/wp-
content/files/' on subdirectory multisites. Example: sitedomain.com/wp-
content/files/
The error is:
PHP Fatal error: Uncaught Error: Undefined constant "BLOGUPLOADDIR" in
/www/site/public/wp-includes/ms-files.php:26
This error does not occur when navigating to '/wp-content/files/' on
subdomain multisites.
This was tested on a new/fresh subdirectory multisite install, with the
latest version of WordPress using a default theme, and the error still
occurred.
Steps to reproduce the problem:
- On a multisite that uses subdirectories, go to '/wp-content/files/' and
it should result in a critical error
- Example: sitedomain.com/wp-content/files/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63104>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list