VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jjjuanjo8 on September 01, 2019, 05:10:33 AM

Title: com_virtuemart/helpers/cart.php on line 347
Post by: jjjuanjo8 on September 01, 2019, 05:10:33 AM
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
Title: Re: com_virtuemart/helpers/cart.php on line 347
Post by: jenkinhill on September 01, 2019, 12:26:13 PM
You do not give any version information, but see this FAQ thread: http://forum.virtuemart.net/index.php?topic=102555.0
Title: Re: com_virtuemart/helpers/cart.php on line 347
Post by: jjjuanjo8 on September 01, 2019, 18:52:21 PM
Hi, thank you very much for answering my version is: VirtueMart 3.6.0 10113
Title: Re: com_virtuemart/helpers/cart.php on line 347
Post by: jenkinhill on September 02, 2019, 11:51:39 AM
And is all OK when you turn off the warning messages?
Title: Re: com_virtuemart/helpers/cart.php on line 347
Post by: StefanSTS on September 02, 2019, 14:16:51 PM
Where do you get these messages?
Title: Re: com_virtuemart/helpers/cart.php on line 347
Post by: Milbo on September 06, 2019, 20:18:22 PM
This are just messages from an old sessions.

I added an extra isset check for it.
Title: Re: com_virtuemart/helpers/cart.php on line 347
Post by: Rsn on September 27, 2019, 12:52:45 PM
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?
Title: Re: com_virtuemart/helpers/cart.php on line 347
Post by: Rsn on September 27, 2019, 13:56:29 PM
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.