Page 1 of 2

Unable to Post a Comment on a Guestbook

Posted: 01 Apr 2020, 22:51
by tavellana
Hello,
We use Phoca Guestbook to post prayer requests on the site: https://catholicradioindy.org/contact-u ... r-requests

We recently upgraded Phoca Guestbook to the current version as there was an outdated version as well as Joomla. Everything is now updated and working except for the Phoca Guestbook.

When I submit a post using the link above as a user, but I cannot see the post for review as an admin (from a procedure standpoint, we made all prayer requests reviewable before being published so as not to include spam or requests that are not prayer requests).

I am able to enter posts on the back end, however, a user on the front end cannot submit a post for review.

Any help would be very much appreciated. Thank you in advance!
Tony

Re: Unable to Post a Comment on a Guestbook

Posted: 01 Apr 2020, 23:48
by christine
Hi Tony,

maybe this helps: https://www.phoca.cz/documents/3-phoca- ... parameters

Options > General:
Review Item - (Yes | No) If yes, post will be displayed after the Administrator's approval
Kind regards
Christine

Re: Unable to Post a Comment on a Guestbook

Posted: 13 Aug 2020, 14:17
by ipsec
Hi,

iam using latest Phoca Version 3.0.11. I have exactly the same problem. I think I configured Phoca correctly, it worked for years. In the meantime I haven't changed anything, the PHP version has stayed the same, etc. When I make an entry, I also get an email and Phoca confirms receipt of the message. But I don't see the post in the backend. The post is logged, I can see that in the backend. Does anyone know what's wrong here? Link to the page: https://www.messerundscherenschleifer.de/gaestebuch

I just checked the database, there are the entries that are missing. Why don't they appear in the frontend?

Re: Unable to Post a Comment on a Guestbook

Posted: 14 Aug 2020, 11:25
by christine
Hi ipsec,

Nachdem Du die Seite verlinkst - Danke schön - können wir hier ja deutsch weitermachen :-)

Nehme an, es ist auf public Zugriff gestellt. Siehe hier: https://www.reisefotografien.eu/phoca-b ... e-benutzer

Werde versuchen, eine Testnachricht zu schicken. Diese kannst Du ja später löschen. (E-Mail Adresse nicht öffentlich).

Liebe Grüße
Christine

So, da bin ich wieder, nach meinen Testnachrichten (2). Glaube gesehen zu haben (ganz kurz) die Nachricht, dass diese weggegangen sei. (war ein grüner Balken). Frontend leider nichts.
Überprüfe mal, ob Du eingestellt hast, dass diese erst freigegeben werden muss. (Backend)

Re: Unable to Post a Comment on a Guestbook

Posted: 14 Aug 2020, 12:58
by ipsec
Hallo Christine,

danke ich habe die Bestätigung per Mail bekommen, dass Du einen Eintrag gemacht hast. Die Meldung im Frontend (grüner Balken)ist da, die wird unter dem Header gezeigt und nach dem Absenden scrollt die Seite ganz hoch, das konnte ich bisher nicht abstellen. Dein Post ist auch in der Datenbank und den Logs. Im BAckend ist alles auf öffentlich egstellt. Das Problem ist, das seit geraumer Zeit Phoca dem Eintrag keine ID mehr mitgibt, daher werden die Postings im Frontend nicht gezeigt. Und weil die Einträge keine ID haben, kann ich sie per PHPMyAdmin nicht bearbeiten.
Das ist gerade das Problem und ich habe keine Ahnung wie ich dem beikommen kann.

Re: Unable to Post a Comment on a Guestbook

Posted: 14 Aug 2020, 16:16
by Jan
Hallo, bin ich nicht 100% sicher, was du mit:

"... Eintrag keine ID mehr mitgibt, daher werden die Postings im Frontend nicht gezeigt"

Da ist eine Auto-Increment Spalte, so jeder Beitrag ein ID haben muss. :idea:

Code: Select all

CREATE TABLE IF NOT EXISTS `#__phocaguestbook_items` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `catid` int(11) NOT NULL default '0',
  `parent_id` int(11) NOT NULL default '0', ...
Jan

Re: Unable to Post a Comment on a Guestbook

Posted: 17 Aug 2020, 07:50
by ipsec
Moin Jan,

hier ist ein Bild zum besseren Verständnis:

https://imgur.com/3VJvjB4

Ich habe wenig Plan von MySQL, eventuell ist Dein Code ja bereits was ich brauche: Ich muß den Einträgen wo die ID fehlt, eine ID nachträglich mitgeben?

Re: Unable to Post a Comment on a Guestbook

Posted: 18 Aug 2020, 20:33
by Jan
Hallo, ist das Screenshot von Datenbank? Welche Datenbak benutzt du? Ist das MySQL oder MariaDB?

Die IDs sind von Datenbank automatisch managiert, so eigentlich geht es nicht, es manueall mitgeben. :idea: Die Frage ist, wiese funktioniert es bei dir nicht. Es soll einfach ohne ID nicht gehen :idea:

Jan

Re: Unable to Post a Comment on a Guestbook

Posted: 20 Aug 2020, 23:35
by ipsec
Hi,

ja das ist ein Screenshot der MySQL Datenbank. KAnn ich das Problem nicht irgendwie per SSH lösen?

Re: Unable to Post a Comment on a Guestbook

Posted: 21 Aug 2020, 15:53
by ipsec
I solved it myself. I downloaded the corresponding table, entered the missing IDs by hand and inserted them again using an SQL command. Unfortunately I always have to do this by hand ... :(