I am getting the following message on some images after I try to upload them to gallerix
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* Error uploading file ()
These images simply don't show up.
I'm guessing that this has something to do with the size of the image? I'm really confused about this. Please help. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | gallerix-lowercase-6.x.patch | 570 bytes | AlexisWilke |
Comments
Comment #1
mrwhizkid commentedDid I post this in the wrong place? Has anyone else had this problem? I am starting to wonder if this is perhaps a problem with the image module itself? I have over 200 members who are experiencing this problem and I am stuck...I don't know where to go from here. Any help would be appreciated.
Comment #2
AlexisWilke commentedI do not know why it would fail.
Could you share one of the failing images so I could test with my version?
Did that start happening after you upgraded or is 1.4 the first version you used?
Thank you.
Alexis Wilke
Comment #3
megs commentedIt's simple: don't use capital letters in filename. All you have to do is rename your images.
Megs
Comment #4
AlexisWilke commentedAh! I see it... I don't think we need that line of code here?!
The attached patch should fix the problem.
Thank you.
Alexis
Comment #5
AlexisWilke commentedOkay, I see that there are several problems actually. There are two other places where the extension is being checked and uses a substr(..., -4) which is incorrect since the extension can be 3 or 4 letters (.jpg or .jpeg). We need to fix all those little problems!
More soon.
Alexis
Comment #6
mrwhizkid commentedHi. Thanks for the comments. It's kind of strange...I realized that I was actually using the DEV version of this module. When I downgraded back to 6x-1.4, this problem seems to go away. Or at least from my end of it. I have a few users who are still having some issues that I am trying to get to the bottom of...
Anyway, I will apply the patch and wait for some more information.
Thanks again for your help!
Comment #7
AlexisWilke commentedYes, it would be nice to know whether #4 helps you already, but that would need to be applied against the -dev version. There are some other problems in regard to upper/lower case, but what you described should be fixed with that patch.
Thank you.
Alexis
Comment #8
AlexisWilke commentedI've now applied many of the changes to the Zip Archive support...
The 1.x-dev should work a lot better in that regard.
Were you using a zip file? Or always images one by one?
The development version also includes the fix I mentioned earlier removing improper "lowercasing" the file name.
Thank you.
Alexis Wilke
Comment #9
mrwhizkid commentedThanks. I'll check that out and report back. Actually, for 6.x-1.4, the zip function wasn't working at all so I turned it off. Not sure what the problem is...I do have a zip library installed in my php but there must be some other problem. I will try the latest DEV version and see if maybe this problem goes away as well?
Thanks again.
Edit ---
Where can I download the latest DEV? Is it the September 17th one or has the page just not updated yet?
Comment #10
mrwhizkid commentedStrangest thing...when I upgraded to DEV...the zip function works without any problem. I can upload with that.
But when I go to upload single photos, I am getting an entirely different error:
Error uploading file (sites/default/files/85596_elin-nordegren-and-tiger-woods-in-september-2006.jpg)
Error uploading file (sites/default/files/necad.jpg)
Error uploading file (sites/default/files/sharesomephotos.jpg)
Why would I be getting an error for sites/default/files??? btw, that folder is completely read and writable.
When I downgrade back to 6.x-1.4, the zip function throws up all kinds of errors but users can upload single photos without any problem.
Comment #11
AlexisWilke commentedmrwhizkid,
Note: it takes about 12h for the 1.x-dev to refresh... Drupal does that so you have time to upload many changes before a new version is generated.
I guess I have to test a single file too... 8-) The files are expected to go in a sub-folder and it could be that it is saved in the table without that path when it should be there. For the zip files, the path inside the zip file was added to the filename and that would not work at all.
Thank you.
Alexis
Comment #12
megs commentedThe same to me.
The new 6.x-1.x-dev fix the views problem but doesn't allow to upload via repository and/or single images.
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_006.jpg)
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_021.jpg)
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_019.jpg)
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_001.jpg)
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_038.jpg)
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_044.jpg)
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_008.jpg)
Error uploading file (sites/default/files/gallerix/repository/BF_Kristina_011.jpg)
Comment #13
AlexisWilke commentedOkay, I checked in another fix. One variable was wrong in the upload code.
Let me know if that fixes this problem.
Thank you.
Alexis
Comment #14
mrwhizkid commentedUnfortunately, with this latest version, I am experiencing the following problems:
1. When I try to access admin/settings/gallerix/general I am often (but not always) getting this error on a whitescreen:
Fatal error: Unsupported operand types in /home/mysite/public_html/modules/system/system.module on line 627
2. If I can get to the general settings page, when I try to save that page, I get two system messages:
* An internal name is required.
* An internal name is required.
In the stable version, the names 'thumbnail' and 'frame' appear under Name for the 100x70 and 400x500 settings but in this DEV version, these fields are blank and grayed out. I tried looking in the DEV version to see what's missing here, but I can't seem to find it.
Comment #15
AlexisWilke commentedOkay, so... Are you saying that we should not allow users to edit a Name once it was saved? I think that your previous code was such that it would disable all names, not just the system names. Is that correct? It probably makes sense because users will lose access to all the files with the previous name, but I'm not too sure we want to totally prevent the editing because the users may want to think about it for a couple days... and change the name then.
And indeed the #disabled prevents the #default_value from working... So I switch to #value if disabled. Bad Core!
Do you still have upload problems otherwise?
Thank you.
Alexis
P.S. I did an update... there will be yet another -dev version.
Comment #16
megs commentedOkay, i've tried the new dev-version from today.
After uploading images i get a new message:
Access denied
You are not authorized to access this page.
I'm logged in as Admin.
When i call the album i could see the gallery description but no images and i get the message: This album is currently empty.
Ciao, Megs
Comment #17
AlexisWilke commentedAre you using Private Upload features? Or is your files folder under sites/default/files?
Are you using the secure upload feature?
I tested with the current version and it seems to work just fine, but I don't use private files or the secure feature of gallerix.
http://gallery.m2osw.com/node/5
Thank you.
Alexis
Comment #18
AlexisWilke commentedFYI, I've applied another fix, not too sure why it would generate an access denied but there was a problem with the View.
Comment #19
mrwhizkid commentedI can confirm this problem. I am not using private download or secure mode.
When using the latest DEV...
I create the album, upload photos, photos show up in the latest photos block but user gets access denied after album has been built. The user who created the album can't access it.
Other users can view the album but it shows up as empty.
Something screwy here with the permissions.
Comment #20
megs commentedI'm using public download method and no secure mode.
Maybe i will install a fresh, clean drupal, with only the core modules, views and gallerix, and test it again.
Ciao, Megs
Comment #21
megs commentedI have installed a 'fresh' and clean drupal. Only gallerix, views and core modules, no private download, no security mode.
The Problem is still the same: Access denied
You are not authorized to access this page.
P.S. Without views module the problem is the same
Comment #22
AlexisWilke commentedOkay, I found the reason for the access denied page, but I still don't know why the image isn't saved correctly...
As you can see, if there isn't an image, then you're denied access. I guess that's a problem when the image fails loading... but since the image should load just fine!
More soon.
Alexis
Comment #23
mrwhizkid commentedIn my installation, the images are being processed by Gallerix because they show up in the latest images block. So they are there...or at least the thumbnails are.
But when I click on a thumbnail in the latest images block, it takes me back to the album which is empty.
For some reason, the album is not displaying the images.
Comment #24
AlexisWilke commentedOkay! Got it...
The INSERT SQL statement would not include the sort which had a default of 0. 0 is not considered a correct sort order.
So I fixed the INSERT and the .install file with a better default (although I don't use the default since each picture should have a different sort.)
This time, it will work! Thank you for your patience...
Alexis
Comment #25
mrwhizkid commentedGreat!! Seems to work well now. Just tested it with zip and individual upload. Thanks so much.
Only little quirk that I see is that the image block count seems to be off. If you set it to 6, it only shows 5 photos for example...but this is not a big deal and I can open another issue about this sometime.
Anyway, great work. I appreciate your persistence on this.
Comment #26
AlexisWilke commentedCool 8-)
I'm marking this as fixed then.
Alexis
Comment #27
megs commentedI also can confirm: the issue is fixed.
Thank you, good work
Ciao, Megs