Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedThe 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?
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commentedTry again with the 1.2 version
Comment #4
gsbc CreditAttribution: gsbc commentedI 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
Comment #5
saulelis31 CreditAttribution: saulelis31 commentedIt's the same problem with 1.2...
And no, I wasn't using IE. It's the same in all browsers
Comment #6
saulelis31 CreditAttribution: saulelis31 commentedIs this patch to version 1.2?