#2590 - Hookup module doesn't show all the custom modules
Hi,
I've installed Security Suite version 7.6.6 on my crm. I've completed the installation successfully however the dropdown list of the hookup module doesn't show all the custom modules in the crm. What it can be?
Regards
8 years ago
If it doesn't show the custom module then the custom module was already hooked up with Security Groups. This often happens if the custom module was created in SuiteCRM's Module Builder or Studio. To make it show up in order to use the Hookup Tool to correctly set the relationship you would need to manually remove the relationship. Here is a nice guide on how to do that: http://www.ricardomalla.com/?p=996
8 years ago
It seems that the relationship exist for those modules (i see it in studio) but it is not custom. I don't find the files of the guide in the custom folders. Also i have this error on the calendar display ehen i select a security group in the shared calendar: Fatal error: Call to a member function setPreference() on a non-object in /var/www/crmschueco/modules/Calendar/CalendarDisplay.php on line 547
Thank you in advance for the support
8 years ago
It sounds like the relationship already exists then.
Haven't seen that error before, but I do know there were many issues around the Calendar module in SuiteCRM around that version. Those have been fixed in the recent releases of SuiteCRM. I recommend upgrading.
8 years ago
Hi, i managed to delete the system relationship by modifying the file modules/(module)/vardefs.php on line
VardefManager::createVardef('promo_Promozioni','promo_Promozioni', array('basic','assignable','security_groups'));
by removing 'security_groups'
The hookup module now works correctly.
I have another problem when i create a record in the crm. The error that display is the following:
Fatal error: Uncaught Error: Using $this when not in object context in /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php:504 Stack trace: #0 /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php(225): SecurityGroup::retrieveDefaultGroups() #1 /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php(183): SecurityGroup::assign_default_groups(Object(Lead), false) #2 /dati/web/crm/bkp28102016/data/SugarBean.php(1905): SecurityGroup::inherit(Object(Lead), false) #3 /dati/web/crm/bkp28102016/include/SugarObjects/templates/person/Person.php(164): SugarBean->save(false) #4 /dati/web/crm/bkp28102016/modules/Leads/Lead.php(561): Person->save(false) #5 /dati/web/crm/bkp28102016/modules/Leads/LeadFormBase.php(339): Lead->save(false) #6 /dati/web/crm/bkp28102016/modules/Leads/Save.php(50): LeadFormBase->handleSave('', true, false) #7 /dati/web/crm/bkp28102016/include/MVC/View/SugarView.php(738): require_once('/dati/web/crm/b...') #8 /dati/web/crm/bkp28102016/include/MVC/View/views/view.classic. in /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php on line 504
After the error the record is created but for example for calls and meetings the record is created without the invitee and i have to save it another time in order to make the invitee appear
8 years ago
Nice find!
What version of PHP are you on?
8 years ago
php 7.0.4
8 years ago
That will be the reason. An update for PHP 7 is in the works.
8 years ago
It will require upgrading to SuiteCRM 7.7.6 once it is released.
8 years ago
When do you think this version will be released?
Can you give me a temporary solution of this problem by fixing the file securitygroups.php on the line that i send to you?
Thanks in advance for the support
8 years ago
The $this is in saveDefaultGroup in modules/SecurityGroups/SecurityGroup.php. There are 2 references. Change both from:
To:
No solid timeline on PHP 7 support yet, but hoping for end of next week.
7 years ago
Support for PHP7 has been added in the soon-to-be-released 2.9.5 version of SecuritySuite starting with SuiteCRM 7.7.9 and SugarCRM CE 6.5.24. If an upgrade to the latest version of either is not possible please feel free to contact me here or directly via email.