VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: big2000 on July 01, 2012, 20:54:11 PM

Title: Bug after upgrade form 2.0.6 to 2.0.8 all items in category-view in one page
Post by: big2000 on July 01, 2012, 20:54:11 PM
Hello today I have upgraded virtuemart from 2.0.6 to 2.0.8. All was good till I saw that products in category view are showed in one page (If category got 200 products all of them was on one page and no pagination showed). I had my backup so no harm done. I started to alter new files with old files from installation 2.0.6 of Virtuemart to see what file making this bug. All started working fine when I copied file /components/com_virtuemart/router.php. I hope it will help. Please tell me what can I do to make new virtuemart.php working as intended. Sorry for my English.
Title: Re: Bug after upgrade form 2.0.6 to 2.0.8 all items in category-view in one page
Post by: Milbo on July 01, 2012, 21:23:19 PM
Please join here http://forum.virtuemart.net/index.php?topic=103679.0
Title: Re: Bug after upgrade form 2.0.6 to 2.0.8 all items in category-view in one page
Post by: big2000 on July 01, 2012, 22:27:13 PM
Ok I have repair what was wrong in file components/com_virtuemart/router.php in line 682 I have changed:
self::$limit= $mainframe->getUserStateFromRequest('com_virtuemart.'.$view.'.limit', VmConfig::get('list_limit', 20), 'int');
// self::$limit= $mainframe->getUserStateFromRequest('global.list.limit', 'limit', VmConfig::get('list_limit', 20), 'int');

to
// self::$limit= $mainframe->getUserStateFromRequest('com_virtuemart.'.$view.'.limit', VmConfig::get('list_limit', 20), 'int');
self::$limit= $mainframe->getUserStateFromRequest('global.list.limit', 'limit', VmConfig::get('list_limit', 20), 'int');

All working good now. I hope it will help.
Title: Re: Bug after upgrade form 2.0.6 to 2.0.8 all items in category-view in one page
Post by: zendo2000 on July 13, 2012, 18:44:39 PM
I use ver 1.1.3 and have same problem. whare is file "router.php" in ver 1.1.3 ? , tell me plz.
Title: Re: Bug after upgrade form 2.0.6 to 2.0.8 all items in category-view in one page
Post by: Milbo on July 13, 2012, 22:32:59 PM
vm1.1.3 is working completly different and dont have a router.php of this kind.