Better Image Gallery

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/17/2019 8:49:39 PM
Gravatar
Total Posts 9

Better Image Gallery

Hi -

I recently added an instance of the Better Image Gallery to a website page in order to try it out. Really liking it but ran into a problem and wondering if anyone knows the fix or things to look at, etc.

It works just fine while I'm logged into the website and all of the pictures show up as they should. If I'm logged out however, it shows this message:

Selected gallery folder was not found.

Just in case it had to do with the subfolder, I tried removing the special subfolder from the folder settings so it would use the main BetterImageGallery folder, then I put all of the pictures into that folder. The pictures then showed up fine if I was logged in but when I'm not logged in, no pictures.

Any ideas?

Thanks!

(p.s. Sorry, I think I may have posted this in the wrong forum the first time, moving it here instead.)

2/22/2019 5:06:17 PM
Gravatar
Total Posts 2183

Re: Better Image Gallery

Hi Becki,

Do you have any "authorization" settings set in your web.config? There's no reason, other than that, for the photos to show up when logged in vs not logged in?

What you would be looking for in your web.config is <authorization>...

Thanks,
Joe

2/24/2019 5:54:32 PM
Gravatar
Total Posts 9

Re: Better Image Gallery

Hi Joe!

Only live entry I see for authorizations is the one from the default installation with the enterSharedScope entry.

The pictures that are in the slideshow / html content feature instance all display okay when you aren't logged in. It's just the pictures for this particular plugin.

The old Image Gallery feature instance seems to work ok too.

2/26/2019 2:31:46 PM
Gravatar
Total Posts 2183

Re: Better Image Gallery

Hi Becky,

We've figured out what is going on here. 

Once upon a time mojoPortal defaulted to allow admins to use the full directory structure under the "Data\Sites\[n]" folder of an install. A while back this was changed to default where admins had to use the "data\sites\[n]\media" folder. There is a user.config setting to control whether or not admins can use the data folder. It is named "ForceAdminsToUseMediaFolder". 

Our BetterImageGallery module doesn't take that setting into account. We're fixing it for the next version.

If you have access to the command line of the server your site is on, you can use the "mklink" command to create a symbolic link that will fix the problem. To do this, open command prompt as an administrator, change directory to "<path of your site>\data\sites\[n]\media" and then enter mklink /d BetterImageGallery ..\BetterImageGallery. This will create a directory link at "\data\sites\[n]\media\BetterImageGallery" pointing to "\data\sites\[n]\BetterImageGallery". mojoPortal and IIS won't be any the wiser.

Thanks,
Joe

2/26/2019 3:55:00 PM
Gravatar
Total Posts 9

Re: Better Image Gallery

Thanks, Joe! That was it. :)

You must sign in to post in the forums. This thread is closed to new posts.