Problem upgrading WordPress with custom directory structure
-
On my local development machine I have the following folder structure:
main_home |-wordpress (clone of github/wordpress/wordpress) | |-wp-admin | |-wp-includes | |-wp_content (a custom directory with all my plugins and themes) |-themes |-plugins
I have the following lines in wp-config
define( 'WP_CONTENT_DIR', dirname(ABSPATH) . '/wp-content' ); define( 'WP_CONTENT_URL', WP_HOME . '/wp-content' );
The
wordpress
folder is a clone ofhttps://github.com/WordPress/WordPress/
which I use to switch WordPress versions for testing. ie. checkout v5.3 or 5.2.4 or 5.0.7 etc.Without the custom WP_CONTENT_DIR defines I get the expected
Database Update Required
message on/wp-admin/upgrade.php
page whenever I checkout different WordPress versions.However with my custom WP_CONTENT_DIR config I get the following message:
The site is experiencing technical difficulties.
on the redirect to/wp-admin/upgrade.php
page. With no recourse other than commenting out the defines, updating the database, and then reinstalling my custom content dir.I don’t know if this is a support issue. Or if it’s a bug and I should open a ticket for this.
- The topic ‘Problem upgrading WordPress with custom directory structure’ is closed to new replies.