I moved server in November (still with same host)and since then none of my cgi files has worked. My link list has been non-operational. My host says I have illegal carriage returns in some files. I have downloaded another copy of the script and replaced the old copy but still no luck. Anyone encountered and overcome one of these.
Feb 21, 2003, 6:00 AM
Veteran / Moderator (18441 posts)
Feb 21, 2003, 6:00 AM
Post #4 of 22
Views: 13397
Erm, you were running admin.cgi via telnet?
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!
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!
Feb 21, 2003, 8:46 AM
Veteran / Moderator (18441 posts)
Feb 21, 2003, 8:46 AM
Post #6 of 22
Views: 13368
You could try adding this to the top of admin.cgi, and then running it from the browser;
use CGI::Carp qw(fatalsToBrowser);
It should give us better details on the 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!
use CGI::Carp qw(fatalsToBrowser);
It should give us better details on the 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!
Feb 23, 2003, 3:13 AM
Novice (12 posts)
Feb 23, 2003, 3:13 AM
Post #7 of 22
Views: 13398
admin.cgi works to the point of validating links. Then I get this:
CGI ERROR
==========================================
Error Message : fatal error: (Maybe you didn't strip carriage returns after a network transfer?)
Script Location : /var/usr2/netsexindex.com/cgi-bin/links/admin/admin.cgi
Perl Version : 5.00401
If there are more carriage returns to strip, how can I find them.
Thanks
Hopey
CGI ERROR
==========================================
Error Message : fatal error: (Maybe you didn't strip carriage returns after a network transfer?)
Script Location : /var/usr2/netsexindex.com/cgi-bin/links/admin/admin.cgi
Perl Version : 5.00401
If there are more carriage returns to strip, how can I find them.
Thanks
Hopey
Feb 25, 2003, 12:33 AM
Novice (12 posts)
Feb 25, 2003, 12:33 AM
Post #9 of 22
Views: 13383
Stealth,
I have uploaded in ASCII mode. Now I just get this for any CGI file:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ***** and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.24 Server at ****** Port 80
This is where I was at before trying to strip the CR manually.
Thanks
hopey
I have uploaded in ASCII mode. Now I just get this for any CGI file:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ***** and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.24 Server at ****** Port 80
This is where I was at before trying to strip the CR manually.
Thanks
hopey
Feb 27, 2003, 10:39 PM
Novice (12 posts)
Feb 27, 2003, 10:39 PM
Post #11 of 22
Views: 13317
Stealth,
I also got these messages after stripping carriage returs on one of the cgi.files. Are these warnings or errors.
=============
Ambiguous use of log => resolved to "log" => at add.cgi line 166.
Name "main::build_root_url" used only once: possible typo at add.cgi line 61.
Name "main::build_use_templates" used only once: possible typo at add.cgi line 31.
Name "main::db_mail_path" used only once: possible typo at add.cgi line 161.
Name "main::db_smtp_server" used only once: possible typo at add.cgi line 160.
Name "main::db_mailer_log" used only once: possible typo at add.cgi line 167.
Name "main::db_single_category" used only once: possible typo at add.cgi line 58.
Name "main::db_modified" used only once: possible typo at add.cgi line 92.
Name "main::db_script_url" used only once: possible typo at add.cgi line 137.
Name "main::db_contact_email" used only once: possible typo at add.cgi line 135.
====================
Thanks
hopey
I also got these messages after stripping carriage returs on one of the cgi.files. Are these warnings or errors.
=============
Ambiguous use of log => resolved to "log" => at add.cgi line 166.
Name "main::build_root_url" used only once: possible typo at add.cgi line 61.
Name "main::build_use_templates" used only once: possible typo at add.cgi line 31.
Name "main::db_mail_path" used only once: possible typo at add.cgi line 161.
Name "main::db_smtp_server" used only once: possible typo at add.cgi line 160.
Name "main::db_mailer_log" used only once: possible typo at add.cgi line 167.
Name "main::db_single_category" used only once: possible typo at add.cgi line 58.
Name "main::db_modified" used only once: possible typo at add.cgi line 92.
Name "main::db_script_url" used only once: possible typo at add.cgi line 137.
Name "main::db_contact_email" used only once: possible typo at add.cgi line 135.
====================
Thanks
hopey
Mar 5, 2003, 10:46 PM
Novice (12 posts)
Mar 5, 2003, 10:46 PM
Post #17 of 22
Views: 13281
Permissions are set to 755.
I re-uploaded the script and still having no luck.
I got this error message when I tried to run admin.cgi.
========
Illegal character \015 (carriage return) at admin.cgi line 22.
(Maybe you didn't strip carriage returns after a network transfer?)
=========
But line 22 of admin.cgi lopks fine, like this
16 # This script is not freeware! Please read the README for full details
17 # on registration and terms of use.
18 # ===============================
19 #
20 # Required Librariers
21 # --------------------------------------------------------
22 eval {
23 ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
24 ($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
===================
I don't see any carriage return at line 22. I'm so confused. Could my server be the problem at all.
Thanks for all your help guys.
Hopey
I re-uploaded the script and still having no luck.
I got this error message when I tried to run admin.cgi.
========
Illegal character \015 (carriage return) at admin.cgi line 22.
(Maybe you didn't strip carriage returns after a network transfer?)
=========
But line 22 of admin.cgi lopks fine, like this
16 # This script is not freeware! Please read the README for full details
17 # on registration and terms of use.
18 # ===============================
19 #
20 # Required Librariers
21 # --------------------------------------------------------
22 eval {
23 ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
24 ($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
===================
I don't see any carriage return at line 22. I'm so confused. Could my server be the problem at all.
Thanks for all your help guys.
Hopey
Mar 6, 2003, 12:48 AM
Enthusiast (720 posts)
Mar 6, 2003, 12:48 AM
Post #18 of 22
Views: 13254
put your cursor at the beginning of line 23 and backspace until you get:
23 ($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
but I bet you get another error
Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Code:
22 eval {($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX / 23 ($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
but I bet you get another error
Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Mar 7, 2003, 3:04 PM
User (228 posts)
Mar 7, 2003, 3:04 PM
Post #21 of 22
Views: 13271
It sounds as if you're on a Windoze system, and your host is using UNIX, and you aren't uploading in ASCII mode.
In text files (including Perl source), Windows uses a carriage return and a line break at the end of every line, Macs use a carriage return only, and UNIX uses a line break only.
To counteract that, upload all non-image files in ASCII mode, and all images in binary mode in your FTP client.
In text files (including Perl source), Windows uses a carriage return and a line break at the end of every line, Macs use a carriage return only, and UNIX uses a line break only.
To counteract that, upload all non-image files in ASCII mode, and all images in binary mode in your FTP client.