Welcome to Geeklog, Anonymous Tuesday, December 10 2024 @ 08:13 pm EST
Geeklog Forums
Debugging Geeklog
Status: offline
OMAL
Forum User
Regular Poster
Registered: 12/06/17
Posts: 107
On the early stage of upgrading geeklog version of a website, it needs debugs.
When I tested debugging version 1.4.1, the geeklog's error handling process seemed disturb my debugging.
It seems cancel php-core's error handling.
For instance, browsers frequently shows just "Unfortunately, an error has occurred rendering this page. Please try again", without issuing any php error logs in system and any errors on browsers.
But when I commented out the lines in lib-common:if( function_exists('set_error_handler' ){},
then browser start to display errors and it is also logged.
Also, switching $_COM_VERBOSE to true or false, it seems not change error handling on the early stage of debugging.
Question is, on the latest geeklog, would same thing happen? or manner of debugging is changed?
When I tested debugging version 1.4.1, the geeklog's error handling process seemed disturb my debugging.
It seems cancel php-core's error handling.
For instance, browsers frequently shows just "Unfortunately, an error has occurred rendering this page. Please try again", without issuing any php error logs in system and any errors on browsers.
But when I commented out the lines in lib-common:if( function_exists('set_error_handler' ){},
then browser start to display errors and it is also logged.
Also, switching $_COM_VERBOSE to true or false, it seems not change error handling on the early stage of debugging.
Question is, on the latest geeklog, would same thing happen? or manner of debugging is changed?
15
11
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Yes the current version of Geeklog 2.1.3 will modify the error handling in pretty much the same spot.
In siteconfig.php you can enable
$_CONF['rootdebug'] = true;
which will turn on the debug trace which can be pretty helpful at times.
One of the Geeklog Core Developers.
In siteconfig.php you can enable
$_CONF['rootdebug'] = true;
which will turn on the debug trace which can be pretty helpful at times.
One of the Geeklog Core Developers.
16
9
Quote
All times are EST. The time is now 08:13 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content