• Resolved mcit

    (@mcit)


    When creating a new gallery, NextGen tries to put the new directory in DocumentRoot (and not under wp-content/gallery like the prior galleries). It throws the error

    Could not write to file.
    Please check filesystem permissions. Filename: /home/www/<site>/galtest

    This is the correct path (minus the gallery subdirectory); the attempted path SHOULD be
    /home/www/<site>/wp-content/gallery/galtest

    After chmod 777 I was able to create the gallery, but it’s in the root now, not even under a main gallery directory. Naturally I can’t leave the perms 777 on DocumentRoot, and I certainly don’t want galleries scattered about–or apart from the existing gallery directories.

    Somewhere there’s got to be code to tweak where galleries get placed, but I can’t find it in the plugin edit code. Is it a database flag?

    DISCLOSURE: I did recover the site from backups after a server crash, but this is from a backup which I have no reason to doubt is clean. The other plugins work as expected, and I’ve updated everything to latest available.

    Any ideas? Thanks for reading

    NextGen gallery 2.1.60
    Wordpress 4.6.1
    Whitehouse Pro theme

    Ubuntu 14.04.3 LTS
    apt-get reports latest version on both php and mysql

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mcit

    (@mcit)

    Anyone know how I can modify the plugin’s default path for the ‘create gallery’ routine?

    I also should’ve mentioned that I’ve verified the permissions are correct where the galleries *should* be placed… it’s not a file permissions problem.

    The plugin is looking at the wrong place to build new galleries.

    Plugin Contributor photocrati

    (@photocrati)

    @mcit – Please try our external Reset Tool plugin here: https://bitbucket.org/photocrati/nextgen-gallery-reset/get/default.zip

    To install and activate, go to Plugins > Add New … Upload Plugin
    To use, go to Tools > NextGEN Gallery Reset

    We do not offer specific support for the Reset Tool plugin as is but it can help in many circumstances, please let us know if it does.

    Thanks!

    – Cais.

    Thread Starter mcit

    (@mcit)

    Thanks, that did the trick!

    So is there a custom gallery path prefix/root declaration somewhere? I imagine mine somehow got subverted by accident, but I didn’t see it anywhere in
    Plugins > NextGEN Gallery > Edit

    Plugin Contributor photocrati

    (@photocrati)

    @mcit – There are some bathing/route details that are set with installation. In some cases, if there are changes to the site environment, these route/path points need to be reset. This happens after a site migration more than any other case but it has been seen in other more rare circumstances.

    Thanks for the update!

    – Cais.

    Thread Starter mcit

    (@mcit)

    Makes sense, thanks for the insight Cais.

    NON-CRITICAL FEATURE REQUEST:
    Somewhere in a config file, allow manual config of a gallery path prefix. It would slightly complicate troubleshooting in certain cases, but it would be handy in cases of large galleries filling small hosting partitions, or others I haven’t thought of yet. ??

    No need to reply–I know you’re swamped with still-unsolved issues.

    Thanks again!

    Plugin Contributor photocrati

    (@photocrati)

    @mcit – Although not specifically what you are asking about, the following might be of use in your wp-config.php file:

    /** Change Import Folder path */
    define( 'NEXTGEN_GALLERY_IMPORT_ROOT', dirname( __FILE__ ) . '/'  );
    define( 'NGG_IMPORT_ROOT', dirname( __FILE__ ) . '/' );

    Unfortunately, based on how I understand your idea, NextGEN Gallery is still limited to working within the filesystem the WordPress installation is living on; we’re working on expanding this but do not have a solution for this, yet.

    Thanks!

    – Cais.

    • This reply was modified 7 years, 11 months ago by photocrati.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wrong path for create new gallery’ is closed to new replies.