davelip
Forum Replies Created
-
Thanks, It works!
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.
DavidHi @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?`