SugarCRM 6.5.10 Patch Fix List
Today SugarCRM released Path 6.5.10, this one is more than a Maintenance/Bugfix – it has some nice new features, we really like the Support for XHProf – this will be a great asset when trying to performance tune or debug slow instances of SugarCRM. The addition or Reply to all on the email detailview is overdue – so great to see that in the product. Enhanced iCal Support for meeting attendees is great, we are seeing more and more customers setting up iCal on iPhones etc and connecting them to SugarCRM.
Below is the full list of feature enhancements, as well as the complete list of bugs fixed (a total of 81)
Feature Enhancements
Enhancements to existing features for Release 6.5.10 are listed below:
- Importing contracts : The Contracts module tab now includes an Import option in its Actions dropdown menu
- Email reply-all : The option to reply to all recipients is now available when viewing an email
- Converting leads to existing contacts : Studio now allows the option for Admins to configure lead conversion such that an existing contact record may be found and selected rather than requiring a new contact record to be created
- REST JSONP callback : JSONP callback support now included when accessing Sugar’s REST API from external JavaScript
- XHProf logging : XHProf logging is now supported given that the library is installed. Below is an extract from the Developer Guide on how to use XHProf in SugarCRM
Call and meeting attendance : When a call or meeting is created, the creator’s status is now automatically set to “Accepted” - Attendee status for iCal : Viewing calls and meetings in iCal now includes the participation status of all attendees when using the iCal integration
PHP Profiling via XHProf
Profiling support has been added in release 6.5.10 through a tool call XHProf which allows developers to better manage and understand customer performance issues introduced by their customizations. This tool enables quick and accurate identification of the sources of performance sinks within the code by generating profiling logs. Profiling gives you the ability to see the call stack for the entire page load with timing details around function and method calls as well as statistics on call frequency.
Assuming XHProf is installed and enabled in your PHP configuration, you can enable profiling in Sugar by adding the following parameters to the ./config_override.php file:
-
$sugar_config
[
'xhprof_config'
][
'enable'
] = true;
-
$sugar_config
[
'xhprof_config'
][
'log_to'
] =
'{instance server path}/cache/xhprof'
;
$sugar_config
[
'xhprof_config'
][
'sample_rate'
] = 1;
// x where x is a number and 1/x requests are profiled. So to sample all requests set it to 1
$sugar_config
[
'xhprof_config'
][
'ignored_functions'
] =
array
();
// array of function names to ignore from the profile (pass into xhprof_enable)
$sugar_config
[
'xhprof_config'
][
'flags'
] = XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY;
// flags for xhprof
Please note that with the above 'log_to' parameter, you would need to create the ./cache/xhprof/ directory in your instance directory with proper permissions and ownership for the Apache user. You can also opt to leave the 'log_to' parameter empty and set the logging path via the xhprof.output_dir parameter in the php.ini file.
Once the above parameters are set, XHProf profiling will log to the indicated directory and allow you to research any performance related issues encountered in the process of developing and maintaining the application.