News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with pagination and sorting [vm 4.0.20]

Started by hazael, May 05, 2023, 14:40:31 PM

Previous topic - Next topic

hazael

The new version of Virtuemart 4.0.20 is written with errors - probably the sorting and pagination is incompatible with the Joomla 4 standard.
Pagination works only in the base version of Joomla 4. External plugins like 4SEF stopped working normally with this.
Pagination links are generated normally, but there is no way to go to the next category page.

temporary solution:
administrator/components/com_virtuemart/models/product.php
after:
$limitStart = vRequest::getInt ('limitstart', 0,'GET');
add:
$limitStart = $app->input->getInt('limitstart');

Roderic

I can confirm adding this line, also makes the pagination working again in Joomla 3. So not an Joomla 4 only issue.


MAD King

#3
Same here.
VirtueMart 4.0.22 10864 and Joomla! 3.10.11.
Joomla! 4.3.4
VirtueMart 4.2.4 10922

MAD King

Quote from: hazael on May 05, 2023, 14:40:31 PM

temporary solution:
administrator/components/com_virtuemart/models/product.php
after:
$limitStart = vRequest::getInt ('limitstart', 0,'GET');
add:
$limitStart = $app->input->getInt('limitstart');


Thank you.
Joomla! 4.3.4
VirtueMart 4.2.4 10922

Roderic

Quote from: hazael on May 05, 2023, 14:40:31 PM
temporary solution:
administrator/components/com_virtuemart/models/product.php
after:
$limitStart = vRequest::getInt ('limitstart', 0,'GET');
add:
$limitStart = $app->input->getInt('limitstart');

It would be nice, if this fix gets added to the core.


MAD King

This thread needs to be pinned for non working pagination solution. Thanks to hazael it is working again.
Joomla! 4.3.4
VirtueMart 4.2.4 10922

Milbo

Quote from: hazael on May 05, 2023, 14:40:31 PM
temporary solution:
administrator/components/com_virtuemart/models/product.php
after:
$limitStart = vRequest::getInt ('limitstart', 0,'GET');
add:
$limitStart = $app->input->getInt('limitstart');

Hmm, the GET as third parameter, says where to get the info. What happens, if you remove it? If you use

$limitStart = vRequest::getInt ('limitstart', 0);

Does it work then? vRequest::getInt ('limitstart', 0,'POST'); would be for POST.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MAD King

Quote from: Milbo on August 21, 2023, 20:48:24 PM
Quote from: hazael on May 05, 2023, 14:40:31 PM
temporary solution:
administrator/components/com_virtuemart/models/product.php
after:
$limitStart = vRequest::getInt ('limitstart', 0,'GET');
add:
$limitStart = $app->input->getInt('limitstart');

Hmm, the GET as third parameter, says where to get the info. What happens, if you remove it? If you use

$limitStart = vRequest::getInt ('limitstart', 0);

Does it work then? vRequest::getInt ('limitstart', 0,'POST'); would be for POST.

I do not know. I used hazael's fix and it worked on J4.3.3 and VirtueMart 4.2.0 10905
Joomla! 4.3.4
VirtueMart 4.2.4 10922

hazael

#9
Today I installed the latest version 4.2.2 10908 - why is this important fix still missing? Why are we ignored? It's just a stupid piece of code
The proposed POST option does not work. This component still does not work as it should.

Kuubs

#10
Quote from: hazael on September 13, 2023, 11:09:45 AM
Today I installed the latest version 4.2.2 10908 - why is this important fix still missing? Why are we ignored? It's just a stupid piece of code
The proposed POST option does not work. This component still does not work as it should.

I also have this issue! Fixed it by using the solution defined above!

sandomatyas

Same with Joomla! 3.10.12  + VirtueMart 4.2.4 10922 :(

macigatto

hello, is there a solution?
I have upgrade to last version of virtuemart 4.2.2 in Joomlaz 3 and pagination is not working.

what I have to do?

thanks

ksfbjoern

Had the same problem today with Virtuemart 4.2.4

Hazael's solution fixed it so far. It would be nice, if this would be fixed in a future version.

yaniv1

When I removed the third parameter 'GET', it resolved the issue.

$limitStart = vRequest::getInt ('limitstart', 0);