Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started 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
-
You get this warning on this particular extension or on any extension you try to install by file upload?
-
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.
-
i test that in online elxis installation and i haven't problem
-
installing from EDC there aren't error
the error happen when install the file zip from pc .
(http://i46.tinypic.com/20usbqw.jpg)
-
Can you please speck send us the package that you are trying to install?
-
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.
-
I was able to reproduce this and second solution works. First one gives same error.
-
OK, I will remove the mime type check and leave only the extension check.
Thanks for the report.
-
Confirm.
second solution works.