View Issue Details

IDProjectCategoryView StatusLast Update
0003304OXID eShop (all versions)1.06. Search, Tagspublic2012-12-07 14:39
Reporterboehme Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version4.5.1 revision 38045 
Summary0003304: result page count calculation can produces "page 1 of 0"
Descriptionlets have a look at the last few rows of search::init():

$this->_iCntPages = round( $this->_iAllArtCnt / $iNrofCatArticles + 0.49 );

When only one product was found and $iNrOfCatArticles (max articles shown per page) is about 120 (maybe smaller, i didn't checked the exact value), this will be calculated:
1 / 120 + 0.49 = 0.493333333
after rounding it's int(0).
So the pagecount will be set to zero...
This variable will also be used for creating the pageNavigation object.

What about removing addition of 0.49 and using http://www.php.net/ceil?
TagsSearch
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

jurate.baseviciene

2012-06-05 13:50

reporter   ~0006774

Reminder sent to: boehme

Hi, Sorry, but I can not reproduce the case neither in 4.5 nor in eShop 4.6.0 versions. Probably is fixed with other changes.

Could you please let us know if you still experience same problem on our latest eShop version 4.6 or demoshop:
http://demoshop.oxid-esales.com/enterprise-edition/
http://demoshop.oxid-esales.com/professional-edition/
http://demoshop.oxid-esales.com/community-edition/ ?

jurate.baseviciene

2012-06-20 07:11

reporter   ~0006934

Hi,

I tried to reproduce the bug on version 4.6 and 4.5 but unsuccessfully. This problem does not exist. Probably is fixed with other changes. So the bug is resolved.

Best regards,