Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

modify bug??

Quote Reply
modify bug??
Has anyone had problems with validating a modified link? I get a message,

Error validating links:
2 (Couldn't modify: The requested record was not found in the database.)

I checked the Links db and the record was there.

It seems the problem is in admin.cgi in the sub validate_records

# Modify records.

foreach $id (@modify_list) {
$record = $val->get_record ($id, 'HASH');
$record or ($error{$id} = "<li>$id (Couldn't find in validation table)") and next;

$lid = $record->{'LinkID'};
$links{$id}->{'ID'} = $lid;
$result = $db->modify_record ( \%{$links{$id}} );
$result or ($error{$id} = "<li>$id (Couldn't modify: $Links: BSQL::error)") and next;

I don't know if this is a bug or because my modifications. Anyone have success with modifying? Validating seems to work okay.

key is 2, $2 is 2, $1 is Tips (my last field) and $in->param($key) is modify

Kevin
Quote Reply
Re: modify bug?? In reply to
I've gotten that error message on admin-modify records too. It's resolved itself by reloading the screen and selecting the form again.

I can't reproduce it, so I've hesitated reporting it.

------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/








Quote Reply
Re: modify bug?? In reply to
You are right there but the only problem that it didn't modify the Links db and now it is nowhere to be found in the validation db. I think I'll work on it tomorrow.

Kevin
Quote Reply
Re: modify bug?? In reply to
i think it means that the ID changed before you edited it..

------------------
Jerry Su
Quote Reply
Re: modify bug?? In reply to
I haven't seen this before? Can you reproduce it?

Cheers,

Alex
Quote Reply
Re: modify bug?? In reply to
No, it's not reproduceable, it's random.

It happens every so often when you least expect it, and I've hit it when trying to modify an existing link.

In my case, I lose my changes, but reloading the page works/fixes the problem, and I can then re-edit it and go on.
Quote Reply
Re: modify bug?? In reply to
Hi. Alex, I apologize. With the new Links 1.11 I uploaded the new admin.cgi and forgot I had a few lines of modifications in the previous admin.cgi and I was calling Validate.def instead of another validating database. I've fixed that now and do not have any problems.

Alex, I was wondering when documentation about page.cgi would be up, as well as user.cgi . We get tidbits here and there, but a page on each of these functions would be so nice. When you have time...

Thanks,

Kevin
Quote Reply
Re: modify bug?? In reply to
FWIW ... I've made no changes to Admin.cgi....