*

dsf

  • *****
  • 261 posts
Hi,

Our db was down for an hour or two and this came up:

PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_report() in /home/oc-includes/osclass/classes/database/DBConnectionClass.php:464

Thanks


*

mwindey

  • *****
  • 485 posts
Sounds reasonable when db is not reachable at that time. Did you get error on live site or in debug?
« Last Edit: October 18, 2022, 11:42:17 PM by mwindey »

*

dsf

  • *****
  • 261 posts
In debug.log , i have no idea if the visitors also saw that. And of cource it is reasonable.

But not with the error i posted. Fatal php error with some function that doesn't exist.

*

Digitalcay Limited

Are you using a server?
Try to restart MySQL or see if you have the mysql (mysql and mysqli) extension installed in your PHP version.
« Last Edit: October 18, 2022, 11:55:39 PM by Digitalcay Limited »

*

dsf

  • *****
  • 261 posts
Are you using a server?
Try to restart MySQL or see if you have the MySQL extension installed in your PHP version.

Guys please.

Let the developer just give a reply and if something could be improved or not.

*

Digitalcay Limited

Are you using a server?
Try to restart MySQL or see if you have the MySQL extension installed in your PHP version.

Guys please.

Let the developer just give a reply and if something could be improved or not.

Why do you think this is called “support forums” ? So anyone in community can try help you. It’s a public forum. If you need just developers support then you can open a private ticket but anyway that error is very known due to PHP MySQL server related not just osclasspoint.
« Last Edit: October 19, 2022, 12:13:40 AM by Digitalcay Limited »

*

mwindey

  • *****
  • 485 posts
File home/oc-includes/osclass/classes/database/DBConnectionClass.php is your connection to your database file. Since your db is back up why worrie about it. A normal error in a bad db situation.... Sit back and relax

*

dsf

  • *****
  • 261 posts
Also checking better the debug.log, i see the NAME and FULL PASSWORD of the database of the site. In the stack trace.

#0 /home/oc-includes/osclass/classes/database/DBConnectionClass.php(272): DBConnectionClass->_connectToDb('localhost', 'fulledbname...'passwordhere', NULL)

I can't believe my eyes this is happening. The password revealed in a public log file (if you know where to look).

« Last Edit: October 19, 2022, 02:35:13 AM by dsf »

*

dsf

  • *****
  • 261 posts
File home/oc-includes/osclass/classes/database/DBConnectionClass.php is your connection to your database file. Since your db is back up why worrie about it. A normal error in a bad db situation.... Sit back and relax

Sure, i hope the error doesn't display publicly and probably could be catched.

*

cartagena68

  • ***
  • 73 posts
Quote
Also checking better the debug.log, i see the NAME and FULL PASSWORD of the database of the site. In the stack trace.

#0 /home/oc-includes/osclass/classes/database/DBConnectionClass.php(272): DBConnectionClass->_connectToDb('localhost', 'fulledbname...'passwordhere', NULL)

I can't believe my eyes this is happening. The password revealed in a public log file (if you know where to look).
The DB debug log is only visible to you when you are logged in as administrator, other users don't see it. If you want to try, just log in as admin with chrome and then surf your website as visitor or login as user using Chrome in Incognito mode or with a different browser.

*

dsf

  • *****
  • 261 posts
Quote
Also checking better the debug.log, i see the NAME and FULL PASSWORD of the database of the site. In the stack trace.

#0 /home/oc-includes/osclass/classes/database/DBConnectionClass.php(272): DBConnectionClass->_connectToDb('localhost', 'fulledbname...'passwordhere', NULL)

I can't believe my eyes this is happening. The password revealed in a public log file (if you know where to look).
The DB debug log is only visible to you when you are logged in as administrator, other users don't see it. If you want to try, just log in as admin with chrome and then surf your website as visitor or login as user using Chrome in Incognito mode or with a different browser.


Everyone can see the debug . log if he points his browser to /oc-content/debug.log.

Same for Wordpress (wp-content/debug.log).


*

MB Themes

@dsf
For me it works, generated if you set osclass to save logs into file.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
@dsf
For me it works, generated if you set osclass to save logs into file.

What do you mean, i do not understand your reply.

*

MB Themes

Debug file is created
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 485 posts
@dsf

If you enable the debug log in config file yes it creates debug.log file for you to find errors.
Disable in config and file is not generated anymore..... Clear or delete log file after you are done debugging and no info is shown to others who are interested in reading the file.