Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: speck on September 28, 2012, 11:31:45

Title: Error: Elxis package must be a ZIP compressed file! [SOLVED]
Post by: speck on September 28, 2012, 11:31:45
I've tried to instal in local mod_latestarticles_1.0.zip

Elxis gives this error:

An Elxis package must be a ZIP compressed file!  ??? ??? ???

I've tried to install in local other new extensions too, but nothing... always the same error,

form EDC the inslall works right
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: datahell on September 28, 2012, 12:51:00
You get this warning on this particular extension or on any extension you try to install by file upload?
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: speck on September 28, 2012, 13:22:17
Yes.
I've downloaded some your new extension from EDC to study them for convert some my extensions.
When i've tried to install (upload and install) your esxtensions direclty from pc, elxis gave me that error.
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: babis1 on September 28, 2012, 13:41:42
i test that in online elxis installation and i haven't problem
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: speck on September 28, 2012, 15:15:36
installing from EDC there aren't error
the error happen when install the file zip from pc .

(http://i46.tinypic.com/20usbqw.jpg)

Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: webgift on September 28, 2012, 15:18:00
Can you please speck send us the package that you are trying to install?
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: datahell on September 28, 2012, 20:12:00
He said that it is for any extension downloaded from EDC.
I will check it right nor for possible bugs and reply again.

EDIT.
Do this test.
Open components/com_extmanager/controllers/install.php
Go to line 255
Change this:
if (($filext != 'zip') || !in_array($_FILES['package']['type'], array('application/zip', 'application/x-zip', 'application/x-zip-compressed'))) {
To this:
if (($filext != 'zip') || !in_array($_FILES['package']['type'], array('application/zip', 'application/x-zip', 'application/x-zip-compressed', 'application/octet-stream'))) {

Re-try to install something.
If it fails, change line 255 to this:
if ($filext != 'zip') {
Try again.

Tell me which method worked for you.
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: mgrc on September 28, 2012, 23:47:08
I was able to reproduce this and second solution works. First one gives same error.
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: datahell on September 29, 2012, 00:00:37
OK, I will remove the mime type check and leave only the extension check.
Thanks for the report.
Title: Re: Error: Elxis package must be a ZIP compressed file!
Post by: speck on September 29, 2012, 01:16:39
Confirm.
second solution works.