
Phoca Cart checkout error after update to J5
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart checkout error after update to J5
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. 

If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart checkout error after update to J5
But testing now on PHP 8.3 and see no problem there. 
Can you write here all the debug message including the trace?
Jan

Can you write here all the debug message including the trace?
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 21 Mar 2025, 08:49
Re: Phoca Cart checkout error after update to J5
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:
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?
------------------------------------
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
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?
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart checkout error after update to J5
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 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
-
- Phoca Newbie
- Posts: 2
- Joined: 21 Mar 2025, 08:49
Re: Phoca Cart checkout error after update to J5
Thank you for your reply! I installed the 5th version of phocacart, everything is fine here and there is no error!
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart checkout error after update to J5
OK
If you find Phoca extensions useful, please support the project