Page 1 of 1

Problem with errors

Posted: Sat Apr 09, 2005 6:58 pm
by Deemo
For some reason, whenever my PHP code hits an error, my server refuses to send back anything! i check the php.ini file and error_reporting is set to E_ALL, so im kind of at a loss as to why this doesnt work. The way i test this is leaving out a semi color and it stops returning stuff. This is a standard PHP installation on a brand new Fedora Core 3 installation. the version is 4.3.9 (ill probably update to 11 soon)

any ideas as to what could be causing this?

Posted: Sat Apr 09, 2005 6:58 pm
by John Cartwright

Posted: Sat Apr 09, 2005 7:14 pm
by Deemo
thanks alot, that helped a bit. i set display_errors and display_startup_errors both to On, however i am still having a problem with errors. certain things work now. for example, if i type in

Code: Select all

<?php
blah
?>
it says "Notice: Use of undefined constant blah - assumed 'blah' in /var/www/html/index.php on line 9" but if i type in something like

Code: Select all

<?php
$test = "blah"   //Missing semicolon
?>
it still gives me nothing

heres my phpinfo if it helps: http://69.138.202.36/

Posted: Sat Apr 09, 2005 7:28 pm
by Chris Corbyn
*scratches head*

Can you post a link to phpinfo() on your server (by PM if you don't want to post publicly)?

Also post a link to a file containing only:

Code: Select all

<?php

$var = 'String';
$var .= 'Foo' //Missing semi-colon

?>

Posted: Sat Apr 09, 2005 7:30 pm
by Deemo

Posted: Sat Apr 09, 2005 7:40 pm
by Chris Corbyn
Thats really weird...

Just out of morbid curiosity, what happens if you turn off log_errors?

Also (I know it's stupid but I'm stumped), what happens if you rewrite the line

error_reporting = E_ALL;

Underneath the one that's already there?

Posted: Sat Apr 09, 2005 7:44 pm
by Deemo
did the changes, and no luck :(

Posted: Sat Apr 09, 2005 7:48 pm
by Chris Corbyn
Did this just stop working or has it never worked?

Perhaps it's time to just do your upgrade :idea:

Posted: Sat Apr 09, 2005 7:49 pm
by Deemo
i just recently reformatted so its a fresh install of PHP

Posted: Sat Apr 09, 2005 8:02 pm
by Chris Corbyn
Take a backup of your existing php.ini and try this (Just temporarily for 5 mins for troubleshooting reasons). I hope I've removed all the extensions you won't have on *nix and and windows specific paths :?

Posted: Sat Apr 09, 2005 8:05 pm
by Deemo
weird, it still doesnt work

Posted: Sat Apr 09, 2005 8:07 pm
by Chris Corbyn
Something must have gone wrong with your install... thats not normal.

Just reinstall it. Shouldn't be much of a hassle if you've just set everything up anyways ;-)

Posted: Thu Apr 14, 2005 5:02 pm
by feyd
a "missing semicolon" for the last line of a block is valid php last I checked.. so it's working correctly.