Welcome to Geeklog Friday, February 23 2018 @ 03:29 am EST


Status: offline

OMAL

Forum User
Junior
Registered: 06/12/2017
Posts: 15
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'Wink ){},
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?

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/2005
Posts: 1257
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.

All times are EST. The time is now 03:29 am.

  • 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