Page 1 of 1

Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 6:12 pm
by Topsecret
Beste medegebruikers,

Ik heb het volgende probleem bij de host van een klant.
De Extension Settings for ZIP staan uit.
Deze worden om veiligheidsredenen ook niet aangezet, kreeg ik te horen. Zelf wil de klant ook niet verhuizen naar een andere host.

Hoe kan ik dit bij de installatie omzeilen?
Ik weet wel dat ik een reeds geïnstalleerde OpenCart versie kan kopieren en dan de config.php in de root en admin moet aanpassen. Maar dit is niet echt een oplossing want ik moet dan ook handmatig de database uploaden.
pre-instal.jpg

pre-instal.jpg (63.54 KiB) Viewed 10214 times


Re: Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 6:14 pm
by fido-x
This is not an OpenCart issue, this is a server issue. Contact your host and get them to provide zip support in the server.

Re: Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 6:17 pm
by Topsecret
Dear Fido-x,

The host doesn't want to change the PHP extension settings due to security reasons, what they told me.

Re: Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 6:29 pm
by fido-x
Then, I suggest you change hosts. As stated, this is not an OpenCart issue, but a hosting issue.

I know this isn't much help, but anybody else will tell you the same thing.

Re: Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 6:56 pm
by fido-x
Just had a thought. The installation process could be modified so that it doesn't check for the zip extension on the server. This would then allow the installation to proceed.

Which version of OpenCart are you using?

Re: Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 7:49 pm
by Topsecret
Hi Fido-x

I know that you can manipulate the installation as the zip extension is not really needed. I just wonder which file I have to adjust. Using OC 2.3.0.2.

Re: Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 8:02 pm
by fido-x
The validation code is in install/controller/install/step_2.php, lines 146 to 148:

Code: Select all

if (!extension_loaded('zip')) {
	$this->error['warning'] = $this->language->get('error_zip');
}
Just comment these lines, like so:

Code: Select all

//if (!extension_loaded('zip')) {
//	$this->error['warning'] = $this->language->get('error_zip');
//}
or remove them. Your choice. That should resolve your issue.

Re: Warning: ZIP extension needs to be loaded...

Posted: Thu Oct 20, 2016 10:33 pm
by Johnathan
There's also a quick fix mod that allows you to use local filecopy, so it doesn't need FTP. That might work for you:

https://www.opencart.com/index.php?rout ... n_id=18892

Re: Warning: ZIP extension needs to be loaded...

Posted: Fri Oct 21, 2016 1:14 am
by Topsecret
All you guys.
Thanks for your support.
I'll give it a try tomorrow. Right now it's way past bed time (midnight) in Bangkok.

For Fido-x: I must have overlooked: install/controller/install/step_2.php, lines 146 to 148:


For you all: Keep on the good work...