Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: jvels on November 14, 2006, 10:20:48 AM

Title: php does not show error
Post by: jvels on November 14, 2006, 10:20:48 AM
Hi

Normal on other servers php show a error if there was one in the script. SME only show a with blank page??

Can I in some way enable the error reporting?
Title: php does not show error
Post by: william_syd on November 14, 2006, 10:34:25 AM
Some info... (http://www-128.ibm.com/developerworks/opensource/library/os-debug/#N1006E)

You may need a custom version of
Code: [Select]
/etc/e-smith/templates/etc/php.ini/30ErrorHandling

So
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cp /etc/e-smith/templates/etc/php.ini/30ErrorHandling /etc/e-smith/templates-custom/etc/php.ini

Edit /etc/e-smith/templates-custom/etc/php.ini/30ErrorHandling

Code: [Select]
expand-template /etc/php.ini
Code: [Select]
/etc/rc.d/rc7.d/S86httpd-e-smith restart
Title: php does not show error
Post by: JonB on November 14, 2006, 10:47:29 AM
The errors are available in the Messages log.

JonB
Title: php does not show error
Post by: william_syd on November 14, 2006, 10:57:34 AM
Quote from: "JonB"
The errors are available in the Messages log.

JonB


I was just coming back to add that.
Code: [Select]
Nov 14 20:54:22 c3 httpd: PHP Fatal error:  Call to undefined function:  printaline() in /home/e-smith/files/ibays/Primary/html/phperror/index.php on line 3