[Phpmyadmin-devel] enabling error display

Hi, i just want to leave a note for all not already recognized this you can enable displaying of PHP errors (NOTICEs, WARNINGs, aso.) by enabling $cfg['Error_Handler']['display'] = true; in your config.inc.php errors will be displayed in the footer of the page, if an error cannot immediately displayed it will be displayed on next page where possible f.e. NOTICES happen in index.php will be displayed in main.php footer -- Sebastian

Hi On Thu, 11 Oct 2007 07:33:41 +0200 Sebastian Mendel <lists@sebastianmendel.de> wrote:
i just want to leave a note for all not already recognized this
you can enable displaying of PHP errors (NOTICEs, WARNINGs, aso.) by enabling
$cfg['Error_Handler']['display'] = true;
in your config.inc.php
errors will be displayed in the footer of the page, if an error cannot immediately displayed it will be displayed on next page where possible
f.e. NOTICES happen in index.php will be displayed in main.php footer
It works and on demo server I get this: Runtime Notice in ./libraries/common.inc.php#246 date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead Backtrace ./libraries/common.inc.php#246: date_default_timezone_get() ./main.php#18: require_once(./libraries/common.inc.php) -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Hi On Thu, 11 Oct 2007 14:36:04 +0900 Michal Čihař <michal@cihar.com> wrote:
It works and on demo server I get this:
Runtime Notice in ./libraries/common.inc.php#246 date_default_timezone_get() [function.date-default-timezone-get]: It is
... and the link to function here is broken :-) -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Michal Čihař schrieb:
Hi
On Thu, 11 Oct 2007 14:36:04 +0900 Michal Čihař <michal@cihar.com> wrote:
It works and on demo server I get this:
Runtime Notice in ./libraries/common.inc.php#246 date_default_timezone_get() [function.date-default-timezone-get]: It is
... and the link to function here is broken :-)
but this depends on your php.ini ... -- Sebastian

On Thu, 11 Oct 2007 08:22:11 +0200 Sebastian Mendel <lists@sebastianmendel.de> wrote:
Michal Čihař schrieb:
Hi
On Thu, 11 Oct 2007 14:36:04 +0900 Michal Čihař <michal@cihar.com> wrote:
It works and on demo server I get this:
Runtime Notice in ./libraries/common.inc.php#246 date_default_timezone_get() [function.date-default-timezone-get]: It is
... and the link to function here is broken :-)
but this depends on your php.ini ...
Which has defaults to show html errors and no url to documentation. Great combination... -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Hi On Thu, 11 Oct 2007 14:36:04 +0900 Michal Čihař <michal@cihar.com> wrote:
It works and on demo server I get this:
Runtime Notice in ./libraries/common.inc.php#246 date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Hmm ad I still get it even if I have set date.timezone in php.ini... -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Michal Čihař schrieb:
Hi
On Thu, 11 Oct 2007 14:36:04 +0900 Michal Čihař <michal@cihar.com> wrote:
It works and on demo server I get this:
Runtime Notice in ./libraries/common.inc.php#246 date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Hmm ad I still get it even if I have set date.timezone in php.ini...
date.timezone = "Europe/Berlin" no single quotes, the error message with single quotes confused me too a long time, but single quotes are not allowed in php.ini ... ;-)

Hi On Thu, 11 Oct 2007 08:21:19 +0200 Sebastian Mendel <lists@sebastianmendel.de> wrote:
Michal Čihař schrieb:
Hi
On Thu, 11 Oct 2007 14:36:04 +0900 Michal Čihař <michal@cihar.com> wrote:
It works and on demo server I get this:
Runtime Notice in ./libraries/common.inc.php#246 date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Hmm ad I still get it even if I have set date.timezone in php.ini...
date.timezone = "Europe/Berlin"
no single quotes, the error message with single quotes confused me too a long time, but single quotes are not allowed in php.ini ... ;-)
Well I put it there without quotes, what works ... but to wrong php.ini :-). Anyway while playing with this I found some problem with error handling see bug tracker... -- Michal Čihař | http://cihar.com | http://blog.cihar.com
participants (2)
-
Michal Čihař
-
Sebastian Mendel