Title: Blank Gallery Path
Last modified: February 28, 2018

---

# Blank Gallery Path

 *  Resolved [pallen82](https://wordpress.org/support/users/pallen82/)
 * (@pallen82)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/blank-gallery-path/)
 * When using the code provided in an answer below:
 * > “@howdy_mcgee – We may have a correction for this although it is still being
   > tested. You are welcome to try the following:
   > … via FTP, go to ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/
   > modules/ngglegacy/admin/templates/manage_gallery/gallery_path_field.php
   > replace this line (should be line 6)
   >  value=”<?php echo esc_attr(str_replace(‘\\’,
   > DIRECTORY_SEPARATOR, $gallery->path)) ?>”
   > with this
   >  value=”<?php echo esc_attr(preg_replace(‘#[/\\]+#’, DIRECTORY_SEPARATOR,
   > $gallery->path )); ?>”
   > Please let us know if this helps.
   > Thanks!
   > – Cais.”
 * **This code works but now the gallery path is blank. **

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/blank-gallery-path/#post-10024820)
 * [@pallen82](https://wordpress.org/support/users/pallen82/) – I would suggest 
   updating to the latest release of NextGEN Gallery which implements our correction(
   s) and see if the issue persists.
 * If it does, please send us a Bug Report ([https://imagely.com/report-bug/](https://imagely.com/report-bug/)…
   please reference this topic) so we can get a better look under the page at your
   site.
 * Please include as many details as you can about your site and the issue at hand
   so we can move on this as fast as possible.
 * Thanks!
 * – Cais.
 *  Thread Starter [pallen82](https://wordpress.org/support/users/pallen82/)
 * (@pallen82)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/blank-gallery-path/#post-10025205)
 * I just updated…
 * Well something has changed…. it seems to be duplicating the path This is what
   it says in the path _ F:\MAMP\htdocs\wordpress\wp-content\to_upload\jerry_feb_2018_aee_myanmar\
   this is what it is calling for Directory F:\MAMP\htdocs\wordpress\F:\\MAMP\\htdocs\\
   wordpress\\wp-content\\to_upload\\jerry_feb_2018_aee_myanmar doesn`t exist!
 * Yes I am using a MAMP install but as you have said before it should run fine.**
   The only big difference I can think of is that I am asking it to ” Keep images
   in original location. Caution: If you keep images in the original folder and 
   later delete the gallery, the images in that folder might be deleted depending
   on your settings.”**
 * When I upload one image at a time it works. The problem is I have hundreds of
   images to upload so I do “Keep Images in original location” so it doesn’t have
   to move 1gig of photos.
 * Should I submit this as a bug?
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/blank-gallery-path/#post-10029006)
 * [@pallen82](https://wordpress.org/support/users/pallen82/) – This could be a 
   configuration issue within your MAMP environment as we do not see this in a “
   default” MAMP installation. You are welcome to submit this as a “Bug Report” 
   although there is not much we can offer for local installations at this time.
 * – Cais.
 *  Thread Starter [pallen82](https://wordpress.org/support/users/pallen82/)
 * (@pallen82)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/blank-gallery-path/#post-10029265)
 * Can you think of a configuration issue it may be? (you seem to be referencing
   something)
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/blank-gallery-path/#post-10032895)
 * [@pallen82](https://wordpress.org/support/users/pallen82/) – There are a great
   many variables that can be involved in a server environment configuration and
   then adding the local environment variations on top of that. Unfortunately, it’s
   more a process of elimination, from experience, in possible areas of concern 
   that points to the WAMP configuration more than anything else.
 * You’re seeing duplicate segments of the URL and doubled slash characters, I would
   look at your path/route configurations; and/or, if you are using any symlinks,
   how are they configured?
 * – Cais.

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

The topic ‘Blank Gallery Path’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Imagely](https://wordpress.org/support/users/imagely/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/blank-gallery-path/#post-10032895)
 * Status: resolved