Tags:
create new tag
view all tags

Premature end of script headers error when creating new topic

Under the TigerSkin I try to use more>> create but I get an error message from Apache.

When I check the error.log I find the following message:

[Tue Nov 12 12:08:06 2002] [error] [client 194.97.108.99] File does not exist: /usr/local/httpd/htdocs/usr/local/httpd/twiki/bin/view/TWiki/TWikiRegistration [Tue Nov 12 12:08:06 2002] [error] (2)No such file or directory: exec of /usr/local/httpd/twiki/bin/createtopic failed [Tue Nov 12 12:08:06 2002] [error] [client 194.97.108.99] Premature end of script headers: /usr/local/httpd/twiki/bin/createtopic

If I try to execute in the browser address list for example something like http://linservb:3000/twiki/bin/view it shows me the Main Page. If I try http://linservb:3000/twiki/bin/createtopic it gives me the error message again.

Any idea?

  • TWiki version: Where can I find this information? I downloaded TWiki in October
  • Web server: Apache-1.3.23-73
  • Server OS:SuSE Linux ?? with a 2.4.18 kernel
  • Web browser: Konqueror, Netscape 7.0
  • Client OS: SuSE Linux 8.0 with a 2.4.18 kernel

-- StefanWolber - 12 Nov 2002

Answer

A "Premature end of script headers" error suggest that there is a problem with file permissions of the createtopic script, or that the #!/usr/bin/perl shibang line points to an incorrect location for the perl executable.

-- PeterThoeny - 26 Nov 2002

The file permissions as well as the location is the same as in all the other scripts too.

[Wed Nov 27 17:18:56 2002] edit: Use of uninitialized value in string ne at ../lib/TWiki/Plugins/SessionPlugin.pm line 171. [Wed Nov 27 17:19:35 2002] [error] [client 194.97.108.65] File does not exist: /usr/local/httpd/htdocs/usr/local/httpd/twiki/bin/view/TWiki/TWikiRegistration [Wed Nov 27 17:19:36 2002] save: Use of uninitialized value in string ne at ../lib/TWiki/Plugins/SessionPlugin.pm line 171. [Wed Nov 27 17:19:49 2002] [error] [client 194.97.108.65] File does not exist: /usr/local/httpd/htdocs/usr/local/httpd/twiki/bin/view/TWiki/TWikiRegistration [Wed Nov 27 17:19:49 2002] [error] (2)No such file or directory: exec of /usr/local/httpd/twiki/bin/logon failed [Wed Nov 27 17:19:49 2002] [error] [client 194.97.108.65] Premature end of script headers: /usr/local/httpd/twiki/bin/logon [Wed Nov 27 17:22:38 2002] [error] [client 194.97.108.65] File does not exist: /usr/local/httpd/htdocs/usr/local/httpd/twiki/bin/view/TWiki/TWikiRegistration [Wed Nov 27 17:22:38 2002] [error] (2)No such file or directory: exec of /usr/local/httpd/twiki/bin/createtopic failed [Wed Nov 27 17:22:39 2002] [error] [client 194.97.108.65] Premature end of script headers: /usr/local/httpd/twiki/bin/createtopic

Both errors (the one with the exec of logon and the on of TWikiRegistration) as per the apache log above might be in relation to to the TigerSkin??? Other scripts are running perfect but for what ever reasons apache uses it document root path and puts it in front of the script path.

-- StefanWolber - 27 Nov 2002

I encountered the same problems when using the twiki package from Debian/testing. In my case the problem occured when creating a new user account or changing the password for an existing user account.

So I had a look at the script-files in /usr/lib/cgi-bin/twiki and found out that all the scripts that resulted in that error started with the following line:

#!/usr/bin/perl -wTI.

The scripts without problem started with:

#!/usr/bin/perl -wT

I edited the scripts that showed the problem and removed the "I.". And now it seems to work fine.

-- RainerKoenig - 07 Feb 2003

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2003-02-07 - RainerKoenig
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.