• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Anyone know this error message?

Fiveohhh

Diamond Member
Premature end of script headers: /home/trav/public_html/cgi-bin/mojo/mojo.cgi
couldn't tie /home/trav/mojo_files/mj-TQ for reading: File exists at /MOJO/MailingList/Settings/Db.pm line 90.

just moved my parents business site and can't get this figured out. it happens when you try and add a name to the mailing list. Worked b4 i moved host, but something in the move broke it. fyi their site is travelquest the submission part is at the bottom of the front page
 
"Premature end of script headers" is the least descriptive error message ever. I hate it. It usually means one of the following things:

You FTP'd a text file as a binary file and thus have the wrong endlines in your file

You have the wrong interpreter in the shebang line

Your script does not print HTTP headers

Your script prints wrong HTTP headers

Your script doesn't compile at all

Those are the main ones.

EDIT: I should read the second line before responding... open up DB.pm and look at line 90 to see what file it's having problems with.
 
not sure how to decipher this , but heres line 88,89, and 90

sub _open_db {
my $self = shift;
tie %{$self->{DB_HASH}}, "AnyDBM_File", $self->_db_filename, O_RDWR|O_CREAT, $FILE_CHMOD or die 'couldn\'t tie '. $self->_db_filename . ' for reading: ' .$!;
 
Originally posted by: Fiveohhh
its there, I tried setting permissions to 777 just to see if it would change, but didn't help
Ok, then I'm out of suggestions. 😉
The only thing I really know how to code in is Fortran.
 
Originally posted by: Heisenberg
Originally posted by: Fiveohhh
its there, I tried setting permissions to 777 just to see if it would change, but didn't help
Ok, then I'm out of suggestions. 😉
The only thing I really know how to code in is Fortran.

thats one more than I know how to😀
 
Check the variable $self

It may be stated at the beginning or somewhere in the middle of the program. If you bought the script, most likely at the top.
 
Back
Top