WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Unable to write to directory . Is this directory writable by the server? (5 posts)

  1. Steve Weblin
    Member
    Posted 2 years 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/

  2. Steve Weblin
    Member
    Posted 2 years 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

  3. skyalex
    Member
    Posted 2 years 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! ))

  4. morcom
    Member
    Posted 2 years ago #

    Fix worked great for me skyalex - Thanks for the help as I was going nowhere

  5. jamminjames
    Member
    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic