Using either the enhanced or standard gallery.module I run into a problem viewing newly added photos. This is only a problem when I access the gallery while through drupal http://trobison.com/?q=gallery . However, when accessed directly,at http://trobison.com/gallery2 I have no problems.

What happens anyone adds a new photo or gallery, it is not viewable. In fact, when you click on the album you are automatically logged out of drupal/gallery. When you click to another part of the site, you will be logged back in. You can succesfully search for the photo or gallery and access it.

I'm not sure if this is related, but I also get an error in the log like this:
parse_url(http:///trobison.com/): Unable to parse url in ..../trobison/gallery2/modules/core/classes/GalleryUrlGenerator.class on line 476.

Comments

trobison’s picture

Just so you can see, if you go directly to gallery you should see four photos, but when accessed through drupal you'll only see 3 photos. This has only been a recent problem, and I can't think of any changes that I've made that are concurrent with the problem.

kiz_0987’s picture

I see 4 photos on each which seems correct. I don't know why you are having issues. Make sure that you only log into Drupal to access the Gallery now that you have it embedded, don't try to log into both separately.

trobison’s picture

Thanks for the tip. It's a mystery to me as well. The problem I described occurs intermittently. There must be a pattern that I'm missing here somewhere...

alanburke’s picture

Trobison,

I have a similar problem, which you also appear to have on your website.

When the 'www' is absent from the URL, everything works fine
eg http://athenryac.com/gallery
But when the www is present, the images don't appear.
eg http://www.athenryac.com/gallery

The same problem occure with the 'random image' block.

Any idea on how to get this sorted?
Alan

alanburke’s picture

My Apologies,
A little searching revealed that this is a known issue, with a fix.
I have now implemented same.

Regards
Alan

kpmd’s picture

Please link to the solution when you find it. Otherwise your report is of no use to others.

chook’s picture

I had the same problem and I resolved this by changing how my host dealt my site address. I had the site address set for both www.site.com and site.com. When I went to site.com everything worked, but www.site.com would not show me the images. I changed my host setting so that www.site.com automatically went to site.com. That fixed it for me.

paddy_deburca’s picture

chook,

To allow your website to use both URLs (www.site.com and site.com)

  • update the base_url in your settings.php file to be http://www.site.com
  • create a directory called site.com alongside the /sites/defaut directory
  • copy the settings.php file from /sites/default to /sites/site.com
  • in the /sites/site.com/settings.php file set your base_url to http://site.com

and it all should work.

Paddy.

kiz_0987’s picture

Status: Active » Closed (fixed)

base_url issues now solved with 4.7.