Closed (won't fix)
Project:
Acidfree Albums
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
31 Aug 2007 at 09:54 UTC
Updated:
1 Jan 2011 at 02:55 UTC
I`m try to upload a few images packed in zip.
Following message is appier - "failed to import 'xxx.zip' (could not extract archive)"
I used native zip and windows zip - it doesnt mater - result is the same.
What problem is?
Thank You!
Comments
Comment #1
JimmyMoonJam commentedSame problem here. I'm pretty sure I tested zip upload earlier when i tried the Acidfree for the first time after installing it. It worked then. Now it doesn't and I have no clue why not. Tried different variations of packages, also tried to disable some of those modules below.
Here are some test results.
Installed for Acidfree:
Views: views-5.x-1.6.tar.gz
Image: image-5.x-1.4.tar.gz
Acidfree: acidfree-5.x-1.x-dev.tar.gz
Modules enabled:
Tracker 5.2 Enables tracking of recent posts for users. Depends on: Comment (enabled)
Upload 5.2 Allows users to upload and attach files to content.
Image 5.x-1.4 Allows uploading, resizing and viewing of images. Required by: Acidfree (enabled), Image Attach (enabled), Image Gallery (enabled), Image Import (enabled)
Image Attach 5.x-1.4 Allows easy attaching of image nodes to other content types. Depends on: Image (enabled)
Image Gallery 5.x-1.4 Allows sorting and displaying of image galleries based on categories. Depends on: Image (enabled), Taxonomy (enabled)
Image Import 5.x-1.4 Allows batches of images to be imported from a directory on the server. Depends on: Image (enabled)
Acidfree 5.x-1.x-dev A simple unified media management module for Image and Video modules Depends on: Taxonomy (enabled), Views (enabled), Image (enabled)
Filemanager 5.x-1.x-dev Adds support for a managed file repository for other modules.
IMCE 5.x-1.0 An image/file uploader and browser supporting personal directories and user quota.
Taxonomy Access Control 5.x-1.1 Access control for user roles based on taxonomy categories. Depends on: Taxonomy (enabled)
TinyMCE 5.x-1.9 The most popular WYSIWYG editor for advanced content editing.
Views 5.x-1.6 The views module creates customized views of node lists. Required by: Acidfree (enabled), Views RSS (enabled), Views Theme Wizard (enabled), Views UI (enabled)
Views RSS 5.x-1.6 RSS plugin for the views feed selector argument. Depends on: Views (enabled)
Views Theme Wizard 5.x-1.6 The views theme wizard helps create stub theming for views. Depends on: Views (enabled)
Views UI 5.x-1.6 The Views UI module allows you to create and edit views. Depends on: Views (enabled)
* * *
Trying to import with 'Mass Import' 2 images with Admin account.
Files compressed as followed (Right click on top of files -> add to archive).
WinRAR - Rar - no special selections:
* file basic_winrar.rar is not a valid acidfree element type (safe_mode)
* failed to import 'basic_winrar.rar'
WinRAR - Zip - no special selections:
failed to import 'basic_winrar.zip' (could not extract archive)
7-zip - Tar - no special selections:
* file basic_7-zip.tar is not a valid acidfree element type (safe_mode)
* failed to import 'basic_7-zip.tar'
7-zip - Zip / compression method: deflate / Multi-threading: on / Encryption: none
failed to import '7-zip_deflate_multi.zip' (could not extract archive)
7-zip - Zip / compression method: deflate / Multi-threading: off / Encryption: none
failed to import '7-zip_deflate_no_multi.zip' (could not extract archive)
7-zip - Zip / compression method: bzip2 / Multi-threading: on / Encryption: none
failed to import '7-zip_bzip2_multi.zip' (could not extract archive)
* * *
Then tried to disable all these moduls at once:
Tracker
Upload
Image Attach
Image Gallery
Image Import
Filemanager
IMCE
Views RSS
Views Theme Wizard
Views UI
..and tried to upload "zip_bzip2_multi.zip" and "basic_7-zip.tar".
Did not help :(
Comment #2
eMPee584 commentedsame problem here: I can't mass upload anything...
how far along is a v6 version of this? how can we help to solve this issue?
Comment #3
smithwib commentedI've just installed acidfree, am hosting the site on Windows/IIS6, have all the pre-requisites installed + FileManager, and am getting similar errors when trying to upload a single image or a zip. If a single image, the image is saved and I get:
warning: shell_exec() [function.shell-exec]: Unable to execute 'file -biN "c:\windows\temp\tmp700.tmp"' in C:\www\docs\modules\acidfree\acidfree.module on line 2145.
and if a zip, I get no images saved, the above error, plus:
warning: system() [function.system]: Unable to fork [unzip -qq c:\windows\temp\tmp700.tmp -d c:\windows\temp\mas701.tmpa6eddbd1] in C:\www\docs\modules\acidfree\acidfree.module on line 1599.
I've looked through these newsgroups and on the web, but I'm not seeing a straightforward step-by-step to resolve it. The lines mentioned are:
$ret = explode(' ', trim( `file -biN $f` ));
and
system($cmd); where cmd appears to be "unzip -qq {$file->filepath} -d %aftmpdir"
I am wondering if there are additional configuration steps required to let php know how to deal with these UNIX oriented functions. Any help is appreciated.
Comment #4
H3rnand3z commentedDoes the server have unzip? if not get it here http://www.info-zip.org/UnZip.html
Comment #5
mwheinz commentedAcidfree must be able to access the system() function to unzip archives.
Closing. 3 years since last activity.