Author Topic: com_virtuemart/helpers/cart.php on line 347  (Read 1296 times)

jjjuanjo8

  • Beginner
  • *
  • Posts: 2
com_virtuemart/helpers/cart.php on line 347
« 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27594
  • Always on vacation
    • Jenkin Hill Internet
Re: com_virtuemart/helpers/cart.php on line 347
« Reply #1 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.10.10211 on Joomla 3.9.13 PHP 7.0.33

jjjuanjo8

  • Beginner
  • *
  • Posts: 2
Re: com_virtuemart/helpers/cart.php on line 347
« Reply #2 on: September 01, 2019, 18:52:21 pm »
Hi, thank you very much for answering my version is: VirtueMart 3.6.0 10113

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27594
  • Always on vacation
    • Jenkin Hill Internet
Re: com_virtuemart/helpers/cart.php on line 347
« Reply #3 on: September 02, 2019, 11:51:39 am »
And is all OK when you turn off the warning messages?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.10.10211 on Joomla 3.9.13 PHP 7.0.33

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: com_virtuemart/helpers/cart.php on line 347
« Reply #4 on: September 02, 2019, 14:16:51 pm »
Where do you get these messages?
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: com_virtuemart/helpers/cart.php on line 347
« Reply #5 on: September 06, 2019, 20:18:22 pm »
This are just messages from an old sessions.

I added an extra isset check for it.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Rsn

  • Beginner
  • *
  • Posts: 29
  • A beginner
    • Legal company LEGION
Re: com_virtuemart/helpers/cart.php on line 347
« Reply #6 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:

Quote
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
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?

Rsn

  • Beginner
  • *
  • Posts: 29
  • A beginner
    • Legal company LEGION
Re: com_virtuemart/helpers/cart.php on line 347
« Reply #7 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.