After selecting files for upload into a CCK Filefield (image widget) and hitting "start upload" the upload does not finish and after saving the node I get two errors:
The file uploaded was not a valid zip file.
and
warning: Illegal offset type in isset or empty in /sites/all/modules/cck/content.module on line 1319.

No files are uploaded into the field.

My PHP doesn't have zip support installed. My drupal version is 6.22

Is this a server or a module issue?

Comments

mikeytown2’s picture

The error message "The file uploaded was not a valid zip file." only shows up if your have "Zip Files Only" selected for that widget; Let me guess, the error happened when you where using IE?

mikeytown2’s picture

Status: Active » Postponed (maintainer needs more info)
mikeytown2’s picture

Try again with the 1.2 version

gsbc’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I was able to reproduce the issue and trace it to the fact that the node type was passed as part of an array to imagefield_zip_save_and_extract_upload() from imagefield_zip_page_submit(). This passed the argument forward to content_types(), which expects a string.

It's been fixed with the patch from #1301878: Fix minor bugs, fix coder warnings, update documentation & readme

saulelis31’s picture

Status: Closed (fixed) » Needs review

It's the same problem with 1.2...

And no, I wasn't using IE. It's the same in all browsers

saulelis31’s picture

Is this patch to version 1.2?