473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Cannot instantiate non-existent class

3
I am hosted on GoDaddy (Linux) and I am trying to use the ZipArchive php classes. I called GoDaddy technical support and asked if they supported the ZipArchive classes and they said yes. I cannot get it to work; I am down to a single line of code in a test file:

<?php $zip = new ZipArchive; ?>

Which fails with the following error:

Fatal error: Cannot instantiate non-existent class: ziparchive in /home/content/m/o/o/mooneleaf/html/flashcards/test.php on line 1

Does anyone know what can be causing this error? It works on my local server (xampp on Windows). GoDaddy says that if I can present evidence that it is an error on their servers, they will look into it. Also, I checked some config file (sorry don't remember the name, it is the web form...) and it says that zip support is enabled on my account... does that mean the ZipArchive libraries should be working?

Thanks for any answers or tips on how to proceed!
Sep 30 '07 #1
5 5425
ak1dnar
1,584 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. Fatal error: Cannot instantiate non-existent class: ziparchive in /home/content/m/o/o/mooneleaf/html/flashcards/test.php on line 1
Is this ziparchive class on "test.php" or in another file?
Sep 30 '07 #2
Lauxa
3
Expand|Select|Wrap|Line Numbers
  1. Fatal error: Cannot instantiate non-existent class: ziparchive in /home/content/m/o/o/mooneleaf/html/flashcards/test.php on line 1
Is this ziparchive class on "test.php" or in another file?
The ZipArchive class documentation is here:
http://www.php.net/zip
Oct 1 '07 #3
code green
1,726 Expert 1GB
The ZipArchive class documentation is here
Then go and read it.
The error seems to indicate that you have not included the file that contains this class you are using.
That is what alaxrand was trying to determine, but you chose not to answer.
Oct 1 '07 #4
Motoma
3,237 Expert 2GB
ZipArchive is a PECL extension, the most likely reason for receiving this error is that the extension is not installed on your server.
Oct 1 '07 #5
Lauxa
3
ZipArchive is a PECL extension, the most likely reason for receiving this error is that the extension is not installed on your server.
Thanks, Montoma, that's what I was thinking, too. I've sent another email to GoDaddy asking for confirmation that the ZipArchive is indeed supported on their servers and asking them to check that it is working correctly.

Does anyone know what it means that zip support is enabled? I see this when I run <? phpinfo(); ?> from a file on the server. You can see the full result at http://mooneleaf.com/flashcards/test2.php

Finally, does anyone have advice on how to extract zip files without the ZipArchive classes? I am not particularly attached to this method other than that I was able to get it working locally pretty quickly.

TIA for any help!!
Oct 1 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Giles Brown | last post by:
I'm feeling quite dumb this morning. I'm trying to build a COM server DLL using py2exe and it ain't working. Here's what ain't working... setup_dll.py based on py2exe sample: """from...
8
by: Carel Lotz | last post by:
H We have ported our VB 6 application into VB .NET but are still integrating with a few COM + applications written in VB6 running on our application server (Win 2000 Server). We have the proxies...
8
by: Vijay | last post by:
Hi all, Im using gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20) on 64bit linux server im trying to compile following code --------------------sam.cpp--------------------- #include...
9
by: the_grove_man | last post by:
I guess my question can go in two directions. I create applications that run multiple queries against a database. Generally speaking in the past I have used a Data Control (calling it dat1)...
4
by: Bobby C. Jones | last post by:
I'm trying to use some classes defined in a COM component that I did not create. I have successfully created the RCW via Tlbimp.exe and referenced it in my project. All is well until I run the...
6
by: Mariano | last post by:
Hi, I have stored a menu in a database. The menu is dynamically updated and last level menu items contain the object type that should be instantiated. I am looking for a way to instantiate the...
3
by: Paul | last post by:
Hi, I'm new to .NET and I'm trying to run through the tutorial "Creating a Web Application Using VB" As I follow the directions, It seems to work just fine. I can preview the data from the...
7
by: Brian Kitt | last post by:
I frequently get the above error on my website. It happens only for short periods of times, then the error goes away. I cannot recreate this. I have an error trap that picks up this error. When...
4
by: jdhavo | last post by:
Just a quick question. Does this mean that an XmlTextWriter cannot be used in a webservice? Is there some special coding required to use this class?
4
by: Tomas | last post by:
A newbie question: How can I instantiate objects dynamically in VB.NET. E.g. I have the object 'Player' and I would like to instantiate it with the several instances (James, Gunner, etc.), without...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.