Title: gallery folder on localhost
Last modified: August 20, 2016

---

# gallery folder on localhost

 *  Resolved [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/)
 * I’m using version 1.1.16 and I have a problem on my localhost test site when 
   entering the gallery folder. Actually, I don’t enter it but it is saved as displayed,
   so I have to re-enter it.
 * I’m using XAMPP on Windows, so my paths have backslashes. I can enter the gallery
   folder as ../photos/ and it is found. But when I select my settings and save,
   it uses the displayed path of ..\photos and saves that, which means it is no 
   good. It needs to not convert to backslashes and display what I entered previously.
 * [http://wordpress.org/extend/plugins/lazyest-gallery/](http://wordpress.org/extend/plugins/lazyest-gallery/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/gallery-folder-on-localhost/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/gallery-folder-on-localhost/page/2/?output_format=md)

 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133027)
 * It converts to backslashes because you are on a Windows system. The folder is
   used by php on your server. Your web log will display forward slashes.
 *  Thread Starter [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133029)
 * I understand why, but I don’t agree that it should. When you output the gallery
   folder path on the settings page, it should be what I entered previously, not
   the converted path. Because when I hit Save, that bad path with backslashes replaces
   the good path with forward slashes that I entered before.
 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133031)
 * In Windows, the ‘good’ path has backslashes.
 *  Thread Starter [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133038)
 * When you are in Windows, that’s is true, but when in WordPress, that is not true.
   
   The plugin checks the gallery folder input field to see if the path is correct.
   If I enter backslashes in that text field, it is interpreted as escaped characters,
   so the path is invalid. It shouldn’t be that difficult to save what is entered
   without any conversion. You should try it, so you can see what I’m talking about.
 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133049)
 * I don’t see the escaped character issue running on WAMPSERVER.
    I’m using a path
   like `..\wp-content\uploads\lg-gallery\`
 *  Thread Starter [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133053)
 * That path would work if it had forward slashes. Did you hit Save after it found
   the path? When you enter that path in exactly like that, it doesn’t find it because
   of the backslashes creating special characters in the input.
    My folder is ../
   photos/ and it does not find it when it changes it to ..\photos
 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133054)
 * weird, I did hit save. something’s different on XAMPP vs WAMP I guess.
    Any chance
   I could look on your server? Please leave a topic on [http://brimosoft.nl/forums/forum/how-to-and-troubleshooting/](http://brimosoft.nl/forums/forum/how-to-and-troubleshooting/)
   so I could send you an email
 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133078)
 * Sorry, my bbpress plugin made a hickup. Your post did not get your e-mail or 
   name.
 * Lazyest Gallery replaces slashes to be compatible with your server OS.
    So on
   Windows, forward slashes get replaced by backslashes This was necessary because
   of crashes on Windows servers. I can’t reproduce your error on my machines. Even
   with obvious ‘escaped characters’ like \n in `..\..\wp-content\new-gallery\` 
   the folder can be found.
 *  Thread Starter [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133080)
 * I understand why you would change to backslashes, and that it might even be automatic
   in some function you call, but you don’t need to switch and you definitely don’t
   need to show the user something different than what was entered. The big problem
   comes when the converted path is saved because then it is invalid. It’s not when
   entered, it’s when it is saved again. In order to keep the settings working, 
   the user has to go back to the path field and fix it, even though they only wanted
   to change some of the other settings (not the path).
    It sounds like you didn’t
   test the scenario all the way through: 0. plugin prompts for gallery folder path
   only 1. user sets the gallery folder path and saves 1a. plugin finds it and shows
   the settings fields (including a modified path) 2. user changes sizes etc. and
   saves (path is saved with backslashes) 2a. plugin still finds path and shows 
   settings 3. user changes another setting and saves (without changing path) 3a.
   plugin now can’t find path and doesn’t show settings
 * The critical point is to redisplay what the user typed originally, not the modified
   version.
 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133081)
 * I don’t see a reason to save the user input also. I’d rather fix this bug.
 *  Thread Starter [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133082)
 * Plugins that convert to backslashes and redisplay always have the problem of 
   the increasing backslashes, because to enter one you have to type two, so each
   time it is converted and redisplayed it grows.
 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133085)
 * hm, wish I could repeat that, backslashes save and resave normal in Lazyest Gallery
   settings. I’m still searching why it wouldn’t work on your XAMPP server.
 *  [kchayka](https://wordpress.org/support/users/kchayka/)
 * (@kchayka)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133121)
 * FWIW, I’m on a WAMP localhost server and never use backslashes in path names 
   for any PHP app. Neither Apache nor PHP ever seem to have an issue locating files
   with forward slashes in a path name on my Windows box. It is possible IIS might
   have issues with forward slashes, though it follows that many open source products
   would fail to run on IIS if that were true, including WP. WP only uses forward
   slashes in paths, such as all its include statements.
 * I think it should be pretty safe to abandon the back slashes.
 *  [lazyest_developer](https://wordpress.org/support/users/lazyest_developer/)
 * (@lazyest_developer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133122)
 * true,
    lazyest-gallery 2.0 will abandon backslashes
 *  Plugin Author [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/#post-3133123)
 * Please try Lazyest Gallery 1.1.18-beta
    [http://wordpress.org/extend/plugins/lazyest-gallery/developers/](http://wordpress.org/extend/plugins/lazyest-gallery/developers/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/gallery-folder-on-localhost/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/gallery-folder-on-localhost/page/2/?output_format=md)

The topic ‘gallery folder on localhost’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lazyest-gallery_95a09e.svg)
 * [Lazyest Gallery](https://wordpress.org/plugins/lazyest-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lazyest-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lazyest-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/lazyest-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazyest-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazyest-gallery/reviews/)

 * 18 replies
 * 4 participants
 * Last reply from: [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/gallery-folder-on-localhost/page/2/#post-3133126)
 * Status: resolved