Description
In a multisite Vvveb installation, deleting a single site causes all pages belonging to all other sites to disappear from the admin panel. Pages are either cascade-deleted or their site_id association is broken, making them unreachable.
Steps to reproduce
- Set up Vvveb CMS with two or more sites (multisite)
- Create at least one page on each site
- Navigate to Settings → Sites, select any site, and delete it
- Switch to another site and open Pages
- All previously created pages are gone
Observed behavior
After deleting site A, all pages associated with site B (and any further sites) are no longer visible or accessible in the admin panel. It is unclear whether they are hard-deleted from the database or merely orphaned.
Expected behavior
Deleting a site should only remove content belonging to that specific site. Pages, posts, and media of all other sites must remain fully intact.
A confirmation dialog warning about permanent content deletion for the targeted site would also be recommended.
Impact
⚠️ High — silent data loss across all sites when any single site is deleted.
Content may be unrecoverable without a prior database backup.
Affects any multisite Vvveb installation.
Likely root cause
An overly broad ON DELETE CASCADE on the site_id foreign key in the pages table, or a site delete handler that clears all pages regardless of site_id.
To investigate: check whether pages are hard-deleted from the DB or orphaned (null site_id) after the delete — this affects urgency of the fix.
Environment
|
|
| Vvveb version |
Latest (2026-03-24) |
| Setup |
Multisite (2+ sites) |
| Likely area |
Site delete controller / DB cascade rules |
Description
In a multisite Vvveb installation, deleting a single site causes all pages belonging to all other sites to disappear from the admin panel. Pages are either cascade-deleted or their
site_idassociation is broken, making them unreachable.Steps to reproduce
Observed behavior
After deleting site A, all pages associated with site B (and any further sites) are no longer visible or accessible in the admin panel. It is unclear whether they are hard-deleted from the database or merely orphaned.
Expected behavior
Deleting a site should only remove content belonging to that specific site. Pages, posts, and media of all other sites must remain fully intact.
A confirmation dialog warning about permanent content deletion for the targeted site would also be recommended.
Impact
Likely root cause
An overly broad
ON DELETE CASCADEon thesite_idforeign key in the pages table, or a site delete handler that clears all pages regardless ofsite_id.To investigate: check whether pages are hard-deleted from the DB or orphaned (null
site_id) after the delete — this affects urgency of the fix.Environment