Permissions Problems In Gallery
Posted: 06 January 2006 04:56 PM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  01-01-2006

I’m adding photos for the first time to my new install of EE 1.4 w/the Photo Gallery.  When adding a photo, I receive this message:

Unable to copy the file. Please make sure your file permissions are set to 777 on your destination folder.

So, naturally, I checked permissions of my destination folder(s) and sure enough, they’re all set at 777.  Here’s my directory structure:

expression/photos/(VariousCategoryFolders)

Photos is set at 777.  All enclosed folders are set at 777.

What am I missing?

Profile
 
 
Posted: 08 January 2006 09:20 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Does this happen for both batch uploads and single image uploads?  Also, if you attempt an upload via the article publish form, do you run into the same problem?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 08 January 2006 01:17 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  01-01-2006

I can attach to a publish just fine, yes.  They are separate directories, of course, but both reside in the “images” directory.

This problem with the gallery strikes me as odd, because the Gallery module has no problem creating the “category” directories from within the Module admin.  It creates the category directory in the correct directory, and the category directorys’ permissions are 777 from the get-go.  It just won’t write TO that directory when trying to upload an image.

I do get different messages depending upon whether uploading using “New Entry” vs. “Batch Entry.”

New Entry returns this: A problem was encountered while attempting to upload your file

Bach Entry returns this: Unable to copy the file. Please make sure your file permissions are set to 777 on your destination folder.

Profile
 
 
Posted: 08 January 2006 01:45 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Hm- two upload issues in one day- and I’m starting to get them confused!  A couple of things to look at:

1.  Take a look at this Kblog entry and see if it helps.
2.  If you try to create a thumbnail when you upload via the publish uploader, do you run into a problem?
3.  These aren’t gigantic files, are they?  (KB wise, not dimensions wise)- could be a memory issue.  Make sure you’ve tried it with a smaller size file.
4.  Are you running in safe mode or with open_basedir restrictions?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 08 January 2006 02:12 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  13
Joined  01-01-2006

Rob1, thanks for your prompt response.

rob1 - 08 January 2006 01:45 PM

2.  If you try to create a thumbnail when you upload via the publish uploader, do you run into a problem?

I haven’t experienced any problems with the publish upload, although I don’t recall seeing any options or settings about thumbnails.  Is this somewhere in the attachment window when attaching to a post?

rob1 - 08 January 2006 01:45 PM

3.  These aren’t gigantic files, are they?  (KB wise, not dimensions wise)- could be a memory issue.  Make sure you’ve tried it with a smaller size file.

Nope, and I’ve tried various sizes and have checked my upload parameters and they’re generous.

rob1 - 08 January 2006 01:45 PM

4.  Are you running in safe mode or with open_basedir restrictions?

Uh-oh.  And I even tried to check into this before purchasing.  The demo version worked fine, but of course didn’t include the Gallery module, so I couldn’t test it myself, and didn’t get any further response to my question.  Is this a problem?

I’m off to read the article you linked to and will post about that if there are any results from it…

Profile
 
 
Posted: 08 January 2006 02:18 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  13
Joined  01-01-2006

OK, after reading the Kblog entry, I DID mess with those settings, and even had considered the slash issue and tested both with and without.  Currently, here are the specifics of my settings:

I want files sent to the directory called “CWGallery_Organized” in my “Images” folder.

For server path to Image Directory, I have this: /Volumes/DATA/Sites/clickworld.net/www/expression/images/CWGallery_Organized/

For URL to Image Directory, I have this: http://www.clickworld.net/expression/images/CWGallery_Organized/

Not to split hairs, but there IS a difference between 1) an URL or Path of a folder and 2) an URL or Path to a folder and there seems to be some inconsistencies throughout such settings references in the EE admin.  Could this be the culprit?

Profile
 
 
Posted: 08 January 2006 02:37 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Not to split hairs, but there IS a difference between 1) an URL or Path of a folder and 2) an URL or Path to a folder ...

No- no difference, and I suspect your paths are correct since you got the publish upload working ok.  Here’s one rare/weird possibility:

For everyone who’ll have the same problem: The category directories are created by PHP and the server didn’t let write images to it also they have the 777 permissions. So, Paul created by own (via FTP) the category folder and set it to the required 777 permissions. Now, I can upload images to the gallery. Safemode allows to write to that folder because it was not created by PHP but by myself.

