Page 1 of 2

Phoca Cart checkout error after update to J5

Posted: 05 Feb 2025, 00:53
by RolandLaich
Hi - I am a webdesigner and a customer of mine uses Phoca Cart with J4. After updating anything to J5 all worked fine except the checkout failing with an error as follows:
Joomla\CMS\Event\Model\FormEvent::onSetData(): Argument #1 ($value) must be of type object|array, false given, called in /path/to/libraries/src/Event/AbstractEvent.php on line 227
In the forum I found some info about Phoca Cart for J5 is currently beta.
Could you please tell the schedule for full compatibility of Phoca Cart with J5?
Best regards, Roland

Re: Phoca Cart checkout error after update to J5

Posted: 05 Feb 2025, 11:06
by Nidzo
Although it says that there is a beta version, Phoca Cart is compatible and works with Joomla 5. Only some small details related to E-mail templates are left to release the stable version.
Download latest version https://github.com/PhocaCz/PhocaCart/re ... Beta96.zip

Re: Phoca Cart checkout error after update to J5

Posted: 10 Feb 2025, 14:03
by Jan
As nidzo wrote, Phoca Cart 5 is fully compatible with Joomla 5. Please enable debug mode and past here the whole error message so we know from where the error is coming. It looks like Joomla issue.

Thank you, Jan

Re: Phoca Cart checkout error after update to J5

Posted: 18 Feb 2025, 13:38
by RolandLaich
Hi Jan, thank you very much for replying!
Last days I was fully occupied, so details are coming with a little delay. Sorry for that.

Here is the error message and call stack:
Joomla\CMS\Event\Model\FormEvent::onSetData(): Argument #1 ($value) must be of type object|array, false given, called in /var/customers/webs/UppercaseDesi/labor/franze/libraries/src/Event/AbstractEvent.php on line 227

Call Stack:

# Function Location
1 () JROOT/libraries/src/Event/Model/FormEvent.php:116
2 Joomla\CMS\Event\Model\FormEvent->onSetData() JROOT/libraries/src/Event/AbstractEvent.php:227
3 Joomla\CMS\Event\AbstractEvent->setArgument() JROOT/libraries/src/Event/AbstractEvent.php:115
4 Joomla\CMS\Event\AbstractEvent->__construct() JROOT/libraries/src/Event/AbstractImmutableEvent.php:51
5 Joomla\CMS\Event\AbstractImmutableEvent->__construct() JROOT/libraries/src/Event/Model/FormEvent.php:56
6 Joomla\CMS\Event\Model\FormEvent->__construct() JROOT/libraries/src/MVC/Model/FormBehaviorTrait.php:198
7 Joomla\CMS\MVC\Model\FormModel->preprocessForm() JROOT/components/com_phocacart/models/checkout.php:510
8 PhocaCartModelCheckout->loadFormGuest() JROOT/components/com_phocacart/models/checkout.php:466
9 PhocaCartModelCheckout->getFormGuest() JROOT/libraries/src/MVC/View/AbstractView.php:159
10 Joomla\CMS\MVC\View\AbstractView->get() JROOT/components/com_phocacart/views/checkout/view.html.php:233
11 PhocaCartViewCheckout->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
12 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_phocacart/controller.php:53
13 PhocaCartController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730
14 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_phocacart/phocacart.php:18
15 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
16 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
17 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
18 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:218
19 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:273
20 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
21 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:58
22 require_once() JROOT/index.php:32

The currently installed Phoca Cart extensions are as follows:
https://imgur.com/a/k3EXJu4

PHP is at version 8.3.8
Joomla version is 5.2.3

Re: Phoca Cart checkout error after update to J5

Posted: 21 Feb 2025, 21:31
by Jan
Hi, which Phoca Cart version do you exactly run? The lines in Phoca Cart do not reflect the debug information. Can you update to latest Beta: https://github.com/PhocaCz/PhocaCart/re ... Beta99.zip

Re: Phoca Cart checkout error after update to J5

Posted: 22 Feb 2025, 12:58
by RolandLaich
Hi Jan, following your tip I installed 5.0.0. beta now and seemingly checkout works with that version.
Despite that it feels a little uncomfortable to run a beta version in a production environment. And I am unsecure about the meaning of Nidzo's statement (thank you for it also): "some small details related to E-mail templates are left to release the stable version". Does this concern the confirmation emails sent out after checkout to the buyers?
However, is there an agenda for a stable version 5? Would be great to have some information of a kind of timleine for a good communication to my customer I am working for.
Many thanks in advance.

Re: Phoca Cart checkout error after update to J5

Posted: 27 Feb 2025, 02:07
by Jan
Hi, as written in other posts, I am waiting for last PR for Phoca Cart, then it will be tested and RC can be relased. Hopefully the last PR will be in days, then there will be some testing and hopefully there will be RC verison.

Jan

Re: Phoca Cart checkout error after update to J5

Posted: 27 Feb 2025, 12:41
by RolandLaich
Ok, thank you Jan for this info!

Re: Phoca Cart checkout error after update to J5

Posted: 04 Mar 2025, 15:35
by Jan


We are testing now these Beta versions:
https://github.com/PhocaCz/PhocaCart/re ... eta104.zip
https://github.com/PhocaCz/PhocaCart/re ... eta104.zip

which should be transformed to RC as soon as possible.

Jan

Re: Phoca Cart checkout error after update to J5

Posted: 05 Mar 2025, 01:29
by mikewitherell
I am having the same problem with the checkout button being filled with error messages. I tried upgrading to v5patches up to 104, but the thing is broken still. Any suggestions as to what I can do? Can I downgrade to v4?