unable to delete msgs, invalid id

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
gildionne
Posts: 18
Joined: Thu Nov 16, 2006 4:21 pm

unable to delete msgs, invalid id

Post 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?
gildionne
Posts: 18
Joined: Thu Nov 16, 2006 4:21 pm

Post by gildionne »

I forgot to include my guestbook address in my post.
http://www.gilsbus.ca/gbook/gbook.php
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
gildionne
Posts: 18
Joined: Thu Nov 16, 2006 4:21 pm

Post 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
Post Reply