Quirky DB Fixes
Quirky DB Fixes is an administrator component that finds and repairs database problems left behind by a Joomla 3 migration or a database restart: articles missing from the Article Manager, missing Smart Search menu items, and the Smart Search tables that MySQL loses when it restarts.
New to Quirky DB Fixes? This page is the reference manual. For an overview, with the download, see its page on cybersalt.com.
Release history. This page documents the current release (1.2.1). For what changed in each version, see the changelog.
Requirements. Joomla 4.2 or newer (it runs on Joomla 4.2+, 5 and 6) and a MySQL or MariaDB database. Only Super Users can use it.
Quirky DB Fixes is free and open source, available from cybersalt.com.
The fixes
| Fix | Type | When you need it | What it does |
|---|---|---|---|
| Restore Missing Workflow System | Migration | The Article Manager shows no articles after a Joomla 3 to 4/5 migration, although the articles are in the database. | Creates any of the four workflow tables (workflows, workflow_stages, workflow_transitions, workflow_associations) that are missing, then adds Joomla's default workflow, its stage and its seven transitions. |
| Fix Missing Workflow Associations | Migration | Some articles are missing from the Article Manager. | Links every article that has no workflow record to the default workflow's stage. |
| Fix Missing Smart Search Menu Items | Maintenance | The Smart Search submenu in the administrator is missing entries. | Puts back the Index, Content Maps, Filters and Searches menu items. |
| Fix Missing Smart Search Tokens Table | Maintenance | Saving an article fails with Table finder_tokens doesn't exist. | Recreates the finder_tokens table. It uses the MEMORY engine, so a MySQL restart can lose it. The fix uses the collation of your existing finder_terms table. |
| Fix Missing Smart Search Tokens Aggregate Table | Maintenance | The same error for finder_tokens_aggregate. |
Recreates the finder_tokens_aggregate MEMORY table the same way. |
⤢ Click to enlarge
Installing
- Download the ZIP from cybersalt.com.
- In the administrator, go to System → Install → Extensions and upload it. The same ZIP installs on Joomla 4.2 and later, 5 and 6.
- Open Components → CS Quirky DB Fixes.
From 1.2.1, new versions show up under System → Update → Extensions. Sites on 1.2.0 or older install 1.2.1 by hand once.
Running a fix
- Back up the whole database (Akeeba Backup, your host's tools, or phpMyAdmin). The fixes are written to be safe, but they change the database directly.
- Click a fix to open it. You see the Problem, the Diagnostic (whether your site has it) and the exact SQL Fix that will run.
- Click Download Backup to save an SQL file of the tables this fix touches.
- Tick the confirmation box and click Run Fix. The result shows at the top of the page, and the diagnostic is run again.
When the diagnostic finds nothing, Run Fix stays greyed out with No action required.
⤢ Click to enlarge
When the diagnostic does find a problem, the fix is marked Action Needed and Run Fix turns on once the confirmation box is ticked:
⤢ Click to enlarge
finder_tokens table found, confirmation ticked, ready to run.
⤢ Click to enlarge
Good to know
- Stuck mid-migration? Install it on the Joomla 4 site, repair the workflow and Smart Search tables, then upgrade to Joomla 5 with a clean database.
- The two Smart Search table fixes are safe to run again after any MySQL restart.
- Each fix credits where it came from. The workflow associations fix is based on Brian Teeman's answer on the Joomla forum.
- The component has no settings; its Options button only holds permissions.
Permissions
Only Super Users can open the component, run a fix or download a backup. Other administrators don't see it in the Components menu, and a direct link gives them a "not authorised" error. On install, and on update for sites that never set permissions for the component, Public is denied Configure and Access Administration Interface on the component; every group inherits that, so only Super Users get through. Permissions you have set yourself are left alone.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| The component isn't in the Components menu | You aren't logged in as a Super User. That's by design. |
| Articles are still missing after Fix 1 | Run Fix Missing Workflow Associations too. Fix 1 restores the workflow itself; the associations link each article to it. |
| Table finder_tokens doesn't exist comes back | MySQL was restarted. Run the tokens fixes again. It's a property of the MEMORY engine Joomla uses for these tables. |
| The installer refuses to install | The site is older than Joomla 4.2. Update Joomla 4 to 4.2 or later first. |
Getting help
Use the support form on cybersalt.com, or open an issue on GitHub.
The fixes screen — click anywhere to closeClose ×
One fix opened — click anywhere to closeClose ×
A problem found, ready to run — click anywhere to closeClose ×
After Run Fix — click anywhere to closeClose ×