I am despairing. I had to shut down my old website (Joomla 3) 1 week ago and did a new installation on Joomla 4.3.2 with PHP 8.1.
Everything works until now, but unfortunately the Phoca Guestbook extension has serious problems!
(I hope that these errors do not also appear in Phoca Gallery)
So Phoca Guestbook installs correctly and also the language file. Everything works except for one thing:
If you want to delete a post in the frontend, you get this message:
0
count(): Argument #1 ($value) must be of type Countable|array, int given
I found a post in the forum. Because here:
viewtopic.php?t=64717
I also changed everything there with a PHP editor (except for the penultimate entry in the post)
Code: Select all
Post by kleini78 » Jun 06, 2023, 10:13 am
Hello,
many thanks for your help. Now it works great.
I also changed line 556 (components/com_phocaguestbook/models/guestbook.php )
CODE: SELECT ALL
if(!$this->_db->execute()) {
and line 499 ( Components/com_phocaguestbook/Models/Gästebuch.php ).
CODE: SELECT ALL
if ((Int)$cid < 1) {
(to delete an entry)
Is it possible that the extension doesn't run smoothly with PHP 8.1?
I hope you understand my rusty English
Best regards
Jens