Tuesday, May 5, 2009

I cannot install modules in SugarCRM

If you get the following error when you try to install a module in SugarCRM:

Specified directory '' for zip file 'cache/upload/upgrades/module/' extraction does not exist.

you can apply the following fix:

Open the directory where your SugarCRM is installed and go to include > utils.
Locate the file sugar_file_utils.php and open it for editing.
Comment the code on line 196:
return chmod($filename, $mode);

You can comment the code by putting // in front of it so that the code looks like:

//return chmod($filename, $mode);

Save the change and close the file.
From now on you should be able to install modules and language packs to your SugarCRM application without any problems.