PJ688 Posted November 2, 2011 Share Posted November 2, 2011 Hello all! Very frustrated PHP newbie here. I am trying to simply get my code to display errors. I have gone into the php.ini file, changed error_reporting to E_ALL, changed display_errors to On, changed display_startup_errors to On, and even added the line ini_set('display_errors', 'on'); to my code. I restarted the server after every change, and still I see no errors. My boss wants me to reach out to the community for answers rather than handing them to me himself. So here I am. Please advise! Thank you very much in advance. Quote Link to comment https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/ Share on other sites More sharing options...
PJ688 Posted November 2, 2011 Author Share Posted November 2, 2011 I guess it would help to know that I am working out of CentOS. The same code worked fine in Windows and gave me the errors. Quote Link to comment https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/#findComment-1284370 Share on other sites More sharing options...
Pikachu2000 Posted November 2, 2011 Share Posted November 2, 2011 If there's a syntax error in the php.ini file, ant directives after that point won't be read. What do the values of those directives show when you run phpinfo(); ? Quote Link to comment https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/#findComment-1284371 Share on other sites More sharing options...
PJ688 Posted November 2, 2011 Author Share Posted November 2, 2011 I ran PHPInfo. display_errors and display_startup_errors show as On. Error reporting shows as "30719", whatever that means. Quote Link to comment https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/#findComment-1284403 Share on other sites More sharing options...
PJ688 Posted November 3, 2011 Author Share Posted November 3, 2011 Bump. Quote Link to comment https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/#findComment-1284620 Share on other sites More sharing options...
PFMaBiSmAd Posted November 3, 2011 Share Posted November 3, 2011 30719 (in php5.3) is E_ALL. The two settings appear to be correct and should report and display all php detected errors. Perhaps there are no php detected errors in the code you are trying or they are hidden in the 'view source' of the page in your browser or you are using AJAX to request the page and unless your ajax code literally outputs the content it gets from the server, you won't see any error messages that php outputs on a page. What sort of problems are you having with some code? If you post the code that duplicates the symptom, along with a specific statement of the symptoms when you try it, someone can probably help determine what it is or is not doing. Quote Link to comment https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/#findComment-1284625 Share on other sites More sharing options...
floridaflatlander Posted November 3, 2011 Share Posted November 3, 2011 My boss wants me to reach out to the community for answers rather than handing them to me himself. So here I am. LOL That's the spirit ! Are there errors? Is there any styling that could hide the errors? Also like PF..... said have you looked at the source? Quote Link to comment https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/#findComment-1284651 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.