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

Build Error - Please Help

Quote Reply
Build Error - Please Help
Hi,



I just installed a new copy of Links 2. Everything in the admin panel work except Building Pages.

It just gave a page not found error so I searched the post here and included the following in my npn-build.cgi file.

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

use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/html \n\n";

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

Now it says:

Content-type: text/html Software error:

Execution of nph-build.cgi aborted due to compilation errors.



Any help on this would be great.

Thanks,
Chris
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
Have you tried the $npg++ build fix? It doesn't only happen on Cobalt servers; so that could be your problem.

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
If you mean doing the following in both instances, yes I have.

# $nph++;



Thanks for your fast reply.



Chris
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
Have you tried building via SSH/Telnet?

perl /path/to/script/nph-build.cgi

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
I guess I am out of luck then since I do not have SSH/Telnet access.



Thanks for your help. If anyone ever had this problem please let me know.



Chris
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
How about anything in your error logs? (usually accessable via a web-based control panel, or in a file called error_log; normally located in the /logs/ folder).

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
hi Andy,

I must say you are very helpful.

I have attached a copy of my error log. Maybe this can help.
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
Can you paste a copy of line 87,88 and 89 here? Looks like it may be corrupt. Have you made any other hacks/mods to it?

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
No changes were made fresh download and install.

Chris







String found where operator expected at nph-build.cgi line 382, near "$db_file_name") or &cgierr(""
(Missing operator before ") or &cgierr("?)
Bareword found where operator expected at nph-build.cgi line 382, near "") or &cgierr("unable"
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
Sorry post the wrong thing.

Here is lines 87,88, 89 and 90. I have also attached the file. It was downloaded and installed with no changes except for perl path and to debug.

87 my $auto = $in{'auto'} || 0;
88 my $start = time();
89 my $date = e"t_date;
90 my $time = e"t_time;
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
It looks like its corrupt. Canyou try downloading the nph-build.cgi script again from the GT site, and then upload it to your site, and see if it runs?

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
Downloaded a fresh copy from http://gossamer-threads.com/...s/links/download.htm

Did not change anything and uploaded it. Still the same problem.

I have also attached the new copy of nph-build.cgi.

I think that the copy that is available for download is corrupt already.



Thanks for your help,



Chris
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
The attached seems ok. In your version you attached, the code seemed to be corrupt. Are you sure it uploaded correctly? What does your error log say?

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
String found where operator expected at nph-build.cgi line 88, near "my $time = e""
(Might be a runaway multi-line "" string starting on line 87)
(Missing semicolon on previous line?)
syntax error at nph-build.cgi line 88, near "my $time = e""
Bareword found where operator expected at nph-build.cgi line 88, near "my $time = e"t_time"
(Do you need to predeclare my?)
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
Very weird. I looked at the script, and it all seems ok. Are you sure its uploading correctly? Delete the old file, upload the new one, and re-CHMOD. What happens then?

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
Just tried what you said and still the same thing.

Maybe it's not to be.

If you provide a personal email address I can send you logins and you can take a look for yourself if you like.
Quote Reply
Re: [caribweb] Build Error - Please Help In reply to
Yeah, give me a PM (via the menu at the top), and I'll have a look into it for you.

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
Fixed Cool

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!
Quote Reply
Re: [Andy] Build Error - Please Help In reply to
I bet it was a syntax error in links.cfg? Wink

Last edited by:

Paul: Jun 3, 2003, 11:05 AM
Quote Reply
Re: [Paul] Build Error - Please Help In reply to
Nope, it was a problem with something in nph-build.cgi. I just uploaded the original, changed the path to perl, added a fatalsToBrowser call in it (to catch errors), and then gave it a run. All worked fine :)

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!