One quick way to view PHP error, warning or notice in sugarCRM system is to turn on error_reporting in php.
You can do thisĀ within sugarCRM if you have limited access to php.ini file.
Add this code to the top of index.php file in sugarCRM
- <?php
- if(!defined('sugarEntry'))define('sugarEntry', true);
-
- //debug setting.
- ini_set('display_errors',1);
- error_reporting(E_ALL);
-
- //......the rest of php code in index file
Now, if you have any error in your php code, you’ll see it on sugarCRM webpages.
Make sure you remove the debug setting code once you are done with debugging sugarCRM.