[FIX]Hide database informations on connection error Opencart 3.x

[FIX]Hide database informations on connection error Opencart 3.x
---How to use the fix ("Installation")---
To "install" choose the correct version and just unpack the folder/files (the system/ folder) in the webroot and overwrite the file.

NOTE that It overwrites the CORE opencart file framework.php

---What happens---
The default installation of Opencart 3.x is sending to the output your private Database informations if you are not hiding the errors.
It must be the default on production but for sure we can sometimes forget about it.

This is Workaround that hides the informations even if the other debug information are still shown and it works even if you forget to hide the errors.

Some of the open issues.
https://github.com/opencart/opencart/issues/6647
https://github.com/opencart/opencart/issues/7650

---Is it risky?---
It should not interfere with anything except very rare cases and in those cases you must know for sure what you are doing.
If you want to roll back just overwrite with the original system/framework.php file




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
3.0.2.0, 3.0.3.7, 3.0.3.8, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6

Last Update
4 Sep 2021

Created
11 Feb 2021
162 Downloads
1 Comments
bnit
bnit
Member since: 29 Dec 2013

View all extensions Get Support