Hi,
first of all: thanks for doing this! Some kind of SCORM integration for Drupal is vital to expand into the e-learning marked, and your approach with a SCORM CCK field to a node seems to me to be a very good way to adress this!
However, the browser throws this error at me when I try to upload a .zip file:
The page at http://localhost:8888/ says:
An HTTP error 0 occurred.
/twat/?q=filefield/ahah/page/field_sco/0
I've searched around a bit and it seems many had this bug with Filefield earlier, but most issues are from around 2008, and seems to be resolved now. I also added a normal filefield to my node and successfully uploaded the same SCORM file to that without the error, so it's not related to file size or memory (as seemed to often be the case with the earlier Filefield errors).
When I examine my php_error.log I get this:
[06-Sep-2010 13:11:07] PHP Fatal error: Class 'ZipArchive' not found in /Applications/MAMP/htdocs/twat/sites/all/modules/cck_scorm/SCORM.module on line 1255
Using OS/X and Chrome / Firefox, and have tried with several SCORM packages (and also zip files that aren't SCOs..)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | cck_scorm_903414.patch | 1.25 KB | reswild |
Comments
Comment #1
dirk.westrup commentedHi,
at first: Thanks for using our CCK SCORM Module.
In line 1255 of the SCORM.module file we are using the ZipArchive class (http://www.php.net/manual/en/book.zip.php) to extract the SCORM package. The error message indicates, that your system can't find this class. Since PHP 5.2.0 the zlib functions are used (http://www.zlib.net/).
We have not tested the module on a Mac OS X server system. Which web server and configuration do you use? For example the XAMPP for Mac should include PHP with zlib extension (http://www.apachefriends.org/de/xampp-macosx.html).
Comment #2
vegardjo commentedYou are right, I'm using MAMP and it seems it's a bit of a PITA to get the zlib extension working there (even though it should be enabled) - got passed this step on a Linux box!
Comment #3
dirk.westrup commentedIssue closed. Configuration problem solved.
Comment #4
janusman commentedIf your module has any particular needs you *really* should check for those in the .install file; see hook_requirements() in the Drupal API for usage and examples. This way site admins are properly informed of what is needed to make a module work.
Comment #5
maddy121 commentedI'm testing this module for my e-learning website and am receiving this error.
An HTTP error 0 occurred.
/filefield/ahah/lesson/field_scorm/0
I checked my configuration on php and zlib is installed. It starts uploading correctly and then right at the end at around 98%, the browser shows this error message.
All the other file field uploads on the site are working, so it probably something with this module. No idea how to resolve it.
Thanks
Comment #6
reswild commentedI'm testing out this module on a shared server without zip support, so I wrote a quick patch to make it work with the pclzip library.
For the patch to work, you'll have to first download pclzip from http://www.phpconcept.net/pclzip, and upload it to sites/all/libraries/pclzip/.
If neither ZipArchive or pclzip can be found, the patch adds an error message about this when you try to upload a file.
Comment #7
dirk.westrup commentedComment #8
pgerling commentedThanks a lot for your help, I added your patch into the latest release.
Philipp