Steve Weblin
Member
Posted 5 months ago #
I want to allow other users to upload images into galleries. I have used Role editor to give the appropriate access.
I have used chmod to give/check file access permissions. Even when set to 777 other users still get this message:
Unable to write to directory . Is this directory writable by the server?
I have read this may a file ownership issue. Any suggestions as to how I can let other non admin users upload to galleries.
http://wordpress.org/extend/plugins/nextgen-gallery/
Steve Weblin
Member
Posted 5 months ago #
By reinstalling 1.8.4 I can get the functionality back, so looks like a bug introduced by 1.9.0 or 1.9.1
skyalex
Member
Posted 5 months ago #
I found the problem in function upload_images
located in wp-content/plugins/nextgen-gallery/admin/functions.php
Problem is in $gallery->abspath property. The value is missed suddenly time of time...
I solved the problem by adding the code
$gallery->abspath = WINABSPATH . $gallery->path;
before first occurance
$dest_file = $gallery->abspath . '/' . $filename;
in the function's code.
May be helpful for you too! ))
morcom
Member
Posted 4 months ago #
Fix worked great for me skyalex - Thanks for the help as I was going nowhere
jamminjames
Member
Posted 3 months ago #
Thanks for this fix.
I've also found that in updates since 1.8.4 that using the flash upload does not work for non-admin posters, though they have permission. It says "HTTP: Error".
Any fix for this?
Thank you.