Hello,
I've got a problem with acidfree. When i try to upload an image to one of my galleries (no matter which) the image is correctly transferred to the working directory but it is not transferred to the active directory, so it won't be displayed in the gallery. The "article" is visible under content in the admin menu. I tried everything with the directories because i thought it might be a problem with the permissions. I just don't know what to do right now. There is also no error displayed in the logs and theres also no sign off the added picture there.
I have to add that i do not have root access to the server and that i tried it on my own server (Windows/Xampp) which is working without a problem.
I hope someone can help me.
If you need some more information about the problem, let me know.
Greetings,
Brezel
Comments
Comment #1
vhmauery commentedgalleries? acidfree doesn't have galleries. It has albums. Just so we aren't mistaken about G2.
are you using the latest version of acidfree? what does acidfree/test show? are you using the latest version of filemanager?
Comment #2
Brezel-1 commentedI am currently using the latest (non cvs) versions of filemanager and acidfree. You are right about albums! I don't use G2.
acidfree/test gives:
I also don't exceed any of the maximums!
Comment #3
Brezel-1 commentedI wanted to add that i tried using the attachment module, which uses filemanager to upload files works without any problems.
Comment #4
vhmauery commentedAre you using a node_access module like organic groups or node privacy by role? when you go to the acidfree main page (http://mysite.dom/acidfree) does anything show up? Have you tried viewing the albums as user 1? From the admin content view, can you click on the node and view it that way?
Since there are no errors showing up, this smells like a node_access/configuration problem. But that is just my guess at this point.
Comment #5
Brezel-1 commentedI don't use any node_access modules. When i go to the main acidfree page i do see the albums i created (but i can't add content pictures to them). Up to now i tried everything as user 1. From the admin content view i can click the node but there is no picture in it.
Its always the same problem. When i try to upload an image to an acidfree album it is uploaded to my "working/0" directory and added to the file table of my database as a file in working space, but nothing else happens. It is not moved to my active files area and i just don't know why because i don't get any log entries even though the node is added (again always without a picture).
I have also tried public and private download method (i don't know if that has any effect normally) but without success.
Comment #6
vhmauery commentedI still am not sure what the problem might be. You might want to try again with the latest package of code. Are there any more symptoms that might be useful? Are there any useful errors in the apache logs? Could it be possible that you are using more than 8 MB of memory? I am not sure how much memory GD requires for image manipulation, but it is considerably more than the size of your jpg files.
Have you tried with the imagemagick toolkit or imagick toolkit? Just trying to figure out what the breaking point is.
Comment #7
Brezel-1 commentedWith the new versions i now get different errors:
While trying to add a photo.
and the according apache error:
The problem is that the files are searched for in /files/active/1 but they do exist in /files/active/0
Those errors i do get with pictures smaller than the medium image size in both my hosted (shared) account and on my own local server (XAMPP on Windows with PHP 4.4.0)
On my hosted account i now get a memory error when i try to upload pictures bigger than medium image size.
At the moment it would be enough for me if i could upload files smaller than medium image size in order to avoid the memory excess error.
Greets,
Brezel
Comment #8
vhmauery commentedIf it is giving you the wrong directory number 1 instead of 0, it sounds like a filemanager problem -- Acidfree gets all its paths via the filemanager API. Do you have the latest filemanager version installed?
As for the memory limits, you can upload a smaller image if you want -- there is now a setting that lets you throw away your full sized image (which would make sense if it is the same size as your small image). This way you can save disk space too.
Comment #9
hostile commentedI'm having the same issue as well, with nearly the same description.
Here is my /test output:
I then get the following errors for a single image:
Everything seems to work, except the image being uploaded. I have checked the apache logs and the watchdog logs, and they report no errors.
The filemanager module seems to be functioning just fine. I have a files/ dir which is world-writeable, and my private/ dir is also the same (for the sake of troubleshooting this issue).
The grey image placeholder box is created, as is the node for the image, it's just that the image is not uploaded.
If there is anything else I can give you, I'd appreciate it, as I'm starting to get a little exasperated.
Regards,
- HoSTiLe -
Comment #10
Brezel-1 commentedIf you don't use the filemanager patch then the upload works but you will not be able to use private uploads.
Now i have another problem.
In acidfree options for videos i have set that i want to upload a user defined thumbnail. When i try uploading videos i add a picture wich shall be the thumbnail. This picture is then resized to the correct thumbnail resolution and then showed on the album (this works flawlessly). When i click on that thumbnail it then shows the video, but in the wrong aspect ratio. The ratio used is that of the uploaded thumbnail image and not the ratio of the video. In this case the video is a QTVR panorama and the thumbnail picture is therefore much wider then the video because it shows the whole panorama.
The memory error remains. Is there a way to see how much memory is taken up by a certain php command (for instance imagejpeg)?
Comment #11
vhmauery commentedhostile,
you might want to check to see that your filemanager private path is within your drupal files path. If it is not, the private uploads will not work. Are the errors you see when you upload a private image or a public one?
Brezel,
The image you upload as a thumbnail should be an original frame of the video -- not resized at all. Acidfree will resize the image to make the thumbnail. Acidfree uses this frame to determine the resolution of the video.
Comment #12
hostile commentedThat was it. I created private/ in the document root. I didn't read/realise/understand that it had to be in files/.
It works fine now.
Thank you very much for the help!
:)
Comment #13
Ilkka commentedSadly this didn't solve my problem. I just reinstalled Drupal 4.6.3 from scratch, then the Filemanager module, then Acidfree as instructed, patching and all.
What I did was create one subalbum under the root, then try to upload an image into that. When uploading I get the same messages as Brezel in message #7 of this thread. What happens is that all the images end up in active/0, but e.g. the subalbum thumb <img> tag points to active/1.
Looking in the database, in the "file" table, all images have a "directory" column value of 1 *except* the large version of the first image I upload, which has a value of 0.
Somebody suggested in the Filemanager bugs area that the file storage path must equal the filemanager private path, which I tried to no avail. Here's a link to my Filemanager bug report about this.
For the record, I'm using PHP 4.4.0-3 from Ubuntu Breezy on Lighttpd.
Comment #14
vhmauery commentedThere are a couple of things you should be sure of. Upload to the latest version of Acidfree. The filemanager-private patch was updated on 28 Nov to fix 2 bugs. One bug was that it wouldn't honor the maximum files per directory and the other was that it wouldn't correctly move files to the right directory.
The second thing you should be aware of is that the private files directory must be within the drupal files path. This is what causes the errors in #7. The drupal files path is set on the admin/settings page and the private path on the admin/settings/filemanager page must be a subdirectory of the files path.
Comment #15
vhmauery commentedClosing because of inactivity. Re-open if you are still seeing this problem.