Previous/Next Doesn't Appear to Work Properly...

N715DP

Joined: 2006-11-13
Posts: 13
Posted: Tue, 2009-07-14 02:40

Not sure what I can do to troubleshoot this one with you. When I drill down into an album that has 86 pictures...

I get picture 86 of 86. Next is not available, clicking previous takes me to image 2 of 86. Previous again takes me back to #86. Next will take me to #84. Here is a sequence...

Start on 86 of 86.
Previous goes to 2 of 86.
Previous again goes back to 86 of 86.
Previous again goes back to 2 of 86 (and back and forth...)
Next goes to 84 of 86.
Previous goes to 4 of 86.
Next goes to 82 of 86.
Previous goes to 6 of 86...

I think there is a pattern here. Any ideas?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-07-14 13:37

Whee! You don't like it that way? Haha, kidding.. this is fixed in the latest code-- try it out.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
N715DP

Joined: 2006-11-13
Posts: 13
Posted: Tue, 2009-07-14 18:57

hmm... did a git pull and can't get past a blank home page now. Any ideas?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-07-14 19:16
 
N715DP

Joined: 2006-11-13
Posts: 13
Posted: Wed, 2009-07-15 01:44

sorry about that, I don't know how/why that was back at "0" in index.php - but it would explain why I wasn't seeing anything coming up in the logs... here's what I've got now... looks like a db error? not sure how that's possible as nothing changed on the db side.

Quote:
2009-07-14 18:40:31 -07:00 --- error: #0 /home/n715dp/----/gallery3/system/libraries/Cache.php(83): Cache_Database_Driver->__construct(NULL)
#1 /home/n715dp/----/gallery3/system/libraries/Cache.php(38): Cache_Core->__construct(false)
#2 /home/n715dp/----/gallery3/modules/gallery/libraries/Gallery_View.php(93): Cache_Core::instance()
#3 /home/n715dp/----/gallery3/modules/gallery/libraries/Theme_View.php(219): Gallery_View_Core->combine_files(Array, 'css')
#4 [internal function]: Theme_View_Core->__call('head', Array)
#5 /home/n715dp/----/gallery3/themes/default/views/page.html.php(70): Theme_View->head()
#6 /home/n715dp/----/gallery3/system/libraries/Controller.php(74): include('/home/n715dp/pe...')
#7 /home/n715dp/----/gallery3/system/libraries/View.php(272): Controller_Core->_kohana_load_view('/home/n715dp/pe...', Array)
#8 /home/n715dp/----/gallery3/modules/gallery/libraries/MY_View.php(39): View_Core->render(false, false)
#9 /home/n715dp/----/gallery3/system/libraries/View.php(244): View->render()
#10 /home/n715dp/----/gallery3/modules/gallery/controllers/albums.php(76): View_Core->__toString()
#11 /home/n715dp/----/gallery3/modules/gallery/controllers/rest.php(91): Albums_Controller->_show(Object(Item_Model))
#12 [internal function]: REST_Controller->__call('1', Array)
#13 /home/n715dp/----/gallery3/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Albums_Controller), Array)
#14 /home/n715dp/----/gallery3/system/core/Event.php(209): Kohana::instance()
#15 /home/n715dp/----/gallery3/system/core/Bootstrap.php(55): Event::run(Array)
#16 /home/n715dp/----/gallery3/index.php(85): require('/home/n715dp/pe...')

 
ashokjp

Joined: 2009-05-27
Posts: 14
Posted: Wed, 2009-07-15 17:25

Even i am having a similar problem. previous and next button as such doesnt work in certain albums. whichever picture i take it says 0 out of total

see the screenshot

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2009-07-16 03:01

@ashokjp: is this with beta 2? If so please create a new topic and also report whatever's in your var/logs/* files. I'm going to close this topic.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!