Page 1 of 1

Editing a file, I get: Call to a member function format() on false

Posted: 29 May 2024, 09:56
by pat01
Hello

I do add a file and save. This works.
After I open it to edit and save again. Then I get an error message:
Call to a member function format() on false

The same happens if I open an (older) existing file and save.

How can I solve this?

Thanks / Danke
Patrick

Re: Editing a file, I get: Call to a member function format() on false

Posted: 29 May 2024, 15:03
by Benno
Hi,
which Joomla! version?
which Phoca Download Component version?
which PHP version?

Enable Joomla! 'Debug System' and set 'Error Reporting=Maximum' to get a more detailed error message (Call Stack).

Kind regards,
Benno

Re: Editing a file, I get: Call to a member function format() on false

Posted: 30 May 2024, 09:25
by pat01
Hello

Sorry, I totally missed those information.

Joomla 5.1.1
Phoca Download 5.0.2
PHP 8.3

call stack:
https://prnt.sc/kxSaUSz96IlP

Regards
Patrick

Re: Editing a file, I get: Call to a member function format() on false

Posted: 30 May 2024, 11:01
by christine
Hi Patrick,

We had similar cases where it was a bug in Joomla. It was fixed with Joomla 5.1.1.
https://github.com/joomla/joomla-cms/pull/43234

Maybe check whether en/language is up to date?
Database: Click on repair?

Kind regards
Christine

Re: Editing a file, I get: Call to a member function format() on false

Posted: 30 May 2024, 12:56
by pat01
Hi Christine

The database seems to be OK:

https://prnt.sc/TLo9Tc6b_3X4

https://prnt.sc/upFV36n6BmvZ

But now I did do update DB structure anyway for both (Joomla CMS and Phopca Download).

And after the error has gone!

It's strange that everything seemed to be OK in database, but obviously was not.

Anyway, the problem is solved.

Thanks a lot!

Patrick

Re: Editing a file, I get: Call to a member function format() on false

Posted: 30 May 2024, 18:38
by christine
Hi Patrick,

That's fine. Thank you for your feedback.

Kind regards
Christine