Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Sonny on February 16, 2003, 11:14:48 PM

Title: display php error's on the user's browser ??
Post by: Sonny on February 16, 2003, 11:14:48 PM
Hi!

I have tryed to enable the php error displaying on the client browser, but without luck :-(

I have searched this forum but i can't finde anny solution...

What do i have to do for enable this "feauture" ??
Title: Re: display php error's on the user's browser ??
Post by: Mntsnow on February 18, 2003, 08:53:39 PM
Have you enabled that option in the php.ini file?
Title: Re: display php error's on the user's browser ??
Post by: Sonny on February 18, 2003, 09:15:57 PM
yes...

I have in the
/etc/e-smith/templates/etc/php.ini/30ErrorHandling
set the following
---- snip ----
error_reporting      = E_ALL & ~E_NOTICE
display_errors      = On
display_startup_errors   = Off
log_errors      = On
error_log      = syslog
track_errors      = Off
warn_plus_overloading   = Off


And then restartet the httpd deamon, with the comand httpd restart

And i have allso tryed to make a custom template fragment, but it seames that id did not suxceed :-(

Anny idear ?
Title: Re: display php error's on the user's browser ??
Post by: Dan Brown on February 18, 2003, 09:25:10 PM
Did you expand the template before restarting httpd?
Title: Re: display php error's on the user's browser ??
Post by: Sonny on February 18, 2003, 09:34:39 PM
i have createt the
/etc/e-smith/templates-custom/etc/php.ini/30ErrorHandling

and it is an true copy of the orginale file....
i have doone this

mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cd /etc/e-smith/templates-custom/etc/php.ini
copy /etc/e-smith/templates/etc/php.ini/30* .
/sbin/e-smith/expand-template /etc/php.ini

Found i this froum at
http://forums.contribs.org/index.php?topic=16389.msg63409#msg63409

But i don't think the expand suxceeded :-(
since it still don'd display anny errors on the client browser...

Anny idear / fix'es i have missed ?
Or have i executet the expand-template thing wrong ?
Title: Re: display php error's on the user's browser ??
Post by: Sonny on February 18, 2003, 09:39:47 PM
i have just tryed the following :

[root@nos root]# /sbin/e-smith/expand-template /etc/e-smith/templates-custom/etc/php.ini/30ErrorHandling
No templates were found for //etc/e-smith/templates-custom/etc/php.ini/30ErrorHandling.
 at /usr/lib/perl5/site_perl/esmith/util.pm line 88


And as you can see i got an error... am i expanding the template wrong or... ??
Title: Re: display php error's on the user's browser ??
Post by: Dan Brown on February 18, 2003, 09:58:17 PM
Yes, you're expanding the template wrong.  You had it right the first time:

/sbin/e-smith/expand-template /etc/php.ini
Title: Re: display php error's on the user's browser ??
Post by: Sonny on February 19, 2003, 12:31:20 AM
okay... now i can see i /etc/php.ini that
display_errors = On

and then i have done an
/etc/rc.d/init.d/httpd restart

And there is still no errors showen to the user... :-(

Any other sugestion ??