I had a look over the code used to delete "respond to events" events..
/var/www/pluto-admin/operations/events/respondToEvents.php
I had 3 "respond to events" I wanted to get rid of with the "dID" of 8, 26 and 27.
Manually running the MySQL Query for any of the 3 id's resulted in an empty result set. So I got to looking at the query more closely.
This
doesn't work:
SELECT EventHandler.*, Criteria.FK_CriteriaParmNesting
FROM EventHandler
INNER JOIN Criteria ON FK_Criteria=PK_Criteria
WHERE PK_EventHandler=? AND TimedEvent IS NULL
However, this does:
SELECT EventHandler.*, Criteria.FK_CriteriaParmNesting
FROM EventHandler, Criteria
WHERE PK_EventHandler=? AND TimedEvent IS NULL
The reason? FK_Criteria equals NULL and never matches the PK_Criteria field which must a number int(11).
This also means the third mysql command fails:
$deleteCriteria='DELETE FROM Criteria WHERE PK_Criteria=?';
dbADO->Execute($deleteCriteria,$rowEH['FK_Criteria']);
once again because PK_Criteria gets set to NULL and mysql errors out.
I made a backup copy of this script, adjusted the initial Mysql query, rem'd out the two lines above, and went back to the web admin and deleted the three 'respond to events' entries.