VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: Mr_Hunter on December 18, 2021, 13:22:19 pm

Title: Error message when i want to open/change a product in products
Post by: Mr_Hunter on December 18, 2021, 13:22:19 pm
Hello!
Does perhaps someone knows what causes this errror?

0 Missing format specifier at end of string

This happens when i want to open an product.
Perhaps it could happen from an joomla update?
Its installed version 3.10.4 and virtuemart 3.8.8 10472
It´s on php 8.0.14
Title: Re: Error message when i want to open/change a product in products
Post by: sscheidegger on January 10, 2022, 13:31:05 pm
Hello

I had the same error after updating from PHP 7.3 to PHP 8.0.13. I found the problem was caused by errors in several language files. As I'm using German admin language, I had to fix the language file /var/www/glzh/administrator/language/de-DE/de-DE.com_virtuemart.ini:

Before:
COM_VIRTUEMART_PRODUCT_EMAIL_SHOPPERS_SUBJECT="Mitteilung bezüglich dem Produkt %"
New:
COM_VIRTUEMART_PRODUCT_EMAIL_SHOPPERS_SUBJECT="Mitteilung bezüglich dem Produkt %1s"

Other language strings with errors:
/var/www/glzh/administrator/language/es-ES/es-ES.com_virtuemart.ini   COM_VIRTUEMART_PRODUCT_EMAIL_SHOPPERS_SUBJECT
/var/www/glzh/administrator/language/th-TH/th-TH.com_virtuemart.ini    COM_VIRTUEMART_PRODUCT_EMAIL_SHOPPERS_SUBJECT
/var/www/glzh/language/pl-PL/pl-PL.com_virtuemart.ini    COM_VIRTUEMART_WELCOME_USER
/var/www/glzh/language/nl-NL/nl-NL.com_virtuemart.ini    COM_VIRTUEMART_WELCOME_USER
/var/www/glzh/language/ru-RU/ru-RU.com_virtuemart.ini  COM_VIRTUEMART_WELCOME_USER

@VirtueMart Developers: Could you please fix this in the next release?

Thanks a lot,
Stefan


Joomla 3.9.27 and VirtueMart 3.8.8 10472
PHP 8.0.13