Deleting a page fails

Permalink
See attachment.
When deleting a certain page "Liefde op het eerste gezicht" (in English "Love at first sight"; it's a marketing advertisement page)

It returns the error shown in the attachment.
Any idea's I know what causes it, but how to fix it?

Also, there is no general forum for support issues so I posted it here

1 Attachment

Maynar
 
Maynar replied on at Permalink Reply
Maynar
I deleted it manually from the collectionVersions table, but can't there be a safety catch from when the
$b = Block::getByID($row['bID'], $c, $row['arHandle']);

returns no actual bID it deletes the record from the collectionVersions table, and leaves it at that?
frz replied on at Permalink Reply
frz
what causes this? I can delete plenty of pages from the dashboard normally.. can you post this to the bugs area if its consistently reproduceable?
Maynar replied on at Permalink Reply
Maynar
Yes, well I can delete also a lot of pages. I deleted the page in question manually from the database now, because it needed to be gone right away.

The creator of the page (not me) had made a lot of versions of the page, deleting blocks adding blocks (form, content and image). And one version had a reference to a missing bID in the blocks table.

Somehow this still existed. But a checkup if the block exists can prevent this is other cases. Just in case someone else ever runs into this. I can't reproduce it, but know the solution to it.
frz replied on at Permalink Reply
frz
ill post this to bugs.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.