I've just upgraded from 2.5 to 2.6 and it imediately gave me an error:

Fatal error: Call to undefined function _imagecache_strip_file_directory() in /home/accountname/public_html/example/sites/all/modules/lightbox2/lightbox2.module on line 1093

I have imagecache module as well... all used to work well with 2.5

CommentFileSizeAuthor
#2 lightbox2_254143.patch852 bytesstella

Comments

stella’s picture

Assigned: Unassigned » stella

What version of imagecache are you using?

stella’s picture

Status: Active » Needs review
StatusFileSize
new852 bytes

Try the attached please. If it works I'll do another release.

Cheers,
Stella

drupalina’s picture

My Imagecache is 5x-1.5

sorry, I don't know how to apply patches. If you create a dev I can text it out for you on my live site.

stella’s picture

patch -p1 < lightbox2_254143.patch should apply the patch for you on linux systems.

The patch has been added to the latest dev release, so you can try that one.

Cheers,
Stella

drupalina’s picture

hi,
I tried out the latest dev version ... there is a slight improvement in a sense that the full node page that contains the image does not give a WSOD.

However, when I click on the thumbnail, this is what happens: the lightbox shaddow opens up for a brief segment of a second, and then immediately disappears without showing any trace of the image. And then the page immediately redirects from that full node page, back to the front page where I initially came from.

For now I'm reverting back to 2.5

stella’s picture

I can't reproduce this exact scenario, however I did manage to encounter bad behaviour when I set the image display to be "Lightbox2: preset1 -> preset2", rather than "Lightbox2: preset1 -> original". In this situation, the image wasn't being found and the default "image not found" icon that comes with the lightbox2 module was displayed instead of the image. I think this must be the same issue as what you're encountering. It only happens with imagecache 1.x by the way.

Anyway, try out the next dev release which should be available in the next 12 hours. It has a fix for this issue.

Cheers,
Stella

drupalina’s picture

I have 3 imagecache presets which are derived from Imagefield module submission. In the teaser there is the tiny 100x100 version, in the full node there is a slightly bidder version 150x150 and when users click that second one in the full node, the Lightbox will open up with the third 650x650 version. With 2.5 this was working ok.

I will try the dev version and report back.

drupalina’s picture

Yep... it works!!!

I just uploaded the latest dev that I could find (from 05 May) -- and it seems to work as expected.

stella’s picture

Status: Needs review » Fixed

Excellent, I'll do another release in the next couple of days. Thanks for spotting and testing this!

Cheers,
Stella

drupalina’s picture

Thank You!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

stella’s picture

Released in Lightbox2 5.x-2.7 and 6.x-1.7.

Cheers,
Stella