Vvv: Theme folder with name "files" causes issue in a multisite

Created on 14 Apr 2016  Â·  8Comments  Â·  Source: Varying-Vagrant-Vagrants/VVV

This took a while to debug. I'm running a multisite install with a WP theme that has a folder called "files/" in it. Accessing the files in that folder causes a rewrite that's actually meant for multisite media uploads.

I'm assuming the related rewrite in nginx-wp-common.conf needs to be a bit more specific to avoid targeting regular theme folders.

bug patch

All 8 comments

I've hit this a couple of times doing WP-Parser work which has a taxonomy
named 'files'. At this point are we not far enough that we can abstract
this portion of the nginx.conf out into something like a
'lagacy-ms-nginx.conf' file or similar? That way most sites can continue to
hum along perfectly and even use the files/ namespace as needed while
legacy sites still needing the config can include it?

Luke Woodward – Associate Director of Engineering
10up Inc. http://10up.com | luke.[email protected] | @lkwdwrd

On Thu, Apr 14, 2016 at 4:22 AM, Berend [email protected] wrote:

This took a while to debug. I'm running a multisite install with a WP
theme that has a folder called "files/" in it. Accessing the files in that
folder causes a rewrite that's actually meant for multisite media uploads.

I'm assuming the related rewrite in nginx-wp-common.conf needs to be a bit
more specific to avoid targeting regular theme folders.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Varying-Vagrant-Vagrants/VVV/issues/874

By legacy, do you mean the rewrite is only there for older WP versions? If so, up to what version?

My understanding is this is a change that happened in WordPress 3.5. At
least that's what the codex page seems to indicate
https://codex.wordpress.org/Multisite_Network_Administration. Basically
http://example.com/files/... is not used for networks created on 3.5 plus.
What I am loosely referring to as a legacy network site.

Luke Woodward – Associate Director of Engineering
10up Inc. http://10up.com | luke.[email protected] | @lkwdwrd

On Thu, Apr 14, 2016 at 7:52 AM, Berend [email protected] wrote:

By legacy, do you mean the rewrite is only there for older WP versions? If
so, up to what version?

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/Varying-Vagrant-Vagrants/VVV/issues/874#issuecomment-209925588

That's good to know. Then I'll just remove it in my case. But who needs WP < 3.5 support anyway?
Thanks for the information!

At this point are we not far enough that we can abstract
this portion of the nginx.conf out into something like a
'lagacy-ms-nginx.conf' file or similar?

Yes! I keep on forgetting that this is part of the config. Let's fix it. :)

@tomjn we still need to support wp < 3.5?

lets close this out

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rwrobe picture rwrobe  Â·  4Comments

rwrobe picture rwrobe  Â·  4Comments

ghost picture ghost  Â·  5Comments

dingo-d picture dingo-d  Â·  3Comments

robneu picture robneu  Â·  4Comments