sqlite-database-integration
sqlite-database-integration copied to clipboard
Status confusion cycling between Deactivated and Activated
The sqlite-database-integration plugin, standalone, doesn't show activation and deactivation status correctly.
To reproduce:
- Activate the plugin.
- Look at the Plugins -> drop-ins page (or just the drop-ins count) to ensure wp-content/dp.php is in place.
- Look at whether the plugin shows as Activated. Sometimes it wrongly shows as Deactivated.
- Activate it again.
- Look at whether the plugin shows as Activated. It should show that way.
- Deactivate the plugin.
- Look at the Plugins -> drop-ins page (or just the drop-ins count) to ensure wp-content/dp.php is gone.
- Look at whether the plugin shows as Deactivated. Sometimes it wrongly shows as Activated.
- Deactivate it again.
- Look at whether the plugin shows as Deactivated. It should show that way.
The root cause of this: most likely the fact that the active_plugins
option gets updated in the database that's in play when starting the activation or deactivation workflow, but not in the database that's in play after the workflow.
(This isn't very important in production, but it's confusing when testing things.)