-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] A safeMode
config setting to disable all plugins & modules
#5106
Comments
Use-Case 3
Real-world example: |
The detail I miss most from having plugins stored in the database is that I could easily go into the db and toggle specific plugins on and off. It was useful for troubleshooting during plugin development and in various migration and upgrade scenarios. Currently, I believe you can only do this if you have Project Config enabled and then you have to search through the file for each plugins As you consider the "safeMode" feature it would be nice to also consider how this could be done on an individual-plugin basis, with or without Project Config enabled. |
+1 to that... I really miss being able to toggle individual plugins on/off in the database. |
If you just need to disable specific plugins, you can do that with the disabledPlugins config setting: 'disabledPlugins' => ['cp-css'], |
Just as there's a way to boot into Safe Mode on Windows and on the Mac... I think it could potentially be useful here as well FWIW. |
Watching someone flail on Discord right now... Would really love to be able to tell them to "put it in safe mode". This person has a bizarre error which is almost certainly unique to their environment. It would help significantly if they could quickly rule out plugins & modules as a source of interference. |
We don’t have a non-hacky way of disabling modules, as those are part of the core application config, but I’ve just made it possible to set the |
That's pretty sweet @brandonkelly |
Ah, solid! Totally fair that modules were excluded from this solution. Bulk disabling modules is easy enough, and would quickly lead to more complications anyway. Thanks @brandonkelly! 🍺 |
Excellent!! |
Craft 3.5.13 is out now with that change ✨ |
Related/interesting: https://twitter.com/wesbos/status/1316902807937687555?s=20 |
Originally suggested by @khalwat on Discord...
It would be incredibly useful to have a config setting that neutralizes all plugins and modules. For the sake of this feature request, let's call it
safeMode
.Use-Case 1
safeMode
allows you to instantly diagnose whether or not the bug is Craft's fault.Use-Case 2
safeMode
config setting would allow you to get back in there and fix your mistake.There are probably more use-cases as well, but these are the first ones that come to mind.
The text was updated successfully, but these errors were encountered: