Compatibility with WP VIP
-
Is this plugin compatible with WP VIP Platform?
The page I need help with: [log in to see the link]
-
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.
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?`
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.
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:
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”: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.phpIn
/wp-admin/admin.php?page=ngg_other_optionsI 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_dirThe 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.phpWhen gallerypath and docroot have the same starter pattern “wp”:
join_paths with params = ["/wp", "wp-content/uploads/gallery/"] returns /wp-content/uploads/galleryI hope this analysis can help with this wrong behaviour.
I look forward for your reply.
DavidThanks. We’ll check with the devs.
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/galleryfrom “NextGen Gallery -> Other Options -> Image Options -> Where would you like galleries stored?”Please let us know of your results.
Thanks, It works!
-
This reply was modified 3 years, 5 months ago by
The topic ‘Compatibility with WP VIP’ is closed to new replies.