error.inc produces invalid html [message #3371] |
Thu, 24 January 2013 08:12 |
jjtoranzo2004
Messages: 261 Registered: September 2012
|
Senior Member |
|
|
Tony,
The error handler generates invalid html pages.
1)
They are missing the following tags:
<!DOCTYPE html>
<html>
<head>
<title>This is the title </title>
</head>
<body>
<!-- here goes the content -->
</body>
</html>
2)
Element <h2> cannot be a child of element <font>, nor of element <b>.
Element <p> cannot be a child of element <font>, nor of element <b>.
3)
The REQUEST_URI contains a hyperlink with an unencoded ampersand. It should be changed to &
--------------------------
Example of the html code generated by the error handler:
<h2>This application has encountered an unrecoverable error</h2>
<p>The following has been reported to the administrator:</p>
<b><font color='red'>
<h2>2006-09-25 05:06:17</h2>
<p>Fatal Error: mysqli_connect(): Cannot connect to database 'audit'..</p>
<p>Error in line 232 of file 'C:\xampp\htdocs\radicore\includes\dml.mysqli.class.inc'.</p >
<p>PHP_SELF: /radicore/dict/database(list1).php</p>
<p>CURRENT DIRECTORY: C:\xampp\htdocs\radicore\dict</p>
<p>SERVER_ADDR: 127.0.0.1</p>
<p>SERVER_NAME: localhost</p>
<p>HTTP_HOST: localhost</p>
<p>REMOTE_ADDR: 127.0.0.1</p>
<p>REQUEST_URI: /radicore/dict/database(list1).php?selection=dict_table(list 1)&session_name=menu0 </p>
</font></b>
--------------------------
Thanks.
|
|
|