Posted by kenyon@kerneltr... on June 8, 2005 at 4:23am
4 followers
Jump to:
| Project: | Gallery |
| Version: | master |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Using gallery.module,v 1.6 and yesterday's nightly build of Gallery2 beta 3.
The navigation block is present when in /gallery on my drupal site, but all the links are like this: <a href="">add comment</a> etc. Note the blank "".
Everything else seems to work fine.
Is it just me or is this a bug?
Thanks.
Comments
#1
Yeah me too! Blank images with a cross in them on all images in my gallery page. Anyone got any ideas because this is really annoying.
I am running gallery2 and drupal 4.6.1 r3 i think (downloaded only yesterday), same with gallery2. Gallery 2 works by its self just fine. In the moduly, you have to reference your gallery2 directory, i have done this (must be right or the gallery2 module would complain, and it does if I make it wrong)
Here's my website. www.stephenmorton.com.au/drupal and here's the gallery2 website www.stephenmorton.com.au/gallery2
Steve
#2
No, my issue is different.
#3
Just to make sure this wasn't just a problem specific to my site, I did totally clean gallery2 (beta 3 nightly build) and drupal (4.6.1) installs. Then I activated the gallery module (1.4.2.1) and activated the gallery navigation block, and went to /gallery. Again the links in the gallery navigation block are empty. Hmmm...
#4
In gallery.module, function gallery_block, each $itemLink looks something like this (given by PHP's print_r function):
Array
(
[text] => add album
[params] => Array
(
[view] => core.ItemAdmin
[subView] => core.ItemAddAlbum
[itemId] => 7
[return] => 1
)
[moduleId] => core
)
The function tries to use $itemLink['url'], which obviously isn't there. Must be from an older version of gallery2. I guess the URL will have to be constructed from this information somehow...
#5
Indeed, they changed that array in the nightly builds of gallery2. I just installed the release build of gallery2 beta3 and the navigation block links work fine. The array looks like this:
Array
(
[text] => add items
[params] => Array
(
[view] => core:ItemAdmin
[subView] => core:ItemAdd
[itemId] => 7
[return] => 1
)
[url] => (long url here)
[moduleId] => core
)
So I'll just use the released build of gallery2 beta3. No reason to work on the gallery.module code when they may change the array format again. Closing this bug for now.
#6
This bug should be open now with Gallery2 Beta 4..
#7
Hi, since there was some release lately please check out...
1- The G2 version 1.0 of gallery.
2- The latest version of this module.