when you temporary detached the template form the page, you did not put the tempalte instance code back in the right place.
<!-- InstanceBegin template="/Templates/preferredvendorpage.dwt" codeOutsideHTMLIsLocked="false" -->
you put it back at line 1 on the registration pafge and line 5 on the login page.
on the registration page, you also removed the doctype tag.
find the html tag:
<html>
the doctype should come just before the <html> tag and template instance code just after:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/preferredvendorpage.dwt" codeOutsideHTMLIsLocked="false" -->
having it before the php code in your pages is causing the error.
after fixing that in the registration and login pages, we can troubleshoot the issue with the file upload.
add the following code at line 1 of the registration page:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
change this line;
$WA_redirectURL = "pvregistration_LogIn.php";
to:
$WA_redirectURL = "";
then add this code after the body tag:
<?php
if($_SERVER['REQUEST_METHOD'] == "POST") {
echo("SQL: ".$WA_Sql."<br />");
echo WA_DFP_AllUploadsDebug();
}
?>
and post back the result.