Page 1 of 1

Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 9:45 am
by Pasostro
Script URL: http://www.zambellorenzo.it/domande-psi ... /gbook.php
Version of script: 1.7
Hosting company: Aruba

Write your message below: I get the error below when I try to approve or disapprove comments

"Error
Wrong entry ID hash. Possible problems:

- the entry has already been approved or rejected
- you didn't copy the full approval/rejection URL"

Some information: I don't know this GBook platform, I took this client 1 month ago and he had a previous developer who installed GBook. All I did was making a full redirection of the main website from the directory www.zambellorenzo.it/psicoterapeuta/ to the new directory www.zambellorenzo.it/psicoterapeuta-milano/, but the guestbook as you can see is under the directory www.zambellorenzo.it/domande-psicoterapia/ and I didn't touch it during my work...so I don't think this is related.

Here you can find the approval and disapproval URLs that my client receives through his email:
- http://www.zambellorenzo.it/domande-psi ... prove&do=1
- http://www.zambellorenzo.it/domande-psi ... prove&do=0

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 9:52 am
by Klemen
Do you have any text files inside your guestbook's "apptmp" folder?

If you post a new entry to the guestbook for approval, is a new .txt file created inside "apptmp"?

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 10:30 am
by Pasostro
Last .txt file was dated 22/04/2017, which is the day of the last comment displayed on the gbook.php page.
Now I've tried to post a comment and it created a new .txt with this information:

"Luca Pasini paso.bunk3@gmail.com test Gbook Maggio 3, 2017 0 0 37.116.156.242
"
I think the .txt regarding the comment posted yesterday by an user that my client couldn't approve is missing from the directory for whatever reason.
Is that the issue?

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 10:32 am
by Pasostro
I'm attaching a Filezilla screenshot

Image

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 12:10 pm
by Klemen
What's the permission set to the "apptmp" folder? Try 777 (rwxrwxrwx) then see if a new text file appears when you submit a message.

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 12:20 pm
by Pasostro
It was 755, changed it to 777, tried to write a new message and the .txt appears correctly. The client had been able to approve my first test comment this morning and I guess he will be able to approve this one too.

Are we done for the moment or is there anything else I should look into?

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 1:18 pm
by Klemen
Files entries.txt and banned_ip.txt should be set to 666 (just verify), the rest should work fine.

Note that any old entries (with missing txt files) will not be available, but new one should work fine.

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Wed May 03, 2017 1:41 pm
by Pasostro
That's ok, thank you very much for helping me so quickly and have a good day.

Re: Wrong entry ID hash. Can't approve or disapprove comments.

Posted: Thu Aug 24, 2017 5:09 am
by micheal090
Thanks for the sharing. :roll: