Author Topic: Can't unzip files  (Read 3468 times)

Tide

  • Newbie
  • *
  • Posts: 5
    • View Profile
Can't unzip files
« on: April 03, 2009, 10:44:07 am »
I have uploaded a zip file.  When I click on the extract icon I get this error with DEBUG turned on :
Code: [Select]
Caught Exception in AutoLoader: exception 'Exception' with message 'Could not find class file for "ZIPARCHIVE"'
 in /home/xxxx/opengoo/environment/classes/AutoLoader.class.php:105 Stack trace:
#0 /home/xxxx/opengoo/environment/classes/AutoLoader.class.php(111):
AutoLoader->loadClass('ZIPARCHIVE') #1 /home/xxxx/opengoo/application/functions.php(33):
AutoLoader->loadClass('ZIPARCHIVE') #2 /home/xxxx/opengoo/application/controllers/FilesController.class.php(1652):
__autoload('ZipArchive') #3 /home/xxxx/opengoo/environment/classes/controller/Controller.class.php(75):
FilesController->zip_extract() #4 /home/xxxx/opengoo/environment/classes/controller/PageController.class.php(62):
Controller->execute('zip_extract') #5 /home/xxxx/opengoo/environment/classes/Env.class.php(133):
PageController->execute('zip_extract') #6 /home/xxxx/opengoo/init.php(146):
Env::executeAction('files', 'zip_extract') #7 /home/xxxx/opengoo/index.php(9):
require('/home/xxxx/open...') #8 {main}

I believe I have zip enabled for php.  Here is the configure statement for the box :
Code: [Select]
[root@host public_html]# php -i |grep mb Configure Command =>
'./configure' '--disable-pdo' '--enable-bcmath'
'--enable-calendar' '--enable-ftp' '--enable-libxml'
'--enable-magic-quotes' '--enable-mbstring'
'--enable-sockets' '--enable-zip'
'--prefix=/usr/local'
'--with-apxs2=/usr/local/apache/bin/apxs' '--with-gd'
'--with-imap=/opt/php_with_imap_client/'
'--with-imap-ssl=/usr' '--with-jpeg-dir=/usr'
'--with-kerberos' '--with-libxml-dir=/opt/xml2/'
'--with-mysql=/usr'
'--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6'
'--with-zlib' '--with-zlib-dir=/usr' xmlrpc_error_number =>
0 => 0 mbstring Multibyte string engine => libmbfl mbstring extension
makes use of "streamable kanji code filter and converter", which is
distributed under the GNU Lesser General Public License version 2.1.
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off mbstring.func_overload =>
0 => 0 mbstring.http_input => pass => pass mbstring.http_output =>
pass => pass mbstring.internal_encoding => ISO-8859-1 => no value
mbstring.language => neutral => neutral mbstring.strict_detection =>
Off => Off mbstring.substitute_character => no value => no value

I am running : Apache 2, PHP 5.2.6, Mysql 4.1.22

Any ideas on what it could be?

Tide

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Can't unzip files
« Reply #1 on: April 08, 2009, 03:03:25 pm »
Well it turns out I had two versions of PHP running on my box.  My websites were using an older version and command line was showing the most recent version.  Really strange!  I use a hosting company for my VPS.  They finally noticed the two versions and got it cleaned up.