Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Name (Invalid format)-?

Quote Reply
Name (Invalid format)-?
Every time I attempt to make a new catagory it gives me the error - "Name (Invalid format)" what am I doing wrong?

Justin
Quote Reply
Re: Name (Invalid format)-? In reply to
An example of the name causing that error would be helpful.
Quote Reply
Re: Name (Invalid format)-? In reply to
I attempted the following:
Arts & Humanities
Arts & Entertainment
Arts
Art
Quote Reply
Re: Name (Invalid format)-? In reply to
First of all, all spaces in the category names should be entered as underlines. When the category name is displayed, Links will convert them back to spaces.

Secondly, the "&" character is, by default, not allowed as part of the category name. You can modify the script to accept it, but it can cause you problems in the search routines if you do. If you want to modify the script, there are two places to do it:

1. category.def: In the variable, %db_def, find the line for Name and change the end of it from '^[\w\d/_-]+$'] to '^[\w\d/_&-]+$'].

2. nph-build.cgi, sub build_check_dir: Change my $chrs = quotemeta ("/_-"); to read my $chrs = quotemeta ("/_&-");.

I hope this helps.
Quote Reply
Re: [Bobsie] Name (Invalid format)-? In reply to
I am having the same trouble.
I looked for the non-english that all of you are talking about but all i get is dead links.
here is what im trying to post:

Biker_Art_or_Graphics

this is the error:
Error: Unable to Add Category
There were problems with the following fields:
  • Name (Invalid format)

Please fix any errors and submit the record again.
Quote Reply
Re: [TAZzie] Name (Invalid format)-? In reply to
No need for duplicate posts...

Is this a new install, or one that you know works? I see no problem with your category name, the script should accept it.

Also, you might be interested in this:
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=288273#p288273


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: May 20, 2007, 2:41 PM
Quote Reply
Re: [PerlFlunkie] Name (Invalid format)-? In reply to
Yes this is a new Install.
as long as it is only one word it works fine.
I will have a closer look at the link you posted tomorrow, Its way past my bed time.
Thanks for the reply
Quote Reply
Re: [TAZzie] Name (Invalid format)-? In reply to
Ok after looking at this it would seem they have fixed this and the trouble is somewhere else.
I found this in nph-build.cgi

Code:

sub build_check_dir {
# --------------------------------------------------------
# Checks the directory before we create it to make sure there
# are no funncy characters in it.

my ($root, $dir) = @_;
my $chrs = quotemeta ("/_-");

if (! -e $root) {
&cgierr ("Root directory: $root does not exist!");
}
if ($dir !~ m,^[\w\d$chrs]+$,) {
&cgierr ("Invalid characters in category name: $dir. Must contain only letters, numbers, _, / and -.");
}
return $input;
}

&cgierr ("Invalid characters in category name: $dir. Must contain only letters, numbers, _, / and -.");

I belive this was to fix it.

I sure would like to get this fixed, Meanwhile I will start looking for a script that works because from what i have read, No one knows how to fix it.

Last edited by:

TAZzie: May 23, 2007, 7:56 PM