Can't load any custom module

Hi,

I’ve been evaluating Sugar & Suite CRMs. I managed to create custom modules and deploy them in Sugar but when I attempt to do the same in Suite the deploy process just hangs with the circle going round and around. When I try to install the same module via the Module Loader it gets to 23% and then hangs.

I’ve tried setting the permissions as per Will’s comment on this post https://salesagility.com/forum/8-aos-5x/3241-install-stuck-on-23 but no luck.

I’ve run the upgrade test which reports everything is fine. I’ve done a quick repair.

No luck.

Any suggestions?

As a bit of background I’m using the AWS “SuiteCRM powered by Bitnami” image and I’ve upgraded this to 7.1.5.

Thanks

Tim

Hi Tim,

Are there any errors in your sugarcrm.log file? There should be no difference in deploying modules from SugarCRM CE to SuiteCRM.

Thanks,

Will.

Hi Will,

Thanks for getting back to me.

There was nothing in the sugarcrm.log but in the /opt/bitnami/apache2/logs/error_log I found this:

[Fri Feb 13 12:45:28.361536 2015] [proxy_fcgi:error] [pid 4371:tid 140148561843968] [client 81.130.202.20:46494] AH01071: Got error ‘PHP message: PHP Fatal error: Call to undefined method UserPreference::updateAllUserPrefs() in /opt/bitnami/apps/suitecrm/htdocs/ModuleInstall/ModuleInstaller.php on line 221\n\x10\x7f>\xe1v\x7f’, referer: http://ec2-54-17-18-41.eu-west-1.compute.amazonaws.com/index.php?module=ModuleBuilder&action=index&type=mb

Its odd because since I last posted I deployed a new bitnami Suitcrm image and tested the module deploy and it worked. I’ve restored my old db and made some other changes in studio to existing modules and now my new module won’t deploy again.

Any suggestions?

Thanks,

Tim

I just found this post that seems to be my issue:

https://suitecrm.com/forum/developer-help/2741-call-to-undefined-method-userpreference-updatealluserprefs#13961

I installed the “British Language file for SugarCE 5.0.0a” from http://www.sugarforge.org/frs/?group_id=78

Should I of installed a different pack/version?

Thanks,

Tim

Well in the end I read a post where someone said that the language pack should not overwrite certain folders, one of them containing the UserPreference.php file.

So in the end I just replaced this file with the original version from the installation zip and everything is working again.

Might be a good idea to warn Suite users not to install Sugar language packs as they do cause issues.

Cheers,

Tim