WordPress / WordPress/sqlite-database-integration
Status confusion cycling between Deactivated and Activated
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 363
- Forks
- 67
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 7
Description
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.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the plugin activation and deactivation workflow, focusing on where the active_plugins option is read and updated when the active database changes. Reproduce the sequence using the Plugins → drop-ins page and check wp-content/dp.php and the drop-in count after each transition. Done means repeated activation and deactivation consistently show the correct status.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, sqlite, wordpress
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100