Jump to content

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


adrianTNT

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.