Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/250317-php-not-displaying-errors/
Share on other sites

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.

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.