Gossamer Forum
Home : Products : Gossamer Links : Discussions :

error message with nph-build

Quote Reply
error message with nph-build
Hi,

I have an error message with nph-build.cgi :

Code:
Building Home Page...
Warning: Use of "shift" without parentheses is ambiguous at (eval 141) line 2.
Warning: Use of "shift" without parentheses is ambiguous at (eval 242) line 2.
Warning: Use of "shift" without parentheses is ambiguous at (eval 344) line 2.
Warning: Use of "shift" without parentheses is ambiguous at (eval 446) line 2.
Warning: Use of "shift" without parentheses is ambiguous at (eval 548) line 2.
Warning: Use of "shift" without parentheses is ambiguous at (eval 650) line 2.
Did somebody already encounter this problem ?

Thanks for your ideas.

Mick
Quote Reply
Re: [Dj_] error message with nph-build In reply to
Hi,

You get this in SSH I'm guessing?

Sounds like you just have the -w flag set at the top of nph-build.cgi (and if its building ok, I wouldn't worry :))

Cheers

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
Quote Reply
Re: [Andy] error message with nph-build In reply to
Hi Andy,

Thank you for your answer.

Who, I have this message in
SSH.

I do not understand your suggestion.
I must add -w ?

Excuse my ignorance.

Mick

Quote Reply
Re: [Dj_] error message with nph-build In reply to
Hi,

What does the first line of nph-build.cgi look like? (i.e the bit that start with #!/usr)

Cheers

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
Quote Reply
Re: [Andy] error message with nph-build In reply to
Hi Andy,

just : #!/usr/local/bin/perl

Mick
Quote Reply
Re: [Dj_] error message with nph-build In reply to
Mmm weird - not sure why those messages are coming up then, sorry :(

Cheers

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
Quote Reply
Re: [Andy] error message with nph-build In reply to
Hi Andy,

You think that one global can be at the origin of the problem ?

Thanks for answer.

Mick
Quote Reply
Re: [Andy] error message with nph-build In reply to
Hi Andy,

I found the origin of this error.

It is with the use of this global 'count_words' :

Code:
sub {
return scalar(split /\s+/, shift . \' \' . shift);
}

I do not know how to correct. Frown

Mick
Quote Reply
Re: [Dj_] error message with nph-build In reply to
Not sure. I would just use:

Code:
sub {
if (length($_[0] < 1) { return 0; }
my @tmp = split / /, $_[0];
return $#tmp + 1;
}

Cheers

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
Quote Reply
Re: [Andy] error message with nph-build In reply to
Thanks Andy, Smile

Your solution functions perfectly.

I also used this code successfully :

Code:
sub {
my $count = 0;
for (@_) {
my @words = split /\b/;
$count += scalar @words;
}
return $count;
}

http://www.gossamer-threads.com/...?post=237087#p237087

Mick
Quote Reply
Re: [Dj_] error message with nph-build In reply to
Quote:
I also used this code successfully :

I think thats aimed for when you wanna pass in more than one field to count the words :)

Cheers

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