Temporarily disable all modules for troubleshooting
You can collect the machine names of all the enabled modules with the drush pm-list --type=Module --status=enabled --pipe &gt; enabled.txt command.

And then iterate through the list do disable:

drush -y dis $(&lt;enabled.txt)


or enable

drush -y en $(&lt;enabled.txt)


them.