Galleries are created in incorrect directory – WP_CONTENT_DIR not respected
-
My directory structure is as follows:
├── content/ │ ├── index.php │ ├── ngg/ │ ├── plugins/ │ ├── themes/ │ ├── upgrade/ │ └── uploads/ ├── core/ │ ├── wp-admin/ │ ├── wp-content/ │ ├── wp-includes/ │ ├── ...etc... ├── index.php └── wp-config.php
I have my WP_CONTENT_DIR set appropriately to
content/
but when creating new galleries, ngg is placing them incore/wp-content/gallery
instead ofcontent/gallery
.I’ve confirmed that WP_CONTENT_DIR, NGG_IMPORT_ROOT, and NEXTGEN_GALLERY_IMPORT_ROOT are all pointed to the correct directory (
content/
in my case). I’m using full paths in WP_CONTENT_DIR too, I’m just omitting it here for brevity.NGG seems to know about the correct content dir when it created
content/ngg
but galleries are being created in the ‘default’ wp-content instead of the dir specified by WP_CONTENT_DIR.“wp-content” is hardcoded in /products/photocrati_nextgen/modules/nextgen_settings/module.nextgen_settings.php inside of the
$this->_local_settings
field:$this->_local_settings = array( 'gallerypath'܁ => 'wp-content'.DIRECTORY_SEPARATOR.'gallery'.DIRECTORY_SEPARATOR, //.. //... );
This is possibly the cause, but I will need to do some testing to confirm. Is this a known issue that already has a solution?
- The topic ‘Galleries are created in incorrect directory – WP_CONTENT_DIR not respected’ is closed to new replies.