You are here: Foswiki>Tasks Web>Item11978 (09 Jul 2012, HarlanStenn)Edit Attach

Item11978: ImageGalleryPlugin does not work with VirtualHostingContrib

pencil
Priority: Urgent
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: VirtualHostingContrib
Branches:
Reported By: HarlanStenn
Waiting For: Main.HarlanStenn
Last Change By: HarlanStenn
The ImageGalleryPlugin defaults to looking in BASEDIR/pub/images/ for its thumbnails, but when using VirtualHostingContrib it looks like the thumbnails are going to BASEDIR/virtualhosts/SITENAME/pub/images/TOPICWEB/TOPICNAME/1/thumb_* .

-- HarlanStenn - 29 Jun 2012

Hi Harlan, which VirtualHostingContrib version are you using? Try to use the fixes that I provided to it checked in to subversion. I may have to take over maintenance of this extension as Antonio doesn't seem to have time for it anymore.

In any case: I am using ImageGalleryPlugin + VirtualHostingContrib every day without a problem. So I wonder what exactly goes wrong in your case: are the urls wrong so that you don't see any images at all, or does the code try to read the raw images from the wrong location on disk?

Also: do you have viewfile in place to protect your attachments?

-- MichaelDaum - 01 Jul 2012

Michael, the photos are going in to BASEIR/virtualhosts/SITENAME/... and the apache error log complains because apache is looking for them in BASEDIE/pub/images/ . Our InstalledPlugins page says we're running 9826 (2010-11-02) of the VHC beast.

-- HarlanStenn - 03 Jul 2012

I don't recall if we have a viewfile in place or not, but the site is only available to registered users, and visitors cannot register themselves.

-- HarlanStenn - 03 Jul 2012

Yea and I am using the svn/trunk one.

I am going to prepare a new VirtualHostingContrib release so that we talk about the same thing.

-- MichaelDaum - 04 Jul 2012

There's a new release out there. Have a try.

-- MichaelDaum - 04 Jul 2012

OK, upgraded. I had to manually create .../foswiki/virtualhosts/DOMAIN/working/logs/ but after I did that the sites came back up.

It's 0215 here - I'll test more if I can tonight, otherwise I'll test more tomorrow. Thanks, Michael!

-- HarlanStenn - 04 Jul 2012

And the upgraded installation still searches for images in the main website as described in my 03 Jul comment. Also, the images are not ordered as expected. They display in the order they were uploaded in spite of my using what I thought was the correct numbering scheme in the comment. (This is not new - it behaved this way before the upgrade, which is no surprise because I upgraded VHC, not IGP.)

-- HarlanStenn - 07 Jul 2012

Aaah: your vhost configuration in apache is broken.

-- MichaelDaum - 07 Jul 2012

Is there an example somewhere for me to compare against? The VHC sites seem to be working fine otherwise.

-- HarlanStenn - 09 Jul 2012
 
Topic revision: r9 - 09 Jul 2012, HarlanStenn
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy