22399 Posts in 6752 Topics by 2748 members
|Go to End||Next >|
5 September 2010 at 3:59am
I am having the exact same problem, so I checked out the latest 2.4 stable from SVN and tried that. No luck
My server has the open_base_dir thingy enabled (with PHP 5.2.14), so that might be causing the problems here since the files are being placed in my silverstripe-cache folder, but they aren't being moved to the assets folder though.
What are the exact patches one have to make in order to fix this issue? I've seen a lot of patches but which one is the best?
5 September 2010 at 6:00pm Last edited: 5 September 2010 6:01pm
If you can disable open_basedir in your PHP-configuration you will be able to use the latest stable release of SilverStripe without modifications.
If not, you have to patch it, I recommend that you try this patch, it removes the unnecessary open_basedir hack/handling in AssetAdmin, which should solve your problem.
5 September 2010 at 9:28pm Last edited: 6 September 2010 3:52am
Unfortunately I'm unable to disable open_basedir since I'm on a shared hosting platform.
So I tried the patch, now I'm getting closer to getting it to work.
Now I'm getting a webpage error:
[Warning] move_uploaded_file(/home/cyberde/public_html/www/assets/Downloads/testfile.txt) [function.move-uploaded-file]: failed to open stream: Permission denied
Line 248 in /home/cyberde/public_html/www/sapphire/filesystem/Folder.php
Okay, I'm going to kick my own ass right now. After numerous checks I finally found out that the permission of a subfolder was set to 775 instead of 777. Pretty stupid!
Anyway the patch worked
13 September 2010 at 2:25pm
Thanks a lot for this patch: http://open.silverstripe.org/attachment/ticket/5547/2.4.0-FileUpload.diff, worked for us too.
29 September 2010 at 6:34am Last edited: 29 September 2010 6:42am
make a copy of the 2 files showed in this file-diff:
then edit this 2 file as you see there -> green means add this code, red means remove this code
This patch worked for me.
Thanks for the fix. It works for me in the 2.4.2 version.
But your code have error.
See my jpg file.
7 March 2011 at 11:57pm
Hmm, why hasn't the patch in http://open.silverstripe.org/changeset/114471 (3 months ago) been merged into the latest release?
The ticket in http://open.silverstripe.org/ticket/5547 has been marked fixed with the committed patch.
Are there issues with the patch? It seems to work just fine with us.
23 March 2011 at 10:47am
i did an update to 2.4.5
and - no Upload was working
so i applied patch:
and things are well now...
HINT: one thing to mention:
at last line there's
i think this should be
|Go to Top||Next >|