The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> getting 500 internal error when editing the text
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1106710118

Message started by aaronsnet on 01/26/05 at 04:28:38

Title: getting 500 internal error when editing the text
Post by aaronsnet on 01/26/05 at 04:28:38

Im trying to change the text of the scripts. I edit both the tag in 'eAuction.pl' and 'eConfig161.pl' and I continue to get an 500 Internal Error with the error saying Premature ending of script headers.  I am uploading both files in ASCII, so I am unclear as to what the problem is. If you have any suggestions for help or anything, I would appreciate it.

Title: Re: getting 500 internal error when editing the te
Post by Dieter Werner on 01/26/05 at 09:29:18

Post an example ...
(one or two lines of text you changed)

Title: Re: getting 500 internal error when editing the te
Post by aaronsnet on 01/26/05 at 22:22:47

this is from eConfig161.pl

This is from the original:

Code:
'we welcome you as a new member of our online auction' => ['Please click here to change your password now or you will forget it!', ],


This is what I changed it to:

Code:
'Welcome to the auction' => ['', ],


From the eAuction.pl, I changed:

Code:
$txt{'we welcome you as a new member of our online auction'}.<br>


to:

Code:
$txt{'Welcome to the auction'}.<br>


Each time I do that, I continue to get the 500 Internal Server error.

thanks for your help!

Title: Re: getting 500 internal error when editing the te
Post by Dieter Werner on 01/26/05 at 23:22:30


aaronsnet wrote:
this is from eConfig161.pl

This is from the original:

Code:
'we welcome you as a new member of our online auction' => ['Please click here to change your password now or you will forget it!', ],

Sorry, but that's NOT from the original ...
please double check the changes you did.

Title: Re: getting 500 internal error when editing the te
Post by Marko on 10/12/05 at 15:20:11

I get this same problem when adding another language..

500 Internal Server Error

What should i do?

Title: Re: getting 500 internal error when editing the te
Post by Dieter Werner on 10/12/05 at 16:26:48

Please, post an example (one line) of the %txt you changed.

Title: Re: getting 500 internal error when editing the te
Post by designsedge on 06/10/06 at 23:10:28

Make sure that you are saving the file ANSI and not UTF-8, I had the same problem earlier.

Title: Re: getting 500 internal error when editing the te
Post by gpspigeon on 07/20/06 at 04:49:48

#!/bin/sh
#
# Version 1.00
#
# A shell script for eliminating pesky DOS or Windows
# "carriage returns" from text files such as are used for
# programming in Perl.
#
# By peter@gregg.homelinux.net
# 20th July, 2006
#
# Are you baffled by server error (500) errors while executing
# a Perl script?
#
# Although there may be other reasons, this filter
# script should eliminate one of the most common causes of the error
# especially if you are trying to execute programmes that at some stage
# have been manipulated in a DOS or Windows environment.
#
# Background:-
# In text files, DOS and Windows delineate lines with a
# carriage return line feed combination (CRLF). Linux
# (and all Unix and Unix workalikes) use only a line feed (LF).
#
# "Perl" language programmes can fail and produce server errors (500)
# if the (CRLF) end of line format exists. To safeguard against "corrupt"
# Perl scripts this shell script will filter and remove those troublesome
# carriage returns. It works on single files and on wildcards by converting
# each file from DOS/Windows to UNIX format or, if the file is already in UNIX
# format then no conversion will take place. It keeps a backup of the file used
# at the time of running the script and retains the original file date and
# time by using the "touch" command.
#
# CAUTION:-
# This script must NEVER be used against binary files because it will
# irretrievably corrupt a binary file.
#
# The script is as simple as possible however it would be a good idea
# to also backup any files on which you intend to run the script. Use a safe
# area outside the directory that holds the files you wish to filter and be sure
# to make the copies prior to the actual execution of the script on the target files.
#
# Either type or cut and paste this document into your TEXT EDITOR.
# Never use a word processor like Windows Word or Wordperfect for editing
# programmes as they add formatting information to the file that corrupts it
# for the target application. You may leave out the comments but don't forget
# to include the very first line in this script i.e."#!/bin/sh" as it is used by the
# shell in the execution of the utility.
# (It may be necessary to adjust the first line if your environment uses a
# different shell or if it is located in a different path)
# Save the file with a suitable name e.g. filterCR
# Make the file executable. e.g. chmod 755 filterCR
# Copy the executable file to the /usr/bin directory
# You should now be ready to return to the directory containing the files you
# wish to filter and run your new utility.
# At your command prompt type e.g. filterCR ./filename
#
# Your filtered file is now ready for further use in Perl.
#
while [ $1 ]; do {
     echo Converting $1
     cp $1 $1.bak
     touch -r $1 $1.bak
     cat $1.bak | sed s/[:cntrl:]M]$//g > $1
     touch -r $1.bak $1
     shift
}
done      
#
# PS. If you find this utility saves you days of frustration similar to what
# I experienced (along others in the forum) while trying to get Everyscripts
# "eAuction" up and running due to this very reason, please consider sending
# a small donatation to Dieter Werner so that he may quench his thirst and
# keep up his excellent work on the eAuction project. You will know if the
# script has saved you much heartache if the file created after running the
# script has fewer characters in it than the original. (There will be one less
# character for each line processed)
#
# Have fun!
# Peter Gregg - Brisbane Australia

Title: Re: getting 500 internal error
Post by ludwig_von_rocht on 08/03/06 at 17:26:46

I am also getting this error message, but I haven't made any changes to the code yet. I'm using Dreamweaver MX 2004, I have changed the settings to save file as Unix newlines, uploaded after downloading from site, changed permissions according to installation/configuration files, try to view in browser, and I get 500 Internal Server Error. In the Apache error log, I get the following:

[Thu Aug 03 10:20:14 2006] [error] [client xxx.xxx.xxx.xxx] (2)No such file or directory: exec of '/home/webint/cgi-bin/eAuction161/eAuction.pl' failed
[Thu Aug 03 10:20:14 2006] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: eAuction.pl

I've tried creating the directories for closed and userreg, but that didn't work either.
Any ideas?

Title: Re: getting 500 internal error when editing the te
Post by Dieter Werner on 08/03/06 at 18:32:46

Don't use Dreamweaver!
Edit the file with Notepad (or better: use a real editor like Context or PsPad)

Title: Re: getting 500 internal error
Post by gpspigeon on 08/05/06 at 18:33:30


ludwig_von_rocht wrote:
I am also getting this error message, but I haven't made any changes to the code yet. I'm using Dreamweaver MX 2004, I have changed the settings to save file as Unix newlines, uploaded after downloading from site, changed permissions according to installation/configuration files, try to view in browser, and I get 500 Internal Server Error. In the Apache error log, I get the following:

[Thu Aug 03 10:20:14 2006] [error] [client xxx.xxx.xxx.xxx] (2)No such file or directory: exec of '/home/webint/cgi-bin/eAuction161/eAuction.pl' failed
[Thu Aug 03 10:20:14 2006] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: eAuction.pl

I've tried creating the directories for closed and userreg, but that didn't work either.
Any ideas?


Try running the script I posted a couple of entries ago on this board. I was not aware that CRLF  end of line format were placed in  my eAuction files due to the Windows environment in which I downloaded and transferred the data to my server. (I had also been careful to transfer in ASCII mode) Even if the files are not tarnished running the script will not do any harm.

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.