Advertisement:

Author Topic: Unzip failed  (Read 7115 times)

kamran_dotnet

  • Newbie
  • *
  • Posts: 16
Unzip failed
« on: October 08, 2013, 03:09:04 pm »
hi
when i download any plugin from market it say: "Unzip failed"
even i cant download languages
this is my .htaccess in osclass folder:
Code: [Select]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bazar/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /bazar/index.php [L]
</IfModule>


_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Unzip failed
« Reply #1 on: October 09, 2013, 10:20:47 am »
Hi this has nothing to do with htaccess file.

Could you check the permissions of the folders oc-content/plugins oc-content/languages ? they should be writable

kamran_dotnet

  • Newbie
  • *
  • Posts: 16
Re: Unzip failed
« Reply #2 on: October 09, 2013, 01:36:34 pm »
they both are 755
even download folder is 755
i change them to 777 and still not work!

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Unzip failed
« Reply #3 on: October 09, 2013, 01:50:29 pm »
Please, check also permissions on oc-content/downloads and also, create a folder inside called oc-temp (also writable)

kamran_dotnet

  • Newbie
  • *
  • Posts: 16
Re: Unzip failed
« Reply #4 on: October 09, 2013, 11:42:09 pm »
they both available before and they both are 777

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Unzip failed
« Reply #5 on: October 10, 2013, 11:10:36 am »
Then I'm not sure what is happening.

The zips are known to work, since no other user has complained.
If the folders has the correct permissions... I'm not sure what could be happening.

You could download the zips manually and upload them to your installation

kamran_dotnet

  • Newbie
  • *
  • Posts: 16
Re: Unzip failed
« Reply #6 on: October 10, 2013, 03:08:01 pm »
something could happen in server?

jcads01

  • Newbie
  • *
  • Posts: 2
Re: Unzip failed
« Reply #7 on: October 31, 2013, 09:40:45 pm »
I have just signed up. My permissions on the three files and install directory are all a+w but the upgrades constantly say can't unzip.

Thank you

John

jcads01

  • Newbie
  • *
  • Posts: 2
Re: Unzip failed
« Reply #8 on: October 31, 2013, 09:51:02 pm »
I have just tried two plugins manually.

the Payment system failed
Real Estate Attributes worked

Please help, I believe PayPal must be in the Payment System. I have others and themes I wish to install but will await a response.

Thanks,

SteveJohnson

  • Sr. Member
  • ****
  • Posts: 328
  • Golden tip - Clear your cache :|
Re: Unzip failed
« Reply #9 on: October 16, 2015, 08:36:54 pm »
Just installed a fresh copy of osclass and can't install the Spanish language pack. It says can't Unzip.
This did not happen last week when i was testing the app.
All file permissions are in place.

SteveJohnson

  • Sr. Member
  • ****
  • Posts: 328
  • Golden tip - Clear your cache :|
[Solved]Re: Unzip failed - solution in php.ini
« Reply #10 on: October 17, 2015, 01:05:33 am »
Ok, solved!
I'm not sure what exactly happened, but i deleted my DigitalOcean droplet, and created a new one.
This time i manually changed the file permissions from FIleZilla. I changed the folders "downloads, uploads,languages" to 777, and also checked this is applied to their sub files.

It works now. I guess the issue was file permissions.
(a small doubt - is changing these files to 777 insecure???)
« Last Edit: October 21, 2015, 12:20:09 am by stevejohnson »

Aficionado

  • Guest
Re: Unzip failed
« Reply #11 on: October 17, 2015, 03:50:26 am »
Ok, solved!
I'm not sure what exactly happened, but i deleted my DigitalOcean droplet, and created a new one.
This time i manually changed the file permissions from FIleZilla. I changed the folders "downloads, uploads,languages" to 777, and also checked this is applied to their sub files.

It works now. I guess the issue was file permissions.
(a small doubt - is changing these files to 777 insecure???)

Of cource. the "777" means that you have no idea what you are doing.

The permissions should be set default by your hoster, and they are 644 for files and 755 for folders.

« Last Edit: October 17, 2015, 03:55:32 am by Aficionado »

SteveJohnson

  • Sr. Member
  • ****
  • Posts: 328
  • Golden tip - Clear your cache :|
Re: Unzip failed
« Reply #12 on: October 19, 2015, 09:34:29 pm »
Ok, solved!
I'm not sure what exactly happened, but i deleted my DigitalOcean droplet, and created a new one.
This time i manually changed the file permissions from FIleZilla. I changed the folders "downloads, uploads,languages" to 777, and also checked this is applied to their sub files.

It works now. I guess the issue was file permissions.
(a small doubt - is changing these files to 777 insecure???)

Ok.

Of cource. the "777" means that you have no idea what you are doing.

The permissions should be set default by your hoster, and they are 644 for files and 755 for folders.

Indeed they are 644 for files and 755 for folders. And yet Osclass is not able to access it the way it should. I changes all the directories and folders to 644 and 755, but there still seems to be something not right. The "update OsClass" shows this message -

"Your Osclass installation can't be auto-upgraded. Files and folders need to be writable. You can apply write permissions via SSH with the command "chmod -R a+w *" (without quotes) or via an FTP client, it depends on the program so we can not provide more information. You can also upgrade Osclass by downloading the upgrade package, unzipping it and replacing the files on your server with the ones in the package."

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Unzip failed
« Reply #13 on: October 19, 2015, 10:38:41 pm »
Hi,

Your 'FTP' user is able to write to these folders but your installation is unable to write to the same folders.
Like Aficionado mentioned, this means that the 'user' used by your installation (your webserver user) is unable to write to these folders somehow and thus something for your Hoster to help you with since you will not be able to change this yourself unless you are on a VPS or dedicated server.


Regards,
Eric

SteveJohnson

  • Sr. Member
  • ****
  • Posts: 328
  • Golden tip - Clear your cache :|
Re: Unzip failed
« Reply #14 on: October 19, 2015, 11:14:33 pm »
Hi,

Your 'FTP' user is able to write to these folders but your installation is unable to write to the same folders.
Like Aficionado mentioned, this means that the 'user' used by your installation (your webserver user) is unable to write to these folders somehow and thus something for your Hoster to help you with since you will not be able to change this yourself unless you are on a VPS or dedicated server.


Regards,
Eric

Hello, yes i am using a VPS (DigitalOcean), and i have tried to change the permissions using chmod too (i have the root access). I'm not sure why is this happening..
« Last Edit: October 19, 2015, 11:32:56 pm by stevejohnson »