Phoca Cart checkout error after update to J5

Phoca Cart - complex e-commerce extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart checkout error after update to J5

Post by Jan »

Hi, which error do you exactly get, which Joomla version and which PHP version, maybe there is some problem in Joomla ( Joomla\CMS\Event\Model\FormEvent) and PHP 8.3. :idea:
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart checkout error after update to J5

Post by Jan »

But testing now on PHP 8.3 and see no problem there. :idea:
Can you write here all the debug message including the trace?
Jan
If you find Phoca extensions useful, please support the project
Profdesigner
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Mar 2025, 08:49

Re: Phoca Cart checkout error after update to J5

Post by Profdesigner »

Thank you Jan for the work you are doing. I also had this error in the shopping cart when I enabled the option to place an order from a guest in the shopping cart. I go to the shopping cart and click on the "guest order" button.
------------------------------------
And I get the error:
Joomla\CMS\Event\Model\FormEvent::onSetData(): Argument #1 ($value) must be of type object|array, bool given, called in C:\OSPanel\domains\mysite.local\libraries\src\Event\AbstractEvent.php on line 227
------------------------------------

I use:
  • (PHP 8.1)
  • Joomla_5.2.4
  • com_phocacart_v4.0.11
  • pkg_phocacart_modules_v4.0.9
When the "Guest Order" is disabled, everything is working fine again.

p.s: I tested it, it doesn't work on PHP 8.3 and 8.4 either. The same mistake.


Use the beta version of your product?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart checkout error after update to J5

Post by Jan »

The error comes from Joomla system, not from Phoca Cart, can you list there the trace so we know which methods called this method (the trace is a part of debug message).

If you use Joomla 5, then you should use Phoca Cart 5, now in RC version:
https://www.phoca.cz/download/99-phoca- ... -component

Jan
If you find Phoca extensions useful, please support the project
Profdesigner
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Mar 2025, 08:49

Re: Phoca Cart checkout error after update to J5

Post by Profdesigner »

Thank you for your reply! I installed the 5th version of phocacart, everything is fine here and there is no error!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart checkout error after update to J5

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply