Renz Tan
Renz Tan

Reputation: 245

Sugar CRM - Not able to create new fields on Module builder

I'm having a hard time figuring out why I wasn't able to create a new field on the module builder of Sugar CRM CE.

I thought it could be a file permissions issue, but after many forum posts and user guides from the SugarCRM community, I have not yet resolve my issue.

To give a background on the issue, here are steps I've taken:

  1. I installed a Debian image on a VM
  2. Updated the packages and installed a LAMP server (with PHP 5.6)
  3. Downloaded the required prerequisite modules
  4. Configured the php.ini as per the installation guide
  5. Ran 'chown -R www-data:www-data /var/www/html/sugarcrm'
  6. Ran 'chmod 775 -R /var/www/html/sugarcrm'
  7. Ran the installation page of Sugar (Setup went well until the Registration page where it just outputs 'Permission Denied')
  8. Create a new package on Modules Builder.
  9. Create a new module
  10. Create a new field (Failed. only created the label)

Hope you guys can help me with this problem. Thank you.

Upvotes: 1

Views: 763

Answers (1)

Reisclef
Reisclef

Reputation: 2148

When I previously encountered this, I worked with Sugar support to establish the cause of the problem.

We were able to narrow it down to opcache by disabling opcache, which worked. However, after some investigation, we came to the conclusion that it was the particular setting opcache.revalidate_freq.

By setting this to 0 (to check for changes on every request), we were able to work with opcache. While this wasn't ideal, this was the Sugar recommended solution to the problem. Also, it allowed us to continue using most of the benefits of opcache.

So you can resolve this by adding the following line to php.ini and restart apache:

opcache.revalidate_freq = 0

Upvotes: 6

Related Questions