brian
Joined: 02 Jan 2006
Posts: 29
|
| Posted: Sat Sep 23, 2006 3:38 pm Post subject: Settings -> System Error Messages |
|
|
While it is always nice to see error messages when debugging code, it is the last thing wanted in a production environment. Under Settings -> System there were errors on shared hosting providers when certain access was not allowed. There are two fixes to completely address the issue.
The first is to create a .htaccess file. I created this in the vtiger root directory. This will suppress all PHP errors. For troubleshooting, I manually remove the setting to view the errors again. You may already have one of these files... at the end of the file add the following line:
Code: php_value display_errors Off
The other part of the fix is to disable the included error reporting in this module. I don't expect this code to be added to the product, just thought it might be nice for those who want the product to not report errors. The attached file contains a diff for the modules/System/includes/class.error.inc.php file.
Simply put, it changes the return line: return $strHTMLString;
to: return false; |
|