Understand what’s going on there?  Because of a server restriction, even though the gallery files are being created and have the correct permissions, because they are created by php the permissions, er… don’t apply to the user.  I suspect this could possibly be the case with your problems.  Two ways to check:
1.  See if you can create a thumbnail from the article publish page- once you upload, it gives you the option to create a thumbnail- choose it, see what happens.  If you CAN create a thumb that way, I’m about positive it’s the same problem.
2.  Just go ahead, delete the existing cat folders EE created (writing down the names)- then go in with ftp, create new folders with the same names, chmod to 777.

Make sense?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 08 January 2006 02:44 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  13
Joined  01-01-2006

BINGO!  I deleted the EE-created directory, and re-created it via FTP and that did the trick.  You rock, thanks for the help!

rob1 - 08 January 2006 02:37 PM

Not to split hairs, but there IS a difference between 1) an URL or Path of a folder and 2) an URL or Path to a folder ...

No- no difference, and I suspect your paths are correct since you got the publish upload working ok.  Here’s

Perhaps not in the “mind” of the EE settings, but otherwise, doesn’t a path OF a directory include the directory, and a path TO a directory only include up to the directory?

Profile
 
 
Posted: 08 January 2006 03:04 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Well, now you’ve made my brain hurt!  And honestly, I’d have to check whether I was correctly citing ‘EE’s mind’- that was more ‘my mind’, which often exists in its own little version of reality.

Honestly- I’d have to double check.  I’m so used to the EE settings the instructions just don’t register for me anymore.  It’s a good point, though.  I shall poke around a bit when I get a chance- see if it makes sense from an ‘outside’ perspective.

Glad it’s working, though.  That’s a pretty freak occurrence- I simply remembered Paul had figured out something like it at one point.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 20 February 2006 03:09 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  190
Joined  12-29-2005

I’d like to bump this back up, because I am having the exact same issue with permissions. At this point, if I had hair to pull, it’d be pulled out.

I’ve gone through the posts above, and I’m still having this problem. I’ve deleted all galleries, created new via EE and sftp, triple checked permissions, checked trailing slashes…. and I’m still getting the same error message as above: Unable to copy the file. Please make sure your file permissions are set to 777 on your destination folder.

I have a working gallery. I had batch upload working for it last week. Someone please let me know if there are other avenues to track down this issue.

Thanks!

Profile
 
 
Posted: 21 February 2006 12:19 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  190
Joined  12-29-2005

I hate to drum up a lot of noise here, but I’m still having issues with my batch upload permissions. I get single uploads working fine, though. I swear, I’ve gone through every permutation of the gallery preference page that I thought might work, and I still get nowhere. I know I had this working for a gallery that’s up and running now, but it’s now not working for that gallery either.

Profile
 
 
Posted: 21 February 2006 12:33 PM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

If it was up and working and you didn’t change anything it suggests something changed on your sever set-up.  I think the first thing I’d do is contact your host and ask if they’ve changed anything, added any restrictions or such.

Also- try uploading via the publish panel.  If that works, try uploading via the publish panel and then creating a thumbnail.  Let us know what happens in each case.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 21 February 2006 12:43 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  190
Joined  12-29-2005
rob1 - 21 February 2006 12:33 PM

If it was up and working and you didn’t change anything it suggests something changed on your sever set-up.  I think the first thing I’d do is contact your host and ask if they’ve changed anything, added any restrictions or such.

Also- try uploading via the publish panel.  If that works, try uploading via the publish panel and then creating a thumbnail.  Let us know what happens in each case.

Ok, I tried through the publish panel, and it took a png file, and also made a thumbnail of it, but that stuff goes to a different folder on the server so I’m not sure if that’s a big help or not.

As far as server changes, I’m pretty active at my hosts forums, and no changes have happened lately. I brought up my issue with the internal server error I was getting involving my duplicate template issue, but I’ll send in a help ticket on this as well, just in case.

Profile
 
 
Posted: 21 February 2006 12:49 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  190
Joined  12-29-2005

Also, just in case, do I have my paths setup correctly? I’m grasping at straws here, but…

Image Attachments
Picture 2.png
Click thumbnail to see full-size image
Profile
 
 
Posted: 11 March 2007 05:21 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  32
Joined  04-10-2006

edit.  i posted a question, then figured out the solution myself

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66396 Total Logged-in Users: 35
Total Topics: 84731 Total Anonymous Users: 16
Total Replies: 454736 Total Guests: 192
Total Posts: 539467    
Members ( View Memberlist )
Newest Members:  tom2000kalkalmohanraoelcisyncronosDan Kingsburypaulgoodeanugrah1986gregandkariSoliq