Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

ouch - Ratings as Graphic Fatal Error

Quote Reply
ouch - Ratings as Graphic Fatal Error
Oh dear, my very first try at a modification and - Fatal error.

I tried to use one of the modifications available in the resource area.

-----------

http://www.gossamer-threads.com/...fications/index.html:

"Rating as Image - This is a modification for LinksSQL which will display the the rating with 10 different images. All done in the admin area.+

---------------

It modified a template global, so I was hoping I could just remove it if it caused trouble.

It isn't listed any more under template globals - av.

Here is the error:

------------

A fatal error has occured:Unable to compile 'rate_img'. Reason: syntax error at (eval 30) line 9, near "} eg "
syntax error at (eval 30) line 11, near "}

elsif"
Global symbol "$rec" requires explicit package name at (eval 30) line 11.
Please enable debugging in setup for more details.

---------------

I'm new to Links SQL and I can't seem to find where the modification changed anything so I can remove it.



Thank, April

http://www.IndyLinks.com/pages/
A. Lougheed
IndyLinks.com
webmaster@indylinks.com
Quote Reply
Re: [aprillougheed] ouch - Ratings as Graphic Fatal Error In reply to
FOUND some of it.

I found the "added" global on the Build Template Globals and DELETED it. Ran Build again, and got error.

--------------------------------------------------

Building Category pages ...

Building category Arts-Entertainment ...
Links: 1


A fatal error has occured:
Can't call method "fetchrow_hashref" on an undefined value at (eval 33) line 71.


Please enable debugging in setup for more details.

----------------------------------------------



Don't know what to do. Please help.
A. Lougheed
IndyLinks.com
webmaster@indylinks.com
Quote Reply
Re: [aprillougheed] NEVERMIND ouch - Ratings as Graphic Fatal Error In reply to
Well, I'll be darned. I'm not sure what happened.

I removed the Template Global and tried to re-build all a couple of times and it looks all fixed now.



Hope I didn't bother anyone . . . :)

April
A. Lougheed
IndyLinks.com
webmaster@indylinks.com
Quote Reply
Re: [aprillougheed] NEVERMIND ouch - Ratings as Graphic Fatal Error In reply to
Hi,

You shouldn't use that modification as I believe it was designed for LinkSQL 1.X in mind. To use graphics as rating, see the link - Images for Ratings - in the global section here: http://www.gossamer-threads.com/...L/Globals/index.html. That code works fine with the 2.x series LinkSQL.

~ ERASER


Free JavaScripts @ Insight Eye