#2185 - Error when Saving New Group
When I click to Create a new group the form loads, however when I save I get "Fatal error: Call to undefined method SecurityGroup::unformat_all_fields() in /include/MVC/Controller/SugarController.php on line 544"
When I click to Create a new group the form loads, however when I save I get "Fatal error: Call to undefined method SecurityGroup::unformat_all_fields() in /include/MVC/Controller/SugarController.php on line 544"
8 years ago
Response please?
8 years ago
It has only been a few hours since you opened a support case on the weekend. Please be patient.
A couple of questions. Are you on SugarCRM CE or SuiteCRM? Which version of it are you currently running?
That unformat_all_fields is a part of the main SugarBean. I haven't seen this error before which leads me to believe there is a file permissions or ownership issue. Can you look at this script and see if you can apply it to your instance? http://www.shanedowling.com/sugarcrm-permissions-script/
8 years ago
Thanks for the response. I am using SuiteCRM / Version 7.5.3 Sugar Version 6.5.23 (Build 1061), I am using the following to apply permissions:
MAKE ALL FILES / DIRECTORIES OWNED BY USER
sudo chown -R londonholds:londonholds /[{path to sugar}]/public_html/crm
FIND ALL DIRECTORIES AND CHANGE THEIR MOD TO 755
find -P /[{path to sugar}]/public_html/crm -type d -exec chmod 755 {} \;
FIND ALL FILES AND CHANGE THEIR MOD TO 644
find -P /[{path to sugar}]/public_html/crm -type f -exec chmod 644 {} \;
FIND ALL JAVA FILES AND CHANGE THEIR MOD OT 755
find -P /[{path to sugar}]/public_html/crm -name *.js -exec chmod 755 {} \;
CHANGE CONFIG.PHP TO 664
chmod 664 config.php
Except These files need to be 664
cd /[{path to sugar}]/public_html/crm
(check to make sure you are at the top directory)
pwd chmod 664 config.php chmod 664 config_override.php chmod 664 sugarcrm.log
The four Directories below need to be 775
find -P /[{path to sugar}]/public_html/crm cache -type d -exec chmod 775 {} \; find -P /[{path to sugar}]/public_html/crm custom -type d -exec chmod 775 {} \; find -P /[{path to sugar}]/public_html/crm data -type d -exec chmod 775 {} \; find -P /[{path to sugar}]/public_html/crm modules -type d -exec chmod 775 {} \;
All files in the directories below need to be 664
cache/ and all subdirectories and files
custom/ and all subdirectories and files
data/ and all subdirectories and files
modules/ and all subdirectories and files
find -P /[{path to sugar}]/public_html/crm cache -type f -exec chmod 664 {} \; find -P /[{path to sugar}]/public_html/crm custom -type f -exec chmod 664 {} \; find -P /[{path to sugar}]/public_html/crm data -type f -exec chmod 664 {} \; find -P /[{path to sugar}]/public_html/crm modules -type f -exec chmod 664 {} \;
I also tried uninstalling, applying permissions then reinstalling again, and installing and then apply permissions.
8 years ago
You have been using SecuritySuite for a long time now. Has anything changed on your system recently? New modules or customizations? A new upgraded version of Sugar or Suite? Something recently must have changed that has triggered this error when creating a SecurityGroup.
8 years ago
I stopped using it for a long time and was merely paying the license fee as I forgot I had it, but remembered I had it and wanted to achieve something on specific views per user group and so starting using again on a fresh install.
8 years ago
I'm going to email you the same package, but with a different version number to trick the system into installing it correctly. That's the only thing that I can think of since that error is something not seen in typical SecuritySuite installs.
8 years ago
I had obviously searched for the error and couldn't find any sign of it, so thought it was strange.
8 years ago
Do I install over the top of existing one? remove / install this one? or have them both on there?
8 years ago
Install on top of the existing one. Some versions of SuiteCRM do not do well with uninstalls or disabling modules. I just emailed you the latest package for 7.5.3. I hope this does the trick for you!
8 years ago
Me too, which email did you send to as I haven't seen anything arrive as yet? The damn permissions thing in Sugar is a major pain in the butt, always having to reapply the permission fix script.
8 years ago
Agreed. The alex one. You can email me at solutions@eggsurplus.com and I can reply to that as well.
8 years ago
There are various articles online about the default permissions issue in the config.php file, I am using:
'default_permissions' => array ( 'dir_mode' => 1517, 'file_mode' => 420, 'user' => '[cpanel user]', 'group' => '[cpanel user]', ),
And do you know if I should use the cpanel user as the file owner or the apache user?
8 years ago
I really don't know, but if Apache is running as the cpanel user than probably. I do know that in general Sugar/Suite users have the most problems with cPanel.
8 years ago
Okay thanks, did you receive my email / reply? I still didn't receive anything. The zip file is just 1mb right so its not large.
8 years ago
Yes. Sent both emails to the same address. Make sure it's not in a spam folder. Otherwise, it might just take a bit to get there. Weekend delivery service around here is slow ;)
8 years ago
Weekend delivery is always bad, nothing received and just whitelisted your domain to be sure. Always check the spam folder anyway, majority of stuff goes there anyway.
8 years ago
Looks like my exchange account may be losing the email for some reason, you can send to same address before@ but live.co.uk afterwards please, if you don't mind. Lets see if MS can manage to sort the delivery.
8 years ago
Got it to my live account thanks Jason.
8 years ago
Were you able to get this resolved with the package I sent over? I'm closing this case for now, but feel free to follow up as needed.