Koozali.org: home of the SME Server

php does not show error

Offline jvels

  • ****
  • 130
  • +0/-0
    • http://vels.dk
php does not show error
« 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?

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
php does not show error
« Reply #1 on: November 14, 2006, 10:34:25 AM »
Some info...

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
Regards,
William

IF I give advise.. It's only if it was me....

Offline JonB

  • *
  • 351
  • +0/-0
php does not show error
« Reply #2 on: November 14, 2006, 10:47:29 AM »
The errors are available in the Messages log.

JonB
...

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
php does not show error
« Reply #3 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
Regards,
William

IF I give advise.. It's only if it was me....