Hello,
The MySQL on my hosting company went down. During this time, accessing the front end of my site was showing below error and was listing the user id and password for my website's database. This is a big flaw. I think the code should catch the error and return more user friendly message on the front end. The technical details and trace logs can be sent to Systems-> Error Logs.in the Admin section of the site.
prntscr.com/esawcp
The MySQL on my hosting company went down. During this time, accessing the front end of my site was showing below error and was listing the user id and password for my website's database. This is a big flaw. I think the code should catch the error and return more user friendly message on the front end. The technical details and trace logs can be sent to Systems-> Error Logs.in the Admin section of the site.
prntscr.com/esawcp
that's a real Problem, and the possibly only way, to prevent it, would be, to have
a top hoster, in order to avoid, a DB to ever be out of service.
Ernie
a top hoster, in order to avoid, a DB to ever be out of service.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Hello,
No matter if you have the best hosting company in the world, the outage would happen once in a while. I think the code should be smart to NOT show user id / password or other details that could compromise the security.
Somebody please help me with some fix / solution / work around.
No matter if you have the best hosting company in the world, the outage would happen once in a while. I think the code should be smart to NOT show user id / password or other details that could compromise the security.
Somebody please help me with some fix / solution / work around.
well, I assume, it's a Server Information.
Ernie
Ernie
Last edited by IP_CAM on Fri Apr 07, 2017 1:20 am, edited 1 time in total.
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Thanks artcore !!
I have added following code in - system/library/db/mysqli.php
if ($this->connection->connect_error) {
die('Unable to connect to database');
}
I have added following code in - system/library/db/mysqli.php
if ($this->connection->connect_error) {
die('Unable to connect to database');
}
Or 'something went wrong, please contact the webmaster'. No one needs to know details 

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Who is online
Users browsing this forum: No registered users and 8 guests