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

Error in Category.pm line 418

Quote Reply
Error in Category.pm line 418
Hi,

my problem is since update to version 2.2.1 - i receive the error code in Category.pm line 418.
I repaired tables, reset tables and reimport the database backup - but didnīt fix the error.

What can I do to fix this error?

Andreas Schmidt


Building Detailed pages ...
2 3 4 5 6 7 8 9 10 11 13 15 16 17 18 19 20 21 22 23
24 25 26 27 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45
46 47 48 51 52 54 55 56 58 97 98 99 100 101 102 103 104 105 106

A fatal error has occured:GT::SQL::Table (15366): Wrong argument passed to this subroutine. Must pass category id to template_set at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/Links/Table/Category.pm line 418.
Please enable debugging in setup for more details.

Stack Trace
======================================
Links (15366): Links::environment called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/Links.pm line 521 with no arguments.
Links (15366): Links::fatal called at GT::Base::error line 389 with arguments
(GT::SQL::Table (15366): Wrong argument passed to this subroutine. Must pass category id to template_set at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/Links/Table/Category.pm line 418.
).
Links (15366): GT::Base::error called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/Links/Table/Category.pm line 418 with arguments
(Links::Table::Category=HASH(0x8548960), BADARGS, FATAL, Must pass category id to template_set).
Links (15366): Links::Table::Category::template_set called at Links::Build::build_detailed line 511 with arguments
(Links::Table::Category=HASH(0x8548960), [undef]).
Links (15366): Links::Build::build_detailed called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/GT/Plugins.pm line 142 with arguments
(HASH(0x871e70c)).
Links (15366): GT::Plugins::dispatch called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/Links/Build.pm line 30 with arguments
(GT::Plugins, /pages/29/5d/d0003300/htdocs/cgi-bin/admin/Plugins, build_detailed, CODE(0x85f9854), HASH(0x871e70c)).
Links (15366): Links::Build::build called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/nph-build.cgi line 528 with arguments
(detailed, HASH(0x871e70c)).
Links (15366): main::_build_detailed called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/GT/Plugins.pm line 142 with arguments
(HASH(0x8406b2c)).
Links (15366): GT::Plugins::dispatch called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/nph-build.cgi line 87 with arguments
(GT::Plugins, /pages/29/5d/d0003300/htdocs/cgi-bin/admin/Plugins, create_detailed, CODE(0x830e2e0), HASH(0x8406b2c)).
Links (15366): main::build_all called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/nph-build.cgi line 42 with no arguments.
Links (15366): main::main called at /pages/29/5d/d0003300/htdocs/cgi-bin/admin/nph-build.cgi line 29 with no arguments.
Quote Reply
Re: [baremos] Error in Category.pm line 418 In reply to
It looks like you have a link that is not in a category. Have a look at links 106 and 107 (or the next one that exists) and check that the categories they are in are valid.
Quote Reply
Re: [afinlr] Error in Category.pm line 418 In reply to
Fine!
I found a link (id 90) and this was assigned to a category, wich i deleted.
Thank You afinlr !!
Quote Reply
Re: [baremos] Error in Category.pm line 418 In reply to
Hi,

This plugin should help you find any more unlinked entries.

It checks;

1) If an entry exists in lsql_CatLinks for each link.
2) If the category ID in lsql_CatLinks, matches up to a valid category in lsql_Category.

Its pretty simple... but has already saved myself/some of my customers a lot of time :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!