Debugging Drupal 8 module upgrades
Last updated on
11 March 2021
This documentation needs work. See "Help improve this page" in the sidebar.
This page is still under development.
- Read the error message! :)
debug($var);- If WSOD, tail your PHP error log.
tail -f /path/to/php_error.log - Comment out
hook_install()/hook_uninstall(). - Remove stale compiled PHP files. (new!)
sudo rm -rf sites/default/files/php - Clear the cache.
drush cr(Requires the "8.x" drush version).- Uninstall/reinstall your module.
- Reinstall your site. (There are no 8.x->8.x upgrades yet.)
Help improve this page
Page status: Needs work
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion