Hi,
I'm trying to write a script, that will update some links with new categories.
However, I'm getting an error:
PROCESSING: Andytest test test (validate_and_email)
CategoryID cannot contain the value '25846
25850
25821' at /home/user/domain.com/cgi-bin/directory/admin/Plugins/ValidationSystem.pm line 242.
Please enable debugging in setup for more details.
The values are built up like so:
..giving something like:
25846\n25850\n25821
Can anyone suggest why I'm getting that error? (also tried with \r\n)
I've also tried it with:
..but that only gets the *last* category ID I want :/
TIA
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
I'm trying to write a script, that will update some links with new categories.
However, I'm getting an error:
PROCESSING: Andytest test test (validate_and_email)
Quote:
A fatal error has occured: CategoryID cannot contain the value '25846
25850
25821' at /home/user/domain.com/cgi-bin/directory/admin/Plugins/ValidationSystem.pm line 242.
Please enable debugging in setup for more details.
The values are built up like so:
Code:
$add->{'CatLinks.CategoryID'} = join("\n",$IN->param($num.'-CatLinks.CategoryID'));..giving something like:
25846\n25850\n25821
Can anyone suggest why I'm getting that error? (also tried with \r\n)
I've also tried it with:
Code:
$add->{'CatLinks.CategoryID'} = $IN->param($num.'-CatLinks.CategoryID');..but that only gets the *last* category ID I want :/
TIA
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

