tags:

views:

43

answers:

1

I was a Windows user and used Wamp. Every time a PHP code failed, the browser would display something like this: error in line number xx.

I followed the installation of this tutorial and everything worked.

Now when code fail PHP just display a blank page.

Any sugestions?

(I'm using Ubuntu 10.04).

+1  A: 

Find php.ini under /etc/php5/apache2/ and set the value of error_reporting to E_ALL. Like:

error_reporting = E_ALL

Or alternatively check error.log if your virtual host is providing one.

Hamid Nazari
@Hamid Nazari I pasted that code into the php.ini still seeing a blank page :(
janoChen
@Hamid Nazari the errors are being save in the error.log file but they are not being displayed in the browser.
janoChen
@janoChen Don't forget to restart your web server, `sudo /etc/init.d/apache2 reload`
Hamid Nazari
@Hamid Nazari I did.
janoChen
@janoChen Any chance you have a .htaccess or call to ini_set() that might be setting the error_reporting variable to something less verbose?
speshak