Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Errors with latest version in Multisite environment #117

Closed
julianmatz opened this issue Feb 20, 2018 · 10 comments
Closed

404 Errors with latest version in Multisite environment #117

julianmatz opened this issue Feb 20, 2018 · 10 comments

Comments

@julianmatz
Copy link

With the latest update, WP Document Revisions seems to have stopped working in my MU setup. Documents appear to load on the main site, but not on any others. The plugin is Network Activated. What seems to happen for all document links is that a trailing slash is added to the end of the URL (via redirect) and a 404 page is served. When downgrading to version 3.0.1, it works.

Permalinks are set to post name.

@benbalter
Copy link
Collaborator

@JonasBrand could this be related to #113 / #111?

@JonasBrand
Copy link
Contributor

I don't think so. I'll run some tests on the latest version to see if I can replicate the issue.

@julianmatz: Which "Document Upload Directory" do you have set in the network-wide configuration (Network Admin -> Settings- > Network Settings -> Document Settings)? Should be [YOURPATH]/wp-content/uploads/sites/%site_id% for a normal setup.

@JonasBrand
Copy link
Contributor

I also see the issue julianmatz describes with the latest version 3.1.1.
On the subsite (not on the main site), the HTTP request to /documents/file.zip is answered with a redirect to /documents/file.zip/ (via location header) and that leads to a 404 error. So it rather looks like a redirect rule issue to me...

@julianmatz
Copy link
Author

julianmatz commented Feb 21, 2018

@JonasBrand I had left the Document Upload Directory set to its default, but after I noticed the issue, I changed it to:

/home/[****]/public_html/wp-content/uploads/documents

I also changed the Document Slug from "documents" to "docs" and refreshed the Permalink Settings, but this didn't make a difference.

I got the same results with all.

I'm not too sure if it's a redirect issue. One document did load for me once, even with the trailing slash. I also tried changing the permalink structure from /%postname%/ to /%postname%. This prevented the redirect, but I still got the 404.

@benbalter
Copy link
Collaborator

I believe #119 may fix this. Please try version 3.1.2.

@benbalter
Copy link
Collaborator

Per https://wordpress.org/support/topic/permalinks-not-working-after-upgrade-from-2-2-0-to-3-1-1/#post-10020203, I believe this is fixed, but please comment/reopen if that is not the case.

@JonasBrand
Copy link
Contributor

No, this issue is unfortunately not fixed with the new version 3.1.2. Please re-open - I don't seem to have the permission.

@benbalter benbalter reopened this Feb 27, 2018
@julianmatz
Copy link
Author

Please let me know if you'd like me to test.

@stale
Copy link

stale bot commented Apr 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 28, 2018
@settings settings bot removed the wontfix label May 3, 2018
@stale
Copy link

stale bot commented Jul 2, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 2, 2018
@stale stale bot closed this as completed Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants