Problem with deactivate and activate a snippet
-
Sometimes deactivating of a snippet fails. That might cause that the it is not possible to active/deactivate a problematic snippet.
That can be easily tested.- Create a snippet, which has your own function definition.
- Make duplicate of it.
- Activate the duplicate
- Try to deactive the original snippet or duplicate
Trying to deactivate the original snippet or a duplicate fails always. I have always needed cPanel > phpMyAdmin in order to deactive a snippet by editing single database record.
If user don’t have direct database access, this is a serious problem. With some way it should be possible always to deactivate plugin without needing to use direct database access.
is very risky way to change between activate/deactivate because deactivating can easily fails, which cause much problems. This kind of button looks nice but two buttons would be much smaller risk, because two buttons works much more reliable.
- The topic ‘Problem with deactivate and activate a snippet’ is closed to new replies.