Jump to content

Need help enabiling html_errors


eldan88
Go to solution Solved by eldan88,

Recommended Posts

Hey,

 

 I have set html_errors  to "On" my php.ini settings. But  when I create 3 custom error messages, they don't render as HTML. Just plain text.

 

Any suggestions on how i can solve this?

 

Below is my code and how it out puts on the browser.

 

Any help would be really appreciated!

   <?php trigger_error('Custom Notice', E_USER_NOTICE);
      trigger_error('Custom Warning', E_USER_WARNING);
      trigger_error('Custom error', E_USER_ERROR); 

?>

post-125484-0-50992500-1376007404_thumb.png

post-125484-0-61547800-1376007412_thumb.png

Edited by eldan88
Link to comment
Share on other sites

  • Solution

I believe that special formatting happens through the xdebug extension, but you can get links in the regular error messages with the docref_root setting.

hey requinix. Yes you are right. I have configured xdebug and restarted my ubunutu OS and now it is showing correctly. Thank you so much for your help!

Link to comment
Share on other sites

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.