121man Posted September 28, 2010 Share Posted September 28, 2010 I don't know why but my right hand side modules column disappeared on this custom page i created to upload files the code is :-URL = http://www.4colourprints.com/printshop/artworksuccess.php <?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/init.php'); if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1) $rewrited_url = __PS_BASE_URI__; include(dirname(__FILE__).'/header.php'); $smarty->display(_PS_THEME_DIR_.'uploadstatus.tpl'); // Receiving variables @$pfw_ip= $_SERVER['REMOTE_ADDR']; @$front_Name = $_FILES['front']['name']; @$front_Size = $_FILES['front']['size']; @$front_Temp = $_FILES['front']['tmp_name']; @$front_Mime_Type = $_FILES['front']['type']; @$back2_Name = $_FILES['back2']['name']; @$back2_Size = $_FILES['back2']['size']; @$back2_Temp = $_FILES['back2']['tmp_name']; @$back2_Mime_Type = $_FILES['back2']['type']; @$order = $order->id_cart = intval($cart->id); function RecursiveMkdir($path) { if (!file_exists($path)) { RecursiveMkdir(dirname($path)); mkdir($path, 0777); } } // Validation if( $front_Size == 0) { die(" Please enter a valid front"); } if( $front_Size >40960000000000) { //delete file unlink($front_Temp); die(" Please enter a valid front"); } if( $front_Mime_Type != "application/pdf" AND $front_Mime_Type != "image/pjpeg" AND $front_Mime_Type != "image/jpeg" AND $front_Mime_Type != "image/png" AND $front_Mime_Type != "image/prs.btif" AND $front_Mime_Type != "image/tiff" ) { unlink($front_Temp); die(" Please select a front artwork file to upload"); } $uploadFile = "../artwork/"."4C".$order."-".$front_Name ; if (!is_dir(dirname($uploadFile))) { @RecursiveMkdir(dirname($uploadFile)); } else { @chmod(dirname($uploadFile), 0777); } @move_uploaded_file( $front_Temp , $uploadFile); $front_URL = "http://www.4colourprints.com/artwork/"."4C".$order."-".$front_Name ; if( $back2_Size == 0) { die(" Please select a back artwork file to upload"); } if( $back2_Size >40960000000000) { //delete file unlink($back2_Temp); die(" Please select a valid file format for the front artwork file"); } if( $back2_Mime_Type != "application/pdf" AND $back2_Mime_Type != "image/pjpeg" AND $back2_Mime_Type != "image/jpeg" AND $back2_Mime_Type != "image/png" AND $back2_Mime_Type != "image/prs.btif" AND $back2_Mime_Type != "image/prs.pti" AND $back2_Mime_Type != "image/tiff" ) { unlink($back2_Temp); die(" Please select a valid file format for the back artwork file"); } $uploadFile = "../artwork/"."4C".$order."-".$back2_Name ; if (!is_dir(dirname($uploadFile))) { @RecursiveMkdir(dirname($uploadFile)); } else { @chmod(dirname($uploadFile), 0777); } @move_uploaded_file( $back2_Temp , $uploadFile); $back2_URL = "http://www.4colourprints.com/artwork/"."4C".$order."-".$back2_Name ; echo(" Submitted"); include(dirname(__FILE__).'/footer.php'); ?> Anyone with any insight.Thanks Link to comment Share on other sites More sharing options...
OnTargetPro Posted September 28, 2010 Share Posted September 28, 2010 Is your custom page using dimensions wider than the template allows? Link to comment Share on other sites More sharing options...
rocky Posted September 29, 2010 Share Posted September 29, 2010 The footer is missing too, so it looks like it might be a PHP error. Try editing config/config.inc.php and temporarily changing 'display_errors' from 'off' to 'on'. You should then get an error message on that page. Post the error message here. Link to comment Share on other sites More sharing options...
121man Posted September 29, 2010 Author Share Posted September 29, 2010 Turned on display_errors but it does not show any error messages, it's still on if you want to take a look and see if anything happens.Thanks Link to comment Share on other sites More sharing options...
rocky Posted September 29, 2010 Share Posted September 29, 2010 It's weird. Your webpage is being cut off as if there is a PHP error, but no error message is being displayed. I can't help without having an error message. All I can say is that there is an error in artworksuccess.php somewhere. Link to comment Share on other sites More sharing options...
121man Posted September 29, 2010 Author Share Posted September 29, 2010 That's what i figured, but can't seem to find anything anywhere, although if i remove all the main PHP code and leave the header, footer and the include section intact everything works fine, so it's definatly code somewhere.Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now