Module Loader: Error Specified directory '' for zip file 'upload://ptb.zip' extraction does not exist.

Hi dear,
A few days ago I am facing serious problems with my installation CRM suite, where when trying to install a Portuguese language pack from Brazil that shows the following error:

Specified directory ‘’ for upload zip file: // zip.zip 'there is no extraction.

The log file contains the following information:

Tue Dec 27 04:27:08 2016 [90370] [1] [FATAL] ERROR: can not write to upload directory
Tue Dec 27 04:27:08 2016 [90370] [1] [FATAL] Exception in Controller: Invalid Package
Tue Dec 27 04:27:24 2016 [90410] [1] [FATAL] ERROR: can not write to upload directory
Tue Dec 27 04:27:24 2016 [90410] [1] [FATAL] Exception in Controller: Invalid Package
Tue Dec 27 04:27:48 2016 [88724] [1] [FATAL] ERROR: can not write to upload directory
Tue Dec 27 04:27:48 2016 [88724] [1] [FATAL] Exception in Controller: Invalid Package
Tue Dec 27 04:28:40 2016 [90455] [1] [FATAL] ERROR: can not write to upload directory
Tue Dec 27 04:28:40 2016 [90455] [1] [FATAL] Exception in Controller: Invalid Package
Tue Dec 27 04:31:47 2016 [90370] [1] [FATAL] ERROR: rmdir_recursive (): argument is not a file or a dir.

In the research done in the forums have tried to change the config.php file as follows:

‘’ Default_permissions’ =>
Array (
‘Dir_mode’ => 1528,
‘File_mode’ => 493,
‘User’ => ‘’,
‘Group’ => ‘’,
),

for:

‘Default_permissions’ =>
Array (
‘Dir_mode’ => 1528,
‘File_mode’ => 432,
‘User’ => ‘’,
‘Group’ => ‘’,
),

or even:

‘Default_permissions’ =>
Array (
‘Dir_mode’ => 1528,
‘File_mode’ => 420,
‘User’ => ‘’,
‘Group’ => ‘’,
),

I tried to change the include file / utils / sugar_file_utils.php

from:

If (isset ($ mode) && $ mode> 0) {
Return @chmod ($ filename, $ mode);

for:

If (isset ($ mode) && $ mode> 0) {
Return true; // @ chmod ($ filename, $ mode);

I made contact with my hosting that tells the suitecrm is trying to write to the / tmp directory and that it is not allowed to write anything in the directories below the site.

Without success the same message.

I ask you earnestly to help me as this is turning a great torment.

Already grateful that I am waiting for an urgent response

I would check that all your file permissions are correct as it seems they currently cant write to the appropriate files
Tue Dec 27 04:28:40 2016 [90455] [1] [FATAL] ERROR: can not write to upload directory

If you still are having some issues try get in contact with the vendor who may be horus depending on where you got the package as they will be able to provide the best help :slight_smile:

It’s been a long time since the last answer, but I just fixed my installation by creating a folder named “temp” inside upload/upgrades.

so now, upload/upgrades has the following folders inside

full
langpack
module
patch
temp
theme

today had to reinstall the system, I noticed that the error showed up again.
there was also another missing folder at ./cache/upgrades/temp

because of some permission error, the system is unable to create those temp directiores where the module contents are extracted.

after I created those folders by hand ( cache/upgrades/temp and upload/upgrades/temp ), chmod’ed 775 I no longer had any module extraction problems, even after a clean install.

my server is running apache2 with nginx as a reverse proxy, suitecrm 7.10.

1 Like

Thank you very much! It was the good solution. I could install a new language pack.