Page 1 of 1

unable to delete msgs, invalid id

Posted: Mon Oct 15, 2007 4:06 pm
by gildionne
Have a modified Gbook 1.5 (using mods in this forum). Was running OK for months. I store all my site files in an off-line archive file area, and the last time I updated the archive everything was working properly with gbook.

Now just this weekend, when I tried to delete an existing message, I got the message
"ERROR
Invalid ID"

I noticed that banned ip file was quite full, so I deleted existing and reinstalled original from archive. I also reinstalled settings.php, gbook.php and modified my_entries file (has different name) to delete the last two entries.

Even after all this I cannot get into the delete area. The other admin functions: View IP, Reply, and View E-mail seem to work properly.

Can you assist?

Posted: Mon Oct 15, 2007 7:28 pm
by gildionne
I forgot to include my guestbook address in my post.
http://www.gilsbus.ca/gbook/gbook.php

Posted: Mon Oct 15, 2007 7:49 pm
by Klemen
There's an error in your code (your own or one from a mod) your delete links print for example
http://www.gilsbus.ca/gbook/gbook.php?a=delete&num=0</a>.'

instead of just

http://www.gilsbus.ca/gbook/gbook.php?a=delete&num=0

(the </a>.' is too much at the end)

Posted: Tue Oct 16, 2007 2:52 pm
by gildionne
Thanks for the help Klemen,

I found the extra end tag and deleted it.

Earlier, when doing some testing off-line, I must have started a link, and manually added an end tag, not thinking about the tag auto-complete which is enabled in my editor. When I deleted the link later, I missed that extra tag. The file eventually got uploaded to the web, possibly as a result of another modification and then the problem showed itself.

my guestbook is now back to normal operation.

Thanks again.

Gil