error: upload to image gallery
Posted: 09 November 2005 06:07 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

I have a problem to use the image gallery module of ee. I think all preferences are right:

The paths:
/home/www/ww6132/html/mediopolitan/images/bildarchiv/
http://www.mediopolitan.com/images/bildarchiv/

I also tried the relative path. And the rights of all directories (images, bildarchiv and all categories) are set to 777.

But there’s still the bug while uploading an image to the gallery:
‘A problem was encountered while attempting to upload your file’

If I use the uploading tool of the publish section, I can upload files without any problems?!?


I hope, anyone can help me. I don’t understand ...

Profile
 
 
Posted: 09 November 2005 09:51 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25625
Joined  05-20-2002

The first thing I would do is double check that the paths follow the same structure as the ones you are using for your ‘file upload’ configuration that is working.  They generally look okay to me, but it’s impossible for me to know for sure.

Also- this occurs when you are in the gallery module and hit ‘New Entry’ and try to upload one- correct?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 09 November 2005 09:56 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

There’s no chance to upload one in any way?!
The paths are exactly the same as the ones in the configuration of the file upload.

Could it be a server/provider problem?

Profile
 
 
Posted: 09 November 2005 10:41 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40206
Joined  05-14-2004

Check out eekb: A problem was encountered while attempting to upload your file as it has some information in there that may help. That was originally written for the file upload in publish but it should apply to the gallery as well.

 Signature 
Profile
MSG
 
 
Posted: 09 November 2005 10:58 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

I read this information before posting to this forum. Unfortunately it didn’ help. But maybe you can help: Is the temporary upload directory configurable? The forward slash is n’t the problem…

Profile
 
 
Posted: 09 November 2005 11:00 AM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

And I still wonder why there’s no error if I use the upload tool of the publish section?!

Profile
 
 
Posted: 09 November 2005 11:03 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

Maybe there’s another way to solve the problem: The aim is to use the gallery browser and toolbox as an image archive to add images to an entry at the publish page.

Profile
 
 
Posted: 09 November 2005 11:05 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25625
Joined  05-20-2002

I had an odd thought- if you use the upload tool in the publish section, can you also create thumbnails from there with no problem?

Also- this thread documents another very strange file upload problem.  I understood the final resolution, but NOT why the problem was only intermittent.  Those are a bear to debug.  However, if paths and permissions are correct, and you know php is running in safe mode, it might be worth contacting your host about it.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 09 November 2005 11:19 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

It’s no problem to write thumbs!
I’ve seen the other thread and maybe that’s the same problem. I still don’t understand the difference between upload in publish and gallery section but I’ll contact my host…
But once more the question before. It’s nevertheless an interesting fact: Is there a simple possibility to combine publish file upload and image gallery?

Profile
 
 
Posted: 09 November 2005 12:23 PM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25625
Joined  05-20-2002

No, there’s no native way to combine the gallery toolbox functions with the image upload for the CP.  Which isn’t to say it can’t be coded- the core functions should all be there.  And as you’ve seen, the CP publish form does have the ability to resize images.

There are two issues- we need to get your gallery upload working correctly, then decide whether it makes sense to use the gallery to upload/manipulate images and then insert them into posts using the ‘browse’ features on the publish page, or simply upload directly using the CP Publish page.  The second issue depends on what you want to do with the images re: cropping or other types of manipulation.

So- re: getting the gallery working, let me know the EE build you’re using.  Also- triple check your permissoins and paths- just in case and let me know what your host has to say.

