Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » error.inc produces invalid html
error.inc produces invalid html [message #3371] Thu, 24 January 2013 08:12 Go to next message
jjtoranzo2004 is currently offline  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 &amp;


--------------------------
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.
Re: error.inc produces invalid html [message #3372 is a reply to message #3371] Thu, 24 January 2013 08:25 Go to previous messageGo to next message
jjtoranzo2004 is currently offline  jjtoranzo2004
Messages: 261
Registered: September 2012
Senior Member
Example of valid XHTML


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Error</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
</head>

<body>


<h2>This application has encountered an unrecoverable error</h2>
<p>The following has been reported to the administrator:</p>


<h2 style="color:red;font-weight:bold;">2013-01-23 01:06:17</h2>
<p style="color:red;font-weight:bold;">Fatal Error: mysqli_connect(): Cannot connect to database 'audit'..</p>
<p>Error in line 232 of file '/directory\radicore\includes\dml.mysqli.class.inc'.</p>
<p>PHP_SELF: /radicore/dict/database(list1).php</p>
<p>CURRENT DIRECTORY: /directory\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)&amp;session_name=menu0</p>


</body>
</html>
Re: error.inc produces invalid html [message #3373 is a reply to message #3372] Thu, 24 January 2013 09:42 Go to previous message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
While I appreciate your efforts in pointing out validation errors with the HTML which is generated by Radicore, it is not absolutely necessary for a web page to be completely valid before it can be displayed. This error page displays adequately without being valid, and should only ever be displayed on a development server, never a live server.

Previous Topic: sample v3.0.0 search error
Next Topic: sample v3.0.0 XHTML markup errors
Goto Forum:
  


Current Time: Sat Nov 23 14:06:44 EST 2024

Total time taken to generate the page: 0.01070 seconds