by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Cancel at any time!
Free Trial

#2185 - Error when Saving New Group

Closed Bug? created by websolprov 3 years ago

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"

  1. websolprov member avatar

    websolprov

    3 years ago

    Response please?

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 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/

    • websolprov member avatar

      websolprov

      3 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.

  2. eggsurplus member avatar

    eggsurplus Provider Affiliate

    3 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.

  3. websolprov member avatar

    websolprov

    3 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.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 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.

    • websolprov member avatar

      websolprov

      3 years ago

      I had obviously searched for the error and couldn't find any sign of it, so thought it was strange.

  4. websolprov member avatar

    websolprov

    3 years ago

    Do I install over the top of existing one? remove / install this one? or have them both on there?

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 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!

  5. websolprov member avatar

    websolprov

    3 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.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 years ago

      Agreed. The alex one. You can email me at solutions@eggsurplus.com and I can reply to that as well.

  6. websolprov member avatar

    websolprov

    3 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?

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 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.

  7. websolprov member avatar

    websolprov

    3 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.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 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. websolprov member avatar

    websolprov

    3 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.

  9. websolprov member avatar

    websolprov

    3 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.

  10. websolprov member avatar

    websolprov

    3 years ago

    Got it to my live account thanks Jason.

  11. eggsurplus member avatar

    eggsurplus Provider Affiliate

    3 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.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "SecuritySuite was a very good addition to our SugarCRM implementation helping to integrate different functional teams with strictly specified roles."

    Read More Reviews

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.