Re: whether you even WANT to use the gallery upload for your purposes- how would your publication process optimally work?  What needs to be done with the images before inserting them into posts, etc.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 09 November 2005 12:53 PM   [ Ignore ]   [ # 10 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7516
Joined  08-05-2002

Question:  In the Publish area, when you upload a file, are you resizing or creating a thumbnail?  If not, could you please try and see if there is a problem. 

The Gallery module normally creates a medium sized version and a thumbnail for every uploaded image while the Publish area simply uploads the image unless you specifically move on to the thumbnail/resize step.  To create a resized image or thumbnail, PHP’s image libraries have to copy the worked on image to a temporary directory.  If this directory does not have correct permissions, you could see this manner of problem.

If this is not the problem, then you could email me your site’s ExpressionEngine Control Panel and FTP information so I can take a closer look.

 Signature 


♖  ♘  ♗  ♔  ♕  ♗  ♘  ♖
♙  ♙  ♙  ♙  ♙  ♙  ♙  ♙
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
♟  ♟  ♟  ♟  ♟  ♟  ♟  ♟
♜  ♞  ♝  ♚  ♛  ♝  ♞  ♜

Profile
 
 
Posted: 09 November 2005 03:10 PM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

I could resize and create thumbs in the publish area. After the entries of your buddies I ask my host to change the rights. The server now doesn’t run in php safe mode any more but in CGI mode. The host doesn’t want to change the owner permissions and said the CGI changing solves the problem as well. Now I can upload images in the gallery but I have the problem that my whole navigation doesn’t work any more?!?

Profile
 
 
Posted: 09 November 2005 03:27 PM   [ Ignore ]   [ # 12 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7516
Joined  08-05-2002

Safe Mode, what a pain.  If the Publish area was working, then the Gallery really should have been working fine with the same paths and image library choices.  There is not much difference between the code. 

Does not work?  How?

 Signature 


♖  ♘  ♗  ♔  ♕  ♗  ♘  ♖
♙  ♙  ♙  ♙  ♙  ♙  ♙  ♙
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
♟  ♟  ♟  ♟  ♟  ♟  ♟  ♟
♜  ♞  ♝  ♚  ♛  ♝  ♞  ♜

Profile
 
 
Posted: 09 November 2005 03:28 PM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40206
Joined  05-14-2004

Sometimes with PHP as CGI you need to force query strings, see this KB entry.

 Signature 
Profile
MSG
 
 
Posted: 09 November 2005 03:42 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

I told my host to reset the changing back to the safe mode. What a pain, you’re right! But the publish area worked and I don’t like to change the whole site now. So I hope that after the reset it runs like before. And then I’ll try to get the gallery running in another way. Paul, does the publish area also copy the worked on image to a temporary directory. What’s the difference between the code?

The problem in detail: The paths are set like you see in the first entry. There could be no problem, I think. Also the directories have the 777 rights. In the publish area I could ever upload images. But in the image gallery I first only could work on images that were uploaded in the publish section before, then there was no chance any way. There was just the bug: “A problem was encountered while attempting to upload your file”.

Profile
 
 
Posted: 09 November 2005 03:45 PM   [ Ignore ]   [ # 15 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7516
Joined  08-05-2002

Honestly, there is not that much difference in code.  We have abstracted the code for uploading and for image resizing into their own classes, which both the Publish are and Gallery use.  If you are using a current version of EE 1.3.2 I do not think there should be any known bugs in that area either.  One of the reasons we keep on hoping it is some piece of information entered wrong.

I was talking about the navigation.  If you want to send me FTP and CP information I can take a look and see what is up.

 Signature 


♖  ♘  ♗  ♔  ♕  ♗  ♘  ♖
♙  ♙  ♙  ♙  ♙  ♙  ♙  ♙
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
☐  ☐  ☐  ☐  ☐  ☐  ☐  ☐
♟  ♟  ♟  ♟  ♟  ♟  ♟  ♟
♜  ♞  ♝  ♚  ♛  ♝  ♞  ♜

Profile
 
 
Posted: 09 November 2005 03:46 PM   [ Ignore ]   [ # 16 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

Now I’m back in safe mode! wink  And the gallery doesn’t work any more. But the publish upload does even with the same image file! Also the resize function!

Profile
 
 
Posted: 09 November 2005 05:47 PM   [ Ignore ]   [ # 17 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-21-2005

A mind-boggling idea, Paul! Now it runs in safemode and it works anyway.
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. Great tip! Thank you!

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 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120358 Total Logged-in Users: 73
Total Topics: 126484 Total Anonymous Users: 38
Total Replies: 665167 Total Guests: 385
Total Posts: 791651    
Members ( View Memberlist )