This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

cartagena68

  • ***
  • 71 posts
php 8 osc_debug error
« on: May 08, 2021, 05:49:13 PM »
Hi,
if I switch to PHP 8.0.5 and enable osc_debug (any of them), I get a fatal error
Fatal error: Uncaught Error: Undefined constant "OSC_DEBUG"
Any solution?

*

MB Themes

Re: php 8 osc_debug error
« Reply #1 on: May 08, 2021, 08:19:05 PM »
There must be more details about problem.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

cartagena68

  • ***
  • 71 posts
Re: php 8 osc_debug error
« Reply #2 on: May 08, 2021, 08:33:43 PM »
this is the full error line in PHP 8
Fatal error: Uncaught Error: Undefined constant "OSC_DEBUG_DB" in /var/www/vhosts/example.com/example.example.com/config.php:27 Stack trace: #0 /var/www/vhosts/example.com/example.example.com/oc-load.php(44): require_once() #1 /var/www/vhosts/example.com/example.example.com/index.php(22): require_once('...') #2 {main} thrown in /var/www/vhosts/example.com/example.example.com/config.php on line 27

but in php 7.4 there was a worning
Warning: Use of undefined constant OSC_DEBUG_DB - assumed 'OSC_DEBUG_DB' (this will throw an Error in a future version of PHP) in /var/www/vhosts/example.com/example.example.com/config.php on line 27

Warning: Use of undefined constant OSC_DEBUG - assumed 'OSC_DEBUG' (this will throw an Error in a future version of PHP) in /var/www/vhosts/example.com/example.example.com/config.php on line 29

Warning: Use of undefined constant OSC_DEBUG_LOG - assumed 'OSC_DEBUG_LOG' (this will throw an Error in a future version of PHP) in /var/www/vhosts/example.com/example.example.com/config.php on line 31

Marked as best answer by frosticek on May 09, 2021, 11:22:28 AM
*

cartagena68

  • ***
  • 71 posts
Re: php 8 osc_debug error
« Reply #3 on: May 08, 2021, 09:15:55 PM »
Sorry, my mistake i wrote
define(OSC_DEBUG, true)
instead of
define(OSC_DEBUG, true)

I just find out why I make the mistake, if you go in oc-admin -->Tools--> Debug/Error log, the instructions to enable debug are written wrong (without quotation marks), and I copied from there, so you may change that in the next updates
« Last Edit: May 09, 2021, 12:36:58 AM by cartagena68 »

*

MB Themes

Re: php 8 osc_debug error
« Reply #4 on: May 09, 2021, 11:22:39 AM »
@cartagena68
Sounds good ;)
Will update messages there
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: php 8 osc_debug error
« Reply #5 on: November 16, 2022, 09:29:59 AM »
Hello , today I am getting some issue. website is working fine but some times  (means if i click a any link after 2 - 3 minutes then this proplem comes)  giving attached error and its automatically refresh and loaded website .. can anyone please tell me the issue. (and this error comes only on desktop view..in mobile view website working fine)





 then i try to enable debug mode - but didnt see any error .. only one error showing code 1054  description - unknown column 'os_t_user.pk_i_id' in where clause but this issue also showing in localhost

« Last Edit: November 17, 2022, 01:23:46 PM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: php 8 osc_debug error
« Reply #6 on: November 17, 2022, 08:02:45 AM »
waiting for reply.. can any one please help me.
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Wiz

  • ****
  • 146 posts
Re: php 8 osc_debug error
« Reply #7 on: November 17, 2022, 04:16:04 PM »
Hello , today I am getting some issue. website is working fine but some times  (means if i click a any link after 2 - 3 minutes then this proplem comes)  giving attached error and its automatically refresh and loaded website .. can anyone please tell me the issue. (and this error comes only on desktop view..in mobile view website working fine)





 then i try to enable debug mode - but didnt see any error .. only one error showing code 1054  description - unknown column 'os_t_user.pk_i_id' in where clause but this issue also showing in localhost

I think it's best to start your own threads instead of hijacking other's. Your issue is also unrelated to what's being discussed here.

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: php 8 osc_debug error
« Reply #8 on: November 18, 2022, 12:53:15 PM »
Now it's working automatically .. I think its godaddy server issue.
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com