Page 1 of 1

"0 Call to a member function format() on bool" when changing item

Posted: 24 Apr 2024, 14:13
by woodyf4u
Hi,
I receive this error "0 Call to a member function format() on bool" when changing an article and a category.
When I edit such an item I get the error message.
But when I create a new item it works fine.

This is a copy of the error reporting:

0 Call to a member function format() on bool

Call Stack

# Function Location
1 () JROOT/libraries/src/Form/Field/CalendarField.php:400
2 Joomla\CMS\Form\Field\CalendarField->filter() JROOT/libraries/src/Form/Form.php:1047
3 Joomla\CMS\Form\Form->filter() JROOT/libraries/src/Form/Form.php:991
4 Joomla\CMS\Form\Form->process() JROOT/libraries/src/MVC/Model/FormModel.php:219
5 Joomla\CMS\MVC\Model\FormModel->validate() JROOT/libraries/src/MVC/Controller/FormController.php:636
6 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:730
7 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocadownload/phocadownload.php:47
8 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
9 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
12 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:195
13 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
14 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
15 require_once() JROOT/administrator/index.php:32 douma


What can I do to resolve it?

Joomla 5.1.0 and Phoca Download 5.0.2

Re: "0 Call to a member function format() on bool" when changing item

Posted: 24 Apr 2024, 14:48
by Benno
Hi,
see: viewtopic.php?t=65569

Kind regards,
Benno

Re: "0 Call to a member function format() on bool" when changing item

Posted: 24 Apr 2024, 15:34
by Jan
Hi,

In short, FYI: it is Joomla bug (fixed) but it waits for next release:
https://github.com/joomla/joomla-cms/pull/43234
(in the link, Benno pasted, there is information how to quick fix temporarily)

Jan

Re: "0 Call to a member function format() on bool" when changing item

Posted: 25 Apr 2024, 18:26
by woodyf4u
OK thanks

Re: "0 Call to a member function format() on bool" when changing item

Posted: 25 Apr 2024, 18:35
by Benno
You're welcome!

Kind regards,
Benno