Resource icon

Osclass Debug Plugin 2023-03-01

No permission to download
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) ;
  • Like
Reactions: ruthailand
Author
freecoded
Downloads
2
Views
181
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from freecoded

Richest Freecoded User

Most Freecoin

freecoded
freecoded
2,603 Freecoin
Davy200
Davy200
590 Freecoin
nathan69
nathan69
424 Freecoin
Laureine
Laureine
415 Freecoin
C
codeguru
295 Freecoin
Tekera
Tekera
263 Freecoin
R
ruthailand
221 Freecoin
A
Akubay
170 Freecoin
smitha
smitha
104 Freecoin
G
Gabby
93 Freecoin
Top