Jump to content

[SOLVED] How to make php print errors on screen again ?


Recommended Posts

Hello, I moved to a new server and some of my scripts dont work here.

I cannot see what is the problem with the scripts because I see no errors on page even if I try to include an unexistent file for example.

I think there is something like this that can be placed in .htaccess?

 

php_value show_errors=true ?

 

Thank you.

- Adrian.

no need to change log_errors if you want errors to display to the screen. But yeah you will need to set the correct error_reporting level in order to for PHP to report you the correct type of errors, E_ALL is best for development/debugging purposes.

I tried this:

 

<?php 
// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
?>

<?php $comment_id = "comments_script_page";?>
<?php include 'scripts/comments/comments.php';?>

 

It shows a complete blank page, no html code in it. Any ideas?

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.