Your $rsDeleteStory and $rsDeleteImage recordsets probably aren't returning results, and that causes the hidden form elements you are using for the delete to not have a result. Have you viewed source on your page to see if the hidden form elements you are using to record those values have a result? You could avoid that error by updating the trigger to only try to delete if there is a value:
So instead of:
<?php
if (isset($_POST["Delete"]) || isset($_POST["Delete_x"])) {
$DeleteQuery = new WA_MySQLi_Query($bucketlistDB);
$DeleteQuery->Action = "delete";
$DeleteQuery->Table = "bucStories";
$DeleteQuery->addFilter("sto_id", "=", "i", "".((isset($_POST["WADADeleteStoryID"]))?$_POST["WADADeleteStoryID"]:"") ."");
$DeleteQuery->execute();
$DeleteGoTo = "";
if (function_exists("rel2abs")) $DeleteGoTo = $DeleteGoTo?rel2abs($DeleteGoTo,dirname(__FILE__)):"";
$DeleteQuery->redirect($DeleteGoTo);
}
?>
you can use:
<?php
if (isset($_POST["Delete"]) && !empty($_POST["WADADeleteStoryID"])) {
$DeleteQuery = new WA_MySQLi_Query($bucketlistDB);
$DeleteQuery->Action = "delete";
$DeleteQuery->Table = "bucStories";
$DeleteQuery->addFilter("sto_id", "=", "i", "".((isset($_POST["WADADeleteStoryID"]))?$_POST["WADADeleteStoryID"]:"") ."");
$DeleteQuery->execute();
$DeleteGoTo = "";
if (function_exists("rel2abs")) $DeleteGoTo = $DeleteGoTo?rel2abs($DeleteGoTo,dirname(__FILE__)):"";
$DeleteQuery->redirect($DeleteGoTo);
}
?>
Then if there is a result it will try to delete and it will skip those if there is nothing to delete.