Skip to content

Deleting one site removes all pages from other sites (multisite) #410

@nordmanndev

Description

@nordmanndev

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

  1. Set up Vvveb CMS with two or more sites (multisite)
  2. Create at least one page on each site
  3. Navigate to Settings → Sites, select any site, and delete it
  4. Switch to another site and open Pages
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions