I have a strange problem with one thumbnail not showing up in the next_image() loop on album.php
Everything seems ok, the image has an ID, is published, has a date and publish date, title, dimensions etc.
The image shows up in the album image count, RSS feed, and is even used as a thumbnail from the album.
I also looked in the db in the albums and images tables but all seems fine.
It's a mistery why the image does not show up in the loop..
Comments
Most current browsers read them adequately, but if I remember correctly, the GD graphic engine doesn't process them. So you will see the image at the right size, but not otherwise.
Very strange. It shows as the album thumbnail just fine. Also in my jcarousel_thumb_nav it shows up.
Both image and thumb are found hotlinking to them. Really strange.
I don't have the thumbnail in the cache because I feed them from a custom folder, but again it exists. Puzzeled.
Here is the album where the thumb is missing:
http://goo.gl/7FnX7
When I do
`
while (next_image()) :
echo getImageLinkURL() . "
";
endwhile;
`
before the HTML output I get 4 links.
The same code inside the HTML and I get only 3 links??
I thought it was the 'thumbnails per row' setting in the theme options and bumped it up but even than I am using a custom theme.
Maybe a pagination error?
EDIT: NOT a pagination problem.
the while loop in the HTML gives me also one image less?
I tried adding some more images and the last one is always missing?
Some sort of an array index problem with next_image()?
Sorry about the posts..
I had this in the HTML somewhere before the actual next_image loop:
`
if (next_image()) {
echo "
";
}
`
This was always subtracting one image from the loop..
Better is:
`if (getNumImages() > 0) echo "
";`