-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrading your site to version 4.0 from 3.2
- Make sure you have a backup of your site database and files. If possible, test this upgrade out on a non-production/dev site first.
- Make sure you're on version 3.2 of the ILFW. If you're not on the latest release, it's recommended you update your site one minor version at a time (e.g. 3.0 -> 3.1 -> 3.2) using the upgrade instructions.
- Check that you're running PHP 8 under the Drupal status page at
/admin/reports/status
. The process below was tested using PHP 8.2
-
Log in to your site using the local
admin
account. If you don't know your admin account's password, you can usedrush upwd admin <password>
to change it. You need to be logged into the local admin account to be able to run the./update.php
script later. -
(If your site uses Shibboleth login) There's currently a bug in the
simplesaml/saml2
package, and it needs to be set to version4.6.10
for Shib authentication to work. If you have Shibboleth authentication enabled on your site, run the command below to set your version.composer require simplesamlphp/saml2:4.6.10
-
Check if the
devel
orkint
modules are installed on your site. If they are, uninstall them. -
Uninstall the modules RDF, Quickedit, and TB Megamenu:
./vendor/bin/drush pmu rdf quickedit tb_megamenu
-
(If you have Shibboleth authentication enabled on your site) Copy the your configuration settings for the SimpleSAMLPHP_Auth module at
/admin/config/people/simplesamlphp_auth
somewhere safe. Next, uninstall thesimplesamlphp_auth
andexternalauth
modules:./vendor/bin/drush pmu simplesamlphp_auth externalauth
-
Uninstall the bootstrap4 theme. If you get an "unknown theme" error, that's OK.
./vendor/bin/drush thun bootstrap4
-
Update the
devel
module to version 5.0:composer require --dev drupal/devel:^5.0
-
Remove the
kint
modulecomposer remove --dev kint-php/kint
-
(If your site uses Shibboleth login) Remove the old SimpleSAMLPHP modules:
composer remove drupal/simplesamlphp_auth composer config --unset repositories.simplesamlphp
-
Change the default directory permissions to writeable.
chmod 755 ~/illinois_framework/docroot/sites/default
-
Upgrade your site to version 4.0 of the framework by running the below composer command in the ~/illinois_framework directory:
COMPOSER_MEMORY_LIMIT=-1 composer require web-illinois/illinois_framework_profile:^4.0 -o -W
-
(If your site uses Shibboleth login) Re-install the
simplesamlphp_auth
modulecomposer require 'drupal/simplesamlphp_auth:^4.0' -W composer config repositories.simplesamlphp '{"type": "path", "url": "/var/simplesamlphp-2.1.0"}' composer update -W
-
Run Drupal database updates for your site site by going to
<yourSiteURL>/update.php
in your browser. Continue through the prompts and you should see roughly 56 pending updates to apply. NOTE: Trying to run Drupal's database update by runningdrush updb
will likely throw an error about certain themes not being installed. -
Run the distribution update config sync command:
./vendor/bin/drush config-distro-update -y
-
If needed, enable the SimpleSAMLPHP module and configure it using the same settings you noted from before
Congratulations, you should now be upgraded to 4.0!