[wp-trac] [WordPress Trac] #26710: Wrong redirect URL after core update when WP is in subdirectory
WordPress Trac
noreply at wordpress.org
Tue Apr 15 22:38:02 UTC 2014
#26710: Wrong redirect URL after core update when WP is in subdirectory
-----------------------------+------------------------------
Reporter: tar.gz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.8
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by tar.gz):
Ok, I think I figured out a possible cause.
What I recently noticed is that the issue affects:
- freshly installed WordPress sites.
- sites that are simply placed in a subdirectory.
- sites that are running on shared hosting.
Typical scenario:
- The site is installed in a subdirectory, such as EXAMPLE.com/wp
(WP_SITEURL and WP_HOME are identical)
- The manual upgrade runs from EXAMPLE.com/wp/wp-admin/update-core.php
- The site being hosted on a slow server, the install ends with the
messages "Disabling maintenance mode...", "Database is being upgraded...",
"WordPress database error: [MySQL server has gone away]".
- The page then redirects to EXAMPLE.com/wp-admin/about.php?updated - this
results in a 404 error.
So, in the event that the database doesn't respond, the post-install
action fails to retrieve the WP_SITEURL, and redirects the browser to the
domain root (ignoring the current subdirectory).
It's an edge case for sure, and I'm not sure if something can or should be
done to fix this... just reporting.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26710#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list