*

Post Free Online

  • ***
  • 80 posts
  • Welcome to Post Free Online classified web site
How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« on: September 01, 2025, 06:40:28 AM »
How to Setup OSP_DEBUG in OsClass Pay v4.1.5

1).  I tried turning it define('OSP_DEBUG', true);  in plugin folder index.php  but   no log file created.       // Saved into oc-content/osclass_pay.debug.log

where exactly we need to make changes?

also


2).  i am unable update User Groups and unable to create new group.  it is creating but when we click on Update Changes disappear. 


*

MB Themes

Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #1 on: September 01, 2025, 12:59:59 PM »
Pretty basic for debugging is:
Code: [Select]
define('OSC_DEBUG', true);
define('OSC_DEBUG_DB', true);
define('OSC_DEBUG_LOG', true);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 80 posts
  • Welcome to Post Free Online classified web site
Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #2 on: September 01, 2025, 01:20:19 PM »
Pretty basic for debugging is:
Code: [Select]
define('OSC_DEBUG', true);
define('OSC_DEBUG_DB', true);
define('OSC_DEBUG_LOG', true);


This i know but we are exactly in which folder location.  What is the exact path or file? 


2).  i am unable update User Groups and unable to create new group.  it is creating but when we click on Update Changes disappear.



*

MB Themes

Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #3 on: September 01, 2025, 01:27:10 PM »
You put this into config.php
Logs are stored in oc-content folder.

2) try to disable -> enable osclass pay plugin, make sure database structure is OK.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 80 posts
  • Welcome to Post Free Online classified web site
Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #4 on: September 01, 2025, 03:19:09 PM »
You put this into config.php
Logs are stored in oc-content folder.

2) try to disable -> enable osclass pay plugin, make sure database structure is OK.

But here it is returned that the code for the bug should be updated in index.php not in config.php.    Also the Deepa blog file location is different which is showing in the screenshot.

My 2nd No. Quire is solved now Thanks for that.   Working to resolve 1st No. Now

*

MB Themes

Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #5 on: September 01, 2025, 03:38:40 PM »
That is Osclass Pay debug to log details from payment gateways.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 80 posts
  • Welcome to Post Free Online classified web site
Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #6 on: September 01, 2025, 03:44:40 PM »
That is Osclass Pay debug to log details from payment gateways.


Yes you are right. I am talking about OsClass Pay v4.1.5 where exactly we need to put Debug code or enable Debug mode.  what it will be the directories location and file name where we need to make changes.   Which index.php needs to be updated with debug enable code. 

*

MB Themes

Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #7 on: September 01, 2025, 04:18:22 PM »
In plugin index.php, set OSP_DEBUG to true (that line is there already).
File with logs (latest version) is created in oc-content folder.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 80 posts
  • Welcome to Post Free Online classified web site
Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #8 on: September 01, 2025, 04:59:05 PM »
In plugin index.php, set OSP_DEBUG to true (that line is there already).
File with logs (latest version) is created in oc-content folder.

I enabled the Debug log. But the debug file name is still debug.log.   But on plug-in it is showing.  osclass_pay.debug.log.    Do we need to change the file name. Or We shoul create it manually. 

*

MB Themes

Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #9 on: September 01, 2025, 05:28:38 PM »
No if there are some logs, it eill be auto-created.
But I am not sure if OSP_DEBUG is enough or you must set OSP_DEBUG_LOG to true as well ... Need to check
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 80 posts
  • Welcome to Post Free Online classified web site
Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #10 on: September 01, 2025, 06:15:51 PM »
No if there are some logs, it eill be auto-created.
But I am not sure if OSP_DEBUG is enough or you must set OSP_DEBUG_LOG to true as well ... Need to check

I just need to clarify that is Debug mode enabling is necessary or we can keep it enable and disable as per our requirement ?

Also there is noting like "OSP_DEBUG_LOG" or let me know where we can find this "OSP_DEBUG_LOG"

« Last Edit: September 01, 2025, 06:27:36 PM by Post Free Online »

*

MB Themes

Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #11 on: September 02, 2025, 07:19:45 AM »
Good.
Keep disabled if not needed to view logs.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Post Free Online

  • ***
  • 80 posts
  • Welcome to Post Free Online classified web site
Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #12 on: September 03, 2025, 06:16:44 PM »
Good.
Keep disabled if not needed to view logs.

I want to Resolve the issue. the log file is not auto generating. /oc-content/osclass_pay.debug.log

Kindly cross check how to generate above Debug log. In which files do you need to enable debugging.   

*

MB Themes

Re: How to Setup OSP_DEBUG in OsClass Pay v4.1.5
« Reply #13 on: September 04, 2025, 07:55:35 AM »
Its autogenerated when there are monitored events triggered.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots