I am using Drupal 4.7 and Gallery 2.1.1 , I have installed the gallery integration module, and correctly
set up every thing as per the Docs.
The integration works , as expected and
I am able to successfully use URL rewrite etc.
But I get these error message in my Drupal error logs.
PHP Fatal error: Call to a member function on a non-object in /usr/home/XXXX/public_html/gallery2/modules/core/classes/GalleryEmbed.class on line 209
Although every thing works as expected, I am still curious as to why these messages appear.
The only thing that doesn't work is G2 filter. I have enaabled it, in input format methods, but when
I type [G2:itemId] in a page/story content, I get no image, but just [G2:itemId].
Can someone help ?
Comments
You configured your input
You configured your input method to include the Gallery filter, selected it as the input method in your test node, and it still doesn't work?
Anisa.
-----------------------------------------------------------
Kindness builds stronger bonds than necessity.
www.animecards.org - 16,000 card scans and counting!
-----------------------------------------------------------
OK , I made some progress. I
OK ,
I made some progress.
I had lightbox v2 module installed, and I had enabled both the filters (lightbox and gallery2).
lightbox filter, adds lightbox effect to gallery2 filter, but the priorities (weight ) of both filters was the same.
I changed the weights to be different, and now gallery2 filter works, i.e. I see the image.
but there are still 2 problems.
1) The thumbnail image links to the HTML page, that holds, the image, I want it to link to the image itself.
i.e. it outputs
<a href="/gallery/somepath/someimage.html"><img src="/gallery?downLoad...itemID=XXXX" /></a>but I want
<a href="/gallery?downLoad....itemID=XXXX"><img src="/gallery?downLoad...itemID=XXXX" /></a>2) Lightbox filter doesn't work, no matter what I set it's weight. Note lightbox module is enabled and working
(i.e. if i manually add a
<a rel="lightbox" src="some img">XXXXXX</a>, it works).but the lightbox filter doesn't work. i.e. it doesn't add rel='lightbox' to the g2 filter loaded images.
http://www.bhaskarvk.info
I have figured out what the
I have figured out what the problem is, but not sure how to solve it.
I got gallery 2 filter to work, but lightbox filter doesn't work because of the following problem.
The thumbnail image links to the HTML page, that holds, the image, I want it to link to the image itself.
i.e. it outputs

but I want
Is there a way to turl off URL rewrite for the ImageBlock alone ?
http://www.bhaskarvk.info