vtiger Forum Index vtiger
The Honest Open Source CRM
 

Settings -> System Error Messages
Click here to go to the original topic

 
       vtiger Forum Index -> Code Contributions - 5.0.2
Previous topic :: Next topic  
Author Message
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;
Back to top  
brian



Joined: 02 Jan 2006
Posts: 29

Posted: Sat Sep 23, 2006 3:44 pm    Post subject: Re: Settings -> System Error Messages  

Posting attachment in zip as .patch is not allowed.
Back to top  
 
       vtiger Forum Index -> Code Contributions - 5.0.2
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group