to start troubleshooting the issue lets use the insert page. change the following line:
$WA_redirectURL = "adminproducts_detail.php";
to:
$WA_redirectURL = "";
so that it will not redirect when a new record is inserted.
then at line 1 add the following code:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
?>
next, go to the bindings panel, and add the debug info binding from the WA Uploaded Files Global Status group to the page.
post back the results after trying another test.