Osclass debug PHP errors

Osclass debug allow a fast way to find any PHP errors on your site. If you have any issues or you want to test what errors are a trigger on your site activate osclass debug.

OSC_DEBUG - is a constant that controls the display of php errors and warnings on site, by default the value is false and no errors will be displayed.

OSC_DEBUG_LOG - if this constant will be defined as true in config.php file, the error will not be displayed on site and will be saved in a file debug.log. Make sure that Apache have permission to create this file on your server, if not you have to create this file manually in folder oc-content.

Add the following lines in the file config.php from your server to display the errors:

 

/*
 * Copy this code to config.php file
 * This will show all error notices and warnings on the site
 */
define('OSC_DEBUG', true) ;
/*
 * Copy this code to config.php file
 * This will log all error notices and warnings to a file called debug.log in oc-content
 */
define('OSC_DEBUG', true) ;
define('OSC_DEBUG_LOG', true) ;
Subscribe
X

Subscribe!

Subscribe to get the latest listings, updates and special offers delivered directly in your inbox.