I see the bad code right on the page... for instance on the insert page on line 28 it has:
$WA_redirectURL = "../index.php?page=cyiLocDetail?id_loc=[Insert_ID]";
where it should be:
$WA_redirectURL = "../index.php?page=cyiLocDetail&id_loc=[Insert_ID]";
I'd just go through and manually make the corrections to the redirect page values at this point.