Xi
Forum Replies Created
-
Finally, I hope Alex can solve this problem. I guess it is the problem of virtual path using in the virtual server (more likely in cheap server). To hack this “cannot upload image problem”, you don’t need to change the permission of your folders. In the /admin/functions.php, just remove:
if ( !nggAdmin::chmod($dest_file) ) {
nggGallery::show_error(__(‘Error, the file permissions could not be set’,’nggallery’));
continue;
}Remember, these lines occur twice in the /admin/functions.php. Good luck!
BTW, thanks to wptorgue again.
Let me clarify my problem. Finally, I found same function in /admin/functions.php has different result in my testing server and formal server: nggAdmin::chmod($dest_file) is 1 in testing server, but null in formal server.
What should I do? 🙁
OK, I’m confused. Uploading to multisite on my LAMP testing server has no error.
I’ve tried uploading image on single site running on LAMP with the folder permission 755. No error. Thus, I guess the multisite function of nextgen may have some bugs.
Meanwhile, 777 may be too dangerous(?)
Still looking for help.
OK, I’ll try to modify the permissions. Anyway, I found some solutions may help: http://wordpress.org/support/topic/plugin-nextgen-gallery-wont-create-thumbnails-galleries?replies=19
Thanks!
The gallery path is set as “gallery/id_%BLOG_ID%/”. The permissions of the folder “/gallery” and its sub-folders are all 755 or drwxr-xr-x. I guess the permissions are enough. But I cannot upload still.