[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
Login and write down your comment.
Login my OpenCart Account