Fatal error: Class 'ZipArchive' not found
Posted by: rehanazher (---.MCS)
Date: June 04, 2009 06:48AM

Hi All,

May be there is old thread on this topic but I wan unable to find the same. So posting the question here:

I am using Codeplx PHPExcel class which requires php_zip extension to be enabled. I enabled the extension from PHP Extension menu and service restarted.

Now when I compile a page which requires: ZipArchicve I get following error:

Fatal error: Class 'ZipArchive' not found in D:\Documents and Settings\Administrator\Desktop\PHPExcel-27799\Classes\PHPExcel\Writer\Excel2007.php on line 279

I did restarted the service twice again. I checked the php.ini , the zip extension is enabled there also.

Can any one help me in this regard. What I am doing wrong.

Thanks and best regards,

Options: ReplyQuote
Re: Fatal error: Class 'ZipArchive' not found
Posted by: toumimi (---.14.115-78.rev.gaoland.net)
Date: June 04, 2009 10:24AM

Hi,

I just enabled php_zip extension using php menu and I used this simple code :
$archive = new ZipArchive();
var_dump($archive);

It worked for me.
Try phpinfo() on your localhost homepage and verify that you got a section [zip],
which is different of section [zlib]...

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Fatal error: Class 'ZipArchive' not found
Posted by: yfastud (Moderator)
Date: June 04, 2009 01:42PM

Quote

D:\Documents and Settings\Administrator\Desktop\PHPExcel-27799\Classes\PHPExcel\Writer\Excel2007.php
your php file is outside document root???

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Fatal error: Class 'ZipArchive' not found
Posted by: rehanazher (119.234.10.---)
Date: June 04, 2009 06:11PM

Hi,

Thanks for the replys, basically I was using Nusphere PHPEditor to compile my webpage andNEsphere has its own PHP installed, I edited the correct php.ini and now its working.

Options: ReplyQuote
Re: Fatal error: Class 'ZipArchive' not found
Posted by: chifhul (---.static.118-96-64.astinet.telkom.net.id)
Date: November 01, 2010 03:04AM

hi, i just join this forum

i have same problem,

Fatal error: Class 'ZipArchive' not found in C:\Inetpub\wwwroot\cwk\lib\PHPExcel\PHPExcel\Writer\Excel2007.php on line 226

what must i check for this problem ?

@rehanazher: what must i edit in php.ini ?


thanks for all.

Options: ReplyQuote
Re: Fatal error: Class 'ZipArchive' not found
Posted by: yfastud (Moderator)
Date: November 02, 2010 02:30PM

Inetpub is for IIS so you have disable IIS for this wamp to work

IIS (Internet Information Services ) and Apache/Wamp are both web server and might conflict in some way, so you have to disable IIS in order for Wamp to work

Disable IIS in Vista/W7:

Control Panel, Uninstall Programs, Turn Widows Features On or Off, uncheck Internet Information Services

Disable IIS in XP:

Control Panel, Add/Remove Programs, Add/Remove Windows Components, uncheck Internet Information Services (IIS)

Restart computer, then restart Wamp

Also, in folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else

127.0.0.1 localhost

If using Skype, open Skype > Tools > Options > Advanced > Connection uncheck "use port 80..." restart Wamp then Skype

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Fatal error: Class 'ZipArchive' not found
Posted by: cherine (41.104.33.---)
Date: November 07, 2010 02:26PM

decomment this ligne in php.ini
extension=php_zip.dll

Options: ReplyQuote


Sorry, only registered users may post in this forum.