News:

Looking for documentation? Take a look on our wiki

Main Menu

Recent posts

#21
This is the solution (components/com_virtuemart/router.php at about line 495):

$limitstart = intval($limitstart);

                $limit = intval($limit);

                if ( $limitstart>0 ) {

replace with

$limitstart = intval($limitstart);

                $limit = intval($limit);

                if ( $limitstart>=0 ) {

#22
Yes, that's correct. It works as a workaround for now, but a final solution would be highly appreciated.
#23
Okay, I see now what you mean. The problem with the pagination started with version 4.6.0 and is not solved until now.
The proposed solution by Jumbo! helps but is not the final solution. The problem you mentioned in your last post remains.

But at least you can now access the first page.
#24
Hi,

if you open this page

https://www.holz-liebe.de/holz-liebe-shop/miniaturwerkstaetten/malermaurer.html

and navigate to page 2, 3 or 4 you can see the correct products. But if you go back to the main shop page

https://www.holz-liebe.de/holz-liebe-shop.html

and open "Miniaturwerkstätten" and afterwards the category "Maler & Maurer", you see the products from the previoiusly opened pagination page, instead of the products 1-10 from the first page.

In the "default" category page URL there is no "results,1-10" and it does not show the first 10 products.

Kind regards,
Tobias
#25
Quote from: TR mediendesign on January 20, 2026, 15:57:22 PMHello patbe60,

if I add this fix to the router, the pagination works again and adds "results,1-10" to the URL, but if you open the category again from the shop pages the same problem occurs. If there is no "results..." in the URL it is not working and shows the previously opened sub page products.

Kind regards,
Tobias

I checked your site but can't replicate the problem. Everything seems to work fine.
What do you mean with "open the category again from the shop pages"?
#26
Hello patbe60,

if I add this fix to the router, the pagination works again and adds "results,1-10" to the URL, but if you open the category again from the shop pages the same problem occurs. If there is no "results..." in the URL it is not working and shows the previously opened sub page products.

Kind regards,
Tobias
#27
I have found a working solution here in the forum:

https://forum.virtuemart.net/index.php?topic=152434.msg544487#msg544487
#28
Same problem here. The pagination doesn't go back to the first page.

Joomla 5.4.2 and VirtueMart 4.6.6

EDIT: When changing the number of products per page it works once (only the first time going back to page 1) but after the problem appears again.
#29
General Questions / Image uploads: file_title corr...
Last post by Margriet - January 19, 2026, 11:59:30 AM
Hello,
I'm experiencing a systematic image upload issue with VirtueMart 4.6.4 on Joomla 5.4.2, confirmed across multiple independent installations on different servers/hosting providers.
Problem Description:
When uploading product images, the file_title field in the #__virtuemart_medias table gets corrupted by having a random number appended after the file extension.
Examples:

  • EM1B8765-2147x1006.jpg becomes EM1B8765-2147x1006.jpg_16467
  • P9140313.webp becomes P9140313.webp_2251 (media_id 2927)
  • SAM_3458.jpg becomes SAM_3458.jpg_1

Additional Issues:

  • file_is_product_image is incorrectly set to 0 instead of 1 on upload
  • file_url remains correct (no corruption)
  • Thumbnails generate successfully with correct filenames
  • Images display correctly on frontend despite the corruption
  • Backend media list shows the corrupted file_title

Environment:

VirtueMart: 4.6.4 (11226)
Joomla: 5.4.2
PHP: [8.3]
Confirmed on multiple installations, different servers and hosting companies

Database Evidence:
SELECT virtuemart_media_id, file_title, file_url, file_is_product_image
FROM #__virtuemart_medias
WHERE file_type = 'product'
ORDER BY virtuemart_media_id DESC
LIMIT 10;
Results show file_title with incorrect extensions and file_is_product_image = 0.
Temporary Workaround:
Running these queries periodically to fix corrupted records:
Fix file_is_product_image
UPDATE `#__virtuemart_medias`
SET `file_is_product_image` = 1
WHERE `file_type` = 'product'
AND `file_mimetype` LIKE 'image/%'
AND `file_is_product_image` = 0;

-- Fix corrupted file_title
UPDATE `#__virtuemart_medias`
SET `file_title` = REGEXP_REPLACE(`file_title`, '\\.(jpg|jpeg|png|gif|webp)_[0-9]+$', '.$1')
WHERE `file_title` REGEXP '\\.(jpg|jpeg|png|gif|webp)_[0-9]+$'
AND `file_type` = 'product';
Questions:

  • Is this a known issue with VirtueMart 4.6.4 and Joomla 5.4.2?
  • Is there a fix or update planned?
  • What could be causing the random number suffix in file_title?

Any guidance would be greatly appreciated. This affects thousands of product images across multiple stores.
Thanks in advance for your help!
#30
Hi,

I got a strange problem, that also appears on the Virtuemart demo:

https://demo.virtuemart.net/hurlex-shop/t-shirts.html

If you open this page and set the number of shown products to "3", the pagination will be shown. There are 3 products on the first page and 1 on the second page. If you navigate to the second page, the single product will be shown. However, it is not possible to go back to the first page again. The shop stays on the second page permanently.

If you have more pagination items like here

https://www.holz-liebe.de/holz-liebe-shop/miniaturwerkstaetten/malermaurer.html

you can navigate to page 2, 3, 4, etc. and navigate between them properly, but it is not possible to go back to the first page again. It happens in multiple shops, the demo page, etc. A fix would be very appreciated.

I am using Joomla 5.4.2 and VirtueMart 4.6.6.


Kind regards,
Tobias