The PHP must have the zip extension enabled. Please contact technical support.

Hi,

When I try to export my grid report to excel, I get the message “The PHP must have the zip extension enabled. Please contact technical support.” …

Could you help??

Thanks and best regards
Mohamed

Did you deploy it on a server? My assumption is that your server is using a php that is compiled without zip compatibility.
So if you still need that on your server then you need to install that.
Check for example here: http://php.net/manual/en/zip.installation.php

indeed…It is working now…

Many thanks…

We have exactly the same problem, but we already have zip included in our PHP. Does anyone have any other suggestions? Thanks.

I assume you are running windows. If so then the answer is as follows:
download dependancy walker and with it open the php zip dll. You will see the dependant dlls that are needed. Likely you are missing one or more of those dll’s.

Hi rr

Many thanks for your response. The problem is on the production environment though, which is a Linux server. The Excel export runs OK in the development environment, which is Windows. Any further ideas re Linux?

You should have the error in your apache and/or php logs. Provided you did set your logging on of course. The logs usually show the best starting point to investigate further from.
In linux often the issue is a rights issue, if so then even that is visible in the logs.
I think you may not have enabled the zip extension, I read somewhere that it is not always delivered on every distribution. You should be able to find the .so file (which I guess it is).
Likely the files you need are here: https://pecl.php.net/package/zip but you should be able to see that in the logs…

That it runs properly in the dev environment under windows makes complete sense, scriptcase simply gives you a distribution with most needed packages with it.

Thanks, rr - all makes sense and your advice is appreciated. I checked the Apache logs but nothing useful was in there, even though it’s set to log E_ALL. We will carry on investigating about the zip extension though. It’s odd because the same export works on another server we have which in theory is the same configuration.

Well then it is easy, grab the settings files for apache and php from the other server and compare them with the first server.
Also take version numbers (php and apache) into account to compare including the versions of the .so/.exe etc…

We did an upgrade of Apache and the problem is now resolved. Thanks again for your suggestions rr.