VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Zegenrijk on November 06, 2025, 12:07:27 PM

Title: pagination not working
Post by: Zegenrijk on November 06, 2025, 12:07:27 PM
Hello,
J 5.4.0. VM 4.6.0
When i go to a subcategory with multiple pages, i go for example to the last page (3). Then i click on de 1 (first page), no page change, it stays on page 3.

And (i think same problem): Now i go back to Home of the website a go again to the same subcategory i was in before above. Now the page started with the last page (3) and not the first page

I recently updated to 4.6.0, i think it's a 4.6.0 bug.
Regards Michel
Title: Re: pagination not working
Post by: macigatto on November 20, 2025, 19:29:30 PM
Im facing the same problem after upgrading to VM 4.6.4 from lower.

Did u resolved?
Thanks
Title: Re: pagination not working
Post by: Jumbo! on November 20, 2025, 21:19:04 PM
Open - components/com_virtuemart/router.php

Find the following codes between lines 495 and 499:

                $limitstart = intval($limitstart);

                $limit = intval($limit);

                if ( $limitstart>0 ) {

Replace the above with:

                $rawLimitstart = $limitstart;
                $limitstart = intval($limitstart);
                $limit = intval($limit);

                if ( $limitstart >= 0 && $rawLimitstart !== null ) {

This should resolve the issue. :)
Title: Re: pagination not working
Post by: WebStuff on November 22, 2025, 00:02:53 AM
$app = JFactory->getApplication();
$limitStart = $app->input->getInt('limitstart');

Is another possibility