Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @davelip,

    Honestly saying, we are not aware of that but as long as they allow customers install plugins it shouldn’t be a problem to use NextGen Gallery with their service if the plan complies with the following requirements: https://www.imagely.com/docs/requirements/

    We suggest reaching their support for more details. Perhaps they already have customers who use NextGen Gallery on their platform.

    Thread Starter davelip

    (@davelip)

    Hi @imagely, thanks for your reply.

    WP VIP support team don’t give support on third part plugins…

    On WPVIP WordPress can write only into wp-content/uploads/ directory, so i set gallery_path to wp-content/uploads/gallery but i get an error “Gallery path does not exist and could not be created” ( see https://ibb.co/pnWbKTD )

    I can’t use the absolute path (i don’t know it!).

    Any suggestion?`

    Plugin Contributor Imagely

    (@imagely)

    @davelip,

    NextGen Gallery is able to save to any wp-content located subdirectory and wp-content/uploads/gallery should work just fine unless WPVIP doesn’t offer enough read/write permissions (755) for that folder.

    You’ll need to check with their support this aspect.

    • This reply was modified 3 years, 5 months ago by Imagely.
    Thread Starter davelip

    (@davelip)

    Hi @imagely , thanks for your reply.
    I have written to WPVIP support to get their support.

    Some questions about your plugin.

    I have a local environment managed with WP VIP CLI ( https://docs.wpvip.com/technical-references/vip-cli/ ) that is based on https://lando.dev/ (wordpress dockerized environment).

    I can check everythings in this environment.

    The permissions in my uploads folder is correct:

    https://ibb.co/RTfttwR

    Wordpress media uploads works fine.

    When I try to set gallery_path in wp-admin/admin.php?page=ngg_other_options : “/wp-content/uploads/gallery/” i get “Gallery path does not exist and could not be created”:

    https://ibb.co/YcStGsV

    I have added some debug log in the method “_create_gallery_storage_dir” in the package
    nextgen-gallery/products/photocrati_nextgen/modules/nextgen_other_options/package.module.nextgen_other_options.php

    https://ibb.co/D1ZpG9B

    In /wp-admin/admin.php?page=ngg_other_options I set gallery_path with “wp-content/uploads/gallery/”. When I “save options” I get in the wordpress debug.log:

    
    [07-Nov-2022 10:32:30 UTC] _create_gallery_storage_dir
    [07-Nov-2022 10:32:30 UTC] _create_gallery_storage_dir gallerypath wp-content/uploads/gallery/
    [07-Nov-2022 10:32:30 UTC] _create_gallery_storage_dir docroot /wp
    [07-Nov-2022 10:32:30 UTC] _create_gallery_storage_dir gallerypath joined with docroot /wp-content/uploads/gallery
    [07-Nov-2022 10:32:30 UTC] _create_gallery_storage_dir doent exist 
    [07-Nov-2022 10:32:30 UTC] PHP Warning:  mkdir(): No such file or directory in /wp/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_other_options/package.module.nextgen_other_options.php on line 136
    [07-Nov-2022 10:32:30 UTC] _create_gallery_storage_dir mkdir rv false
    [07-Nov-2022 10:32:30 UTC] _create_gallery_storage_dir file_exists false
    [07-Nov-2022 10:32:30 UTC] /_create_gallery_storage_dir
    

    https://ibb.co/D1ZpG9B

    The important rows are:

    gallerypath = wp-content/uploads/gallery/
    docroot = /wp
    joined = /wp-content/uploads/gallery/

    and the mkdir fails because it can’t create a /wp-content (outside docroot)!

    I think that the problem is in the method “join_paths” in the package ./plugins/nextgen-gallery/products/photocrati_nextgen/modules/fs/package.module.fs.php

    https://ibb.co/nDDfj8p

    When gallerypath and docroot have the same starter pattern “wp”:

    join_paths 
    with params = ["/wp", "wp-content/uploads/gallery/"] 
    returns /wp-content/uploads/gallery

    I hope this analysis can help with this wrong behaviour.

    I look forward for your reply.
    David

    Plugin Contributor Imagely

    (@imagely)

    Thanks. We’ll check with the devs.

    Plugin Contributor Imagely

    (@imagely)

    Hi @davelip,

    Let’s try adding the following constant to your wp-config.php

    define('NGG_GALLERY_ROOT_TYPE', 'content');

    and set the gallery path to /uploads/gallery from “NextGen Gallery -> Other Options -> Image Options -> Where would you like galleries stored?”

    Please let us know of your results.

    Thread Starter davelip

    (@davelip)

    Thanks, It works!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Compatibility with WP VIP’ is closed to new replies.