Elxis CMS Forum

Extensions => Components => Topic started by: speck on February 25, 2014, 19:53:01

Title: Re: IOSR extension package must be a zip file ...... [partially solved]
Post by: speck on February 25, 2014, 19:53:01
hi
during the installation of the extension iosr hotel, ios resevation give this error

IOSR extension package must be a zip file and your server set the correct MIME type!

package used wamp
application/zip zip in mime.types is configured.

ive tried to repack the extension iosr_hotels, but nothing, the error persist

how to solve???
thanks
Title: Re: IOSR extension package must be a zip file ......
Post by: webgift on February 26, 2014, 09:16:31
Hello!
As it seems the extension of installation package in not 'zip' OR the Mime Type of it is not one of the following: application/zip, application/x-zip, application/x-compressed, application/x-zip-compressed and multipart/x-zip.

Question: Have you modified the installation package?
Title: Re: IOSR extension package must be a zip file ......
Post by: speck on February 26, 2014, 10:11:17
No!
I've tried to repack the extension because also the original package gave always the same error.
Since I am a curious and i like to get a look how the great chief programm  :), this night after the great and victorious tank battles on line,  i've tried to disable this set of instruction in admin.php of IOSreservation
*************************
if (($filext != 'zip') || !in_array(strtolower($_FILES['package']['type']), array('application/zip', 'application/x-zip', 'application/x-compressed', 'application/x-zip-compressed', 'multipart/x-zip'))) {
         $link = $elxis->makeAURL('reservations:extensions/');
         $elxis->redirect($link, 'IOSR extension package must be a zip file and your server set the correct MIME type!', true);
      }
=======================
and i've installed the package sucessfully.
i looked also the configuration of apache and php in my local server and i saw some application/blablabla are not present (are in bold in the code prospect.
Title: Re: IOSR extension package must be a zip file ...... [partially solved]
Post by: datahell on February 26, 2014, 13:26:45
These lines is a security check (to prevent someone try to install a bad file renamed as zip).
Your browser doesn't set the proper mime type for zip package. This can happen for various reasons but mostly antivirus, modified browser signature/haders, and browser plugins. If I do the install it will be installed fine...
Title: Re: IOSR extension package must be a zip file ...... [partially solved]
Post by: bledi on February 26, 2014, 19:03:36
It happened the same thing to me when i installed it.
The same answer: IOSR extension package must be a zip file and your server set the correct MIME type!
I just tried with internet explorer, instead of Mozilla and Chrome and it went through. ;D
Title: Re: IOSR extension package must be a zip file ...... [partially solved]
Post by: datahell on February 26, 2014, 20:50:02
Personally I use Firefox and everything it is installed perfectly good.
So, it is not a matter of the browser itself but on something you have on the browser, like a plugin, a javascript blocking tool, a toolbar, something that manipulates browser headers, or something like that. Don't install bad things on your browser that track and log your visits or do other things without knowing them. Keep your browser clean! And especially, don't use browsers with bad and silly plugins installed on anything you do that includes money and personal information. The browser is a tool, not a game.
Title: Re: IOSR extension package must be a zip file ...... [partially solved]
Post by: webgift on February 27, 2014, 10:31:01
I confirm that the installation process of that package completed successfully with Firefox!