Gossamer Forum
Home : Products : Links 2.0 : Customization :

Error when modifiying...

Quote Reply
Error when modifiying...
Hello;

Visitors to my site are getting the following error when they try to modify their sites:

Quote:
There were the following errors trying to modify your site:

Votes (Missing)
Rating (Missing)

Please make any changes and try again.

Does anyone know how I can fix this?

Thanks


------------------
________________________________________________
Saleel Majeed
saleel@trekzone.net
www.trekzone.net/
www.trekseek.com/

[This message has been edited by Saleel Majeed (edited January 24, 1999).]
Quote Reply
Re: Error when modifiying... In reply to
Check your links.def file. In the variable, %db_defaults, there should appear two items:

Quote:
'Votes' => '0',
'Rating' => '0'

If those items are not included, you will get that error message. Including the items in %db_defaults inserts "0" for each of the fields in the add/modify forms (or should).

I hope this helps.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/




[This message has been edited by Bobsie (edited January 24, 1999).]
Quote Reply
Re: Error when modifiying... In reply to
But do I want the votes and rating to revert to 0? I mean, a site may be ranked quite high, but when modified, it goes down to 0 again...

And anyway, in links.def, under %db_defaults, rating and votes are already there... (and set to 0,0).


------------------
________________________________________________
Saleel Majeed
saleel@trekzone.net
www.trekzone.net/
www.trekseek.com/

[This message has been edited by Saleel Majeed (edited January 24, 1999).]
Quote Reply
Re: Error when modifiying... In reply to
Sallel,

Quote:
But do I want the votes and rating to revert to 0? I mean, a site may be ranked quite high, but when modified, it goes down to 0 again...

Those settings will not reset anything. They are primarily there as a default for a new record.

Since you have those correctly specified, I would suggest you go through the installation instructions for the Rate-It mod and double check everything. Something is not right and you may have missed or inadvertently changed something that should not have been changed.

By the way, after installing the Rate-It mod, did you rebuild so that the votings and rating fields are added to all records in links.db? Records that were already in the database will not have those fields otherwise.
------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/




[This message has been edited by Bobsie (edited January 24, 1999).]
Quote Reply
Re: Error when modifiying... In reply to
Hi;

I found the prob. In site_html.pl, I forgot to add the two "hidden" form tags in the modify resource page. Duh! Smile

Thanks,


------------------
________________________________________________
Saleel Majeed
saleel@trekzone.net
http://www.trekzone.net/
http://www.trekseek.com/