The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> Server Overload
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1103309565

Message started by wflynn on 12/17/04 at 19:52:45

Title: Server Overload
Post by wflynn on 12/17/04 at 19:52:45

I get a error Server Overload whenever auctions complete but everything seems to work how can i remove this text so my bidders dont get worried.

Title: Re: Server Overload
Post by Dieter Werner on 12/18/04 at 10:32:47

Go to this section

Code:
#-#############################################
# Main Program
#-#############################################    
   disp_header();
   
   # We are going to catch each server-fault because we are nice.
   eval { $event->{$form{'action']->() };
   
   # We hide each server-fault and let the user think whatever; aren't we nice ;-)
   # oops("$@<br>$!<br>") if $@; # Only for testing the code
   oops($txt{'Server-Overload'}) if $@;


and uncomment this line:

Code:

   # oops("$@<br>$!<br>") if $@; # Only for testing the code


Run the script and let me know the error message that will be displayed.

Title: Re: Server Overload
Post by wflynn on 12/18/04 at 11:23:02

I get this error message when I uncomment like you said:
No such file or directory at eAuction.pl line 4757.
No such file or directory

Title: Re: Server Overload
Post by Dieter Werner on 12/18/04 at 11:27:39

Please post the line ...

Title: Re: Server Overload
Post by wflynn on 12/18/04 at 14:32:42

the line reads:

unlink "$config{'basepath'}$form{'ITEM'}_lock.dat" or die $!;

Title: Re: Server Overload
Post by Dieter Werner on 12/19/04 at 14:02:55


wflynn wrote:
the line reads:

unlink "$config{'basepath'}$form{'ITEM'}_lock.dat" or die $!;


The only place where this code is in use is sub proc_bid.
But that subroutine is far away from line 4757 ...
Please help me to help you.

Title: Re: Server Overload
Post by wflynn on 12/19/04 at 18:34:33

ok I figured out what caused the confusion.  I ftp'd the file in asci so it moved the lines before. Now I re-ftp'd everything in binary and I still have the same problem but now the line numbers will make sense to you:

The line that is causing the problem is 2379

unlink "$config{'basepath'}$form{'ITEM'}_lock.dat" or die $!;

Title: Re: Server Overload
Post by wflynn on 12/20/04 at 02:49:16

Just thought I would let you know I removed the line and the error goes away?  what function did I losing as everything seems to work?

Title: Re: Server Overload
Post by Dieter Werner on 12/20/04 at 12:07:26


wflynn wrote:
ok I figured out what caused the confusion.  I ftp'd the file in asci so it moved the lines before. Now I re-ftp'd everything in binary and I still have the same problem


To upload scripts in binary mode is not a good idea.

Title: Re: Server Overload
Post by wflynn on 12/20/04 at 12:17:24

Ok new to this but the line of code is the one causing the error as the error goes away if I comment it out.  I reuploaded it in ascii and did a clean install but still get the error unless I comment out that line.  Will commenting it out cause major problems?  Is there a workaround?  every thing else seems to work great.

Title: Re: Server Overload
Post by Dieter Werner on 12/20/04 at 12:27:20


wflynn wrote:
Just thought I would let you know I removed the line and the error goes away?  what function did I losing as everything seems to work?


You will lose the 'lock function'.
That means:
if two (or more) users bid at the same time, then the item file will crash.

Please, check whether the file $form{'ITEM'}_lock.dat was actually created.

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