Page 1 of 1

[Project] Browser Error

Posted: Sun Jan 07, 2007 7:28 pm
by FiOh
Hi, I am not sure if this is the right section to post in this section.
I have a question here. I am a student and am supposed to debug the webpage written in php by previous student. This webpage written in php is to be able to connect to and configure networking devices. But i do not have any php knowledge at all.

When the webpage loads, it seems to be fine, but when i try logging in, a pop up error from the status bar appears. This is the error:

Code: Select all

Problems with this Web page might prevent it from being displayed properly 

or functioning property. In the future, you can display this message by 

double-clicking the warning icon displayed in the status bar.


Line: 10
Char: 2
Error: 'document.loginForm.ip1.value' is null or not an object
Code: 0
URL:http://localhost/terminalserver_D/cisco2612/Login.php
May i know what does this error means? Is it something to do with the php codings? But when i go to the URL to look at the Line 10, it is </head>.
I am rather confused now...

Posted: Sun Jan 07, 2007 7:32 pm
by Ollie Saunders
That is a JavaScript error. PHP is a server side language used to generated pages that feature HTML/CSS/JS. In this case a PHP file is outputting a load of stuff including some JavaScript which so happens to have a bug in it. Look for the mention of "document.loginForm.ip1.value", that's where you should start.

Posted: Sun Jan 07, 2007 7:35 pm
by Kieran Huggins
It means line 10 of the script being executed (think javascript) - look there. Also, try it in Firefox.

Posted: Mon Jan 08, 2007 11:06 pm
by FiOh
I am confused... both the IE 7 and Firefox returns me different error.

IE 7 gives the following errorS:

Pop up the followings first then

Code: Select all

Problems with this Web page might prevent it from being displayed properly 

or functioning property. In the future, you can display this message by 

double-clicking the warning icon displayed in the status bar. 


Line: 10 
Char: 2 
Error: 'document.loginForm.ip1.value' is null or not an object 
Code: 0 
URL:http://localhost/terminalserver_D/cisco2612/Login.php
Load a blank page with this:

Code: Select all

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache Group\Apache2\htdocs\terminalserver_D\cisco2612\Login_Process.php on line 108
_____________________________________________________________-

Whereas FireFox gives me this:

Code: Select all

Warning: fsockopen() [function.fsockopen]: unable to connect to 172.16.221.210:23 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\Program Files\Apache Group\Apache2\htdocs\terminalserver_D\cisco2612\Login_Process.php on line 20

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache Group\Apache2\htdocs\terminalserver_D\cisco2612\Login_Process.php on line 20
Anyone know what was wrong? Is it something wrong with the php coding?

Sorry for the trouble.
^^;;


FiOh

Posted: Tue Jan 09, 2007 2:37 am
by Ollie Saunders
OK, those errors are generated with PHP. The differences between browsers are coincidental as sufficient reruns, if you do them, will demonstrate.

The PHP errors are describing your problem: the script is attempting to use an external server which isn't responding in time, or at all.