Jump to content

Blank Page - Even With Error Reporting on


bravo14

Recommended Posts

Hi Guys

 

Completely Stuck by this one.

 

Using the code below, when I go to the page I am getting a completely blank page (even though I have Error Reporting on.

 

Can anybody tell me where I have gone wrong?

 

<?php
ini_set ('display_errors', 1);
error_reporting(E_ALL);
?>
<?php
session_start();
include_once('includes/connect_inc.php');
include_once('functions/reg_functions.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/trade-bidz.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Trade-Bidz Coming Soon...</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="style/trade-bidz.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="JavaScript">
<!-- Copyright 2006,2007 Bontrager Connection, LLC
// http://bontragerconnection.com/ and http://www.willmaster.com/
// Version: July 28, 2007
var cX = 0; var cY = 0; var rX = 0; var rY = 0;
function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }
function AssignPosition(d) {
if(self.pageYOffset) {
rX = self.pageXOffset;
rY = self.pageYOffset;
}
else if(document.documentElement && document.documentElement.scrollTop) {
rX = document.documentElement.scrollLeft;
rY = document.documentElement.scrollTop;
}
else if(document.body) {
rX = document.body.scrollLeft;
rY = document.body.scrollTop;
}
if(document.all) {
cX += rX; 
cY += rY;
}
d.style.left = (cX+10) + "px";
d.style.top = (cY+10) + "px";
}
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
dd.style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
if(dd.style.display == "none") { dd.style.display = "block"; }
else { dd.style.display = "none"; }
}
//-->
</script>
</head>

<body>
<div id="header">
<div id="login_form">
<?php
//if(!isset($_SESSION['logname']))
//{
//include_once('includes/mini_login_inc.php');
//}
//else
//{
//include_once('includes/logout_inc.php');
//}
?>
</div>
<img src="images/logo.jpg" width="300" /></div>
<div id="nav_head"><ul><li>Buying</li><li>Selling</li><li>Contact Us</li><li>Terms</li><li>My Trade-Bidz</li></ul></div>
<div id="content"><!-- InstanceBeginEditable name="content" -->
<form name="add_lot" action="add_vehicle.php" method="post">
<table>
<tr><td>Reg Number</td><td><input name="veh_reg" width="10" maxlength="10"/><img src="images/search_glass.jpeg" width="50" onclick="getVehData()" />
<?php 
if 
(isset($message))
{
echo ('<br />'.$message.);
}
?>
</td></tr>
</table>
</form>
</body>
<!-- InstanceEnd --></html>

Link to comment
Share on other sites

Your code contains a fatal php parse error. Parse errors prevent your code from ever executing and the two lines of code that are setting error_reporting/display_errors are never executed to show anything.

 

You must set the error_reporting/display_errors settings in your master php.ini to show all php detected errors. Stop and start your web server to get any changes made to the master php.ini to take effect and use a phpinfo() statement to confirm that the settings were actually changed in case the php.ini that you are changing is not the one that php is using.

 

Those times when you have seen it recommended to put those two settings in your code, are when your code appears to be running but is not doing what you expect.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.