Can't submit new entries

Phoca Guestbook - creating guestbooks in Joomla! CMS
MelsonMarketing
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Dec 2023, 10:40

Can't submit new entries

Post by MelsonMarketing »

Hi!

I migrated a website from J 3.10.12 to 4.4.1.

The update of Phoca Guestbook went through without problems.

Now it's impossible to add new entries. Clicking the submit button the page is simply reloaded but only shows the empty form again.

No error messages or similar.

I tried all different captchas, checked the permissions - I can't find the mistake.

JOOMLA! 4.4.1
Phoca Guestbook 4.0.4
MySQL 8
Php 8.1

Thanks in advance

Michael
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9449
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Can't submit new entries

Post by Benno »

Hi,
did you migrate from Phoca Guestbook for J3 to Phoca Guestbook for J4 according to the official instructions?

Kind regards,
Benno
MelsonMarketing
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Dec 2023, 10:40

Re: Can't submit new entries

Post by MelsonMarketing »

Thank you.
Yes, the db looks fine.

With debug and error reporting I see this callstack:

Code: Select all

 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()
/var/www/vhosts/web720.webbox555.server-home.org/html/Huster/components/com_phocaguestbook/models/guestbook.php:605
Call stack
# 	Function 	Location
1 	() 	JROOT/components/com_phocaguestbook/models/guestbook.php:605
2 	PhocaguestbookModelGuestbook->checkReference() 	JROOT/components/com_phocaguestbook/models/guestbook.php:103
3 	PhocaguestbookModelGuestbook->store() 	JROOT/components/com_phocaguestbook/controllers/phocaguestbook.php:451
4 	PhocaguestbookControllerPhocaguestbook->submit() 	JROOT/libraries/src/MVC/Controller/BaseController.php:693
5 	Joomla\CMS\MVC\Controller\BaseController->execute() 	JROOT/components/com_phocaguestbook/phocaguestbook.php:20
6 	require_once() 	JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
7 	Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() 	JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
8 	Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() 	JROOT/libraries/src/Component/ComponentHelper.php:361
9 	Joomla\CMS\Component\ComponentHelper::renderComponent() 	JROOT/libraries/src/Application/SiteApplication.php:208
10 	Joomla\CMS\Application\SiteApplication->dispatch() 	JROOT/libraries/src/Application/SiteApplication.php:249
11 	Joomla\CMS\Application\SiteApplication->doExecute() 	JROOT/libraries/src/Application/CMSApplication.php:293
12 	Joomla\CMS\Application\CMSApplication->execute() 	JROOT/includes/app.php:61
13 	require_once() 	JROOT/index.php:32 
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't submit new entries

Post by Jan »

Hi, try to install this version:
https://github.com/PhocaCz/PhocaGuestbo ... v4.0.5.zip

and let me know if this is OK for you.

Jan
If you find Phoca extensions useful, please support the project
Akkarin
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 30 Oct 2011, 19:03

Re: Can't submit new entries

Post by Akkarin »

I have the same problem as described in the first post.
I did not know about the official migration instructions and already installed Joomla 5 and the newest beta version of the phoca guestbook.
What should I do now to get the guestbook running again? I ask to be sure and not to produce more problems.
Akkarin
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 30 Oct 2011, 19:03

Re: Can't submit new entries

Post by Akkarin »

I had a look at the migration instrcutions.
To be honest, I don't understand what this should change. I did not change the prexif for my Joomla tables. If I export the tables and import them again I should get the same situation.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't submit new entries

Post by Jan »

Hi, which problem do you exactly get?

Jan
If you find Phoca extensions useful, please support the project
Akkarin
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 30 Oct 2011, 19:03

Re: Can't submit new entries

Post by Akkarin »

As described in the first post of this thread I can enter all value and after "submit" no new entry is saved and no message appears.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't submit new entries

Post by Jan »

Hi, can you see the message in database - in phoca guestbook items table?

Even if you switch to standard template (for test only), you don't get any error message displayed on the site?

Jan
If you find Phoca extensions useful, please support the project
Akkarin
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 30 Oct 2011, 19:03

Re: Can't submit new entries

Post by Akkarin »

I don't see the message in the database.
I use the Cassiopeia template with some color changements (user.css.) and I don't get any error message.
Post Reply