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?
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…
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.
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.
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?
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.
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.
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?!?
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.
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”.
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.
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!