Find errors on your Osclass site - debug PHP errors

the new era

Well-known member
Diamond
Elite
XNullUser
Joined
Oct 17, 2021
Messages
190
Reaction score
487
Points
63
Location
UK
NullCash
4,478
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) ;
 

seoadd

Member
XNullUser
Joined
Sep 22, 2021
Messages
46
Reaction score
8
Points
8
NullCash
2
Osclass Documentations here. Version 8.0.*
Here all documentations
 
Top