• Resolved pgsmarketing

    (@pgsmarketing)


    I updated my WordPress Multisite today while I was working on a site, and foolishly didn’t back up. After the update to WordPress 6.8, BeTheme 28.0.5, and Elementor 3.28.4, file URLs on all of the sites on this network are broken.

    As an example, an image link appears as domain/files/2025/04/CWLogo.png but returns the critical error message: “There has been a critical error on this website.”

    I’ve been struggling to find a solution but can’t seem to find what’s wrong. Any ideas or suggestions would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator threadi

    (@threadi)

    This problem with some (!) multisite installations is already known and documented here by the development team: https://core.trac.ww.wp.xz.cn/ticket/63285 – comment #7 there might be helpful for you. But also check whether the error mentioned can be seen in your error log.

    Thread Starter pgsmarketing

    (@pgsmarketing)

    Thank-you for the very quick help @threadi! This was exactly the problem.

    If anyone is having the same issue for an older multisite install and wants a temporary fix, here’s the info from that ticket:

    Reverting line 24 in ms-files.php to what it was in wp 6.7.2 fixes the issue…

    if ( '1' === $current_blog->archived || '1' === $current_blog->spam || '1' === $current_blog->deleted ) {
    Thread Starter pgsmarketing

    (@pgsmarketing)

    One addendum to this though is that the site displays fine with this change, but I’m having issues editing. It’s best to remember that this isn’t an official fix in any way and could also cause other issues. I’d recommend a backup before doing this, and being careful.

    OK, it’s working now. What I did:

    • deleted the MS section in the .htaccess file
    • get the standard codes from the WP website and paste it in

    Thank you to everybody here for your help

    # BEGIN WordPress Multisite
    # Using subfolder network type: https://ww.wp.xz.cn/documentation/article/htaccess/#multisite

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    # END WordPress Multisite
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multisite file URLs broken after update’ is closed to new replies.