Hi, I'm a Spanish speaker and I would like your guidance on the following error and its possible solution, thank you very much
Hi, thank you very much for answering my version is:
VirtueMart 3.6.0 10113
Warning: Illegal string offset 'byDefault' in /home/imaprobc/public_html/components/com_virtuemart/helpers/cart.php on line 347
Warning: Illegal string offset 'fields' in /home/imaprobc/public_html/components/com_virtuemart/helpers/cart.php on line 355
Warning: Illegal string offset 'byDefault' in /home/imaprobc/public_html/components/com_virtuemart/helpers/cart.php on line 347
Warning: Illegal string offset 'fields' in /home/imaprobc/public_html/components/com_virtuemart/helpers/cart.php on line 355
You do not give any version information, but see this FAQ thread: http://forum.virtuemart.net/index.php?topic=102555.0
Hi, thank you very much for answering my version is: VirtueMart 3.6.0 10113
And is all OK when you turn off the warning messages?
Where do you get these messages?
This are just messages from an old sessions.
I added an extra isset check for it.
Hello. I also met a similar problem.
It does not depend on old or new sessions.
I completely cleaned up the sessions, but the problem remains.
Such messages are shown by the Cart module:
QuoteWarning: Illegal string offset 'byDefault' in .../public_html/components/com_virtuemart/helpers/cart.php on line 347
Warning: Illegal string offset 'fields' in .../public_html/components/com_virtuemart/helpers/cart.php on line 355
Warning: Illegal string offset 'byDefault' in .../public_html/components/com_virtuemart/helpers/cart.php on line 347
Warning: Illegal string offset 'fields' in .../public_html/components/com_virtuemart/helpers/cart.php on line 355
Adding a product to the cart does not work correctly.
At the same time, I drew attention to one feature:
Initially, I made the site on the main domain. But then we decided to use a subdomain. And now I open the same site, but through a subdomain in url. And the Cart module generates such an error.
In the admin panel in the shop settings, I updated the url (with a subdomain), but this does not help.
Joomla 3.9.11 VM 3.6.0 10113
P.S. Could you please tell me at the same time: can the same VM shop work for several domains at once?
When I changed PHP version for the subdomain (from 5.6 to 7.2), the site began to work fine. This error is not displayed. Adding product to cart works fine.