WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#26949 closed defect (bug) (worksforme)

when upgrading a WordPress site installed in a subfolder we get a 404 error page

Reported by: jaumearagay Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8
Component: Upgrade/Install Keywords:
Focuses: Cc:

Description

When upgrading a WordPress site installed in a directory I get a 404 error page because WP goes to:

http://mydomain.ext/wp-admin/update-core.php

instead of going to:

http://mydomain.ext/my-wp-install-folder/wp-admin/update-core.php

So it seems WP uses Site address (URL) instead of WordPress address (URL) as set on the General panel.

Change History (3)

This ticket was mentioned in IRC in #wordpress-dev by aubreypwd. View the logs.


6 years ago

#2 @aubreypwd
6 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The form submits to update-core.php in the current working directory, which for you should be my-wp-install-folder/wp-admin/.

See https://core.trac.wordpress.org/browser/tags/3.8/src/wp-admin/update-core.php#L40

I also did a test of a sub-folder install https://cloudup.com/cmWE6Ctfboi for 3.8 and 3.8.2 https://cloudup.com/cANFl09TTAG and got an upgrade https://cloudup.com/cDNHpSAm2s9

I don't think this is a bug in core. What may have caused this for you, not sure. But, thanks for helping out!

#3 @SergeyBiryukov
6 years ago

  • Component changed from General to Upgrade/Install
  • Milestone Awaiting Review deleted
  • Resolution changed from invalid to worksforme
Note: See TracTickets for help on using tickets.