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

Message started by Ronnie on 05/01/05 at 00:01:02

Title: Regfile Error
Post by Ronnie on 05/01/05 at 00:01:02

I downloaded a fresh copy of the script.  Configured it to work with my email/site info.  When the script first runs I get  an Regfile cannot open error, Use of uninitialized value at .../eAuction161/eConfig161.pl line 742...I'ill go throught the menu options will work one time and a second time l'ill have  the same error.

These are the lines (I made no change)
738 ##########################
739 # Edit your Navigation-Bar (if needed)
740 ##########################
741 sub disp_navbar {
742 print <<EO_HTML;  

Thanks  Ronnie

Title: Re: Regfile Error
Post by Dieter Werner on 05/01/05 at 00:10:49

Please, post the error message and the URL of the script.

Title: Re: Regfile Error
Post by Ronnie on 05/01/05 at 15:04:20

Hi - Thanks for getting back to me.  I've been using the top menu.  One time I'ill get the error and the next time it will be O.K.  I use catalog (get error), goto Hot items (no error), New items (error), Hot items (error), Help (no error).

The url is:

http://www.momnpopsware.com/cgi-bin/eAuction161/eAuction.pl

The error is:
Error
Regfile: Dieter
could not be opened

Please, contact the
Auction Administrator
if you belive this to be a server problem.
------------------------------------------------------------------------
Use of uninitialized value at ... /cgi-bin/eAuction161/eConfig161.pl line 755.

eConfig161.pl code lines 745 - 756.
745 </div>
746 EO_HTML
747
748    disp_navbar();
749 }
750
751 #-###########################
752 # Edit your Navigation-Bar (if needed)
753 #-###########################
754 sub disp_navbar {
755 print <<EO_HTML;
756 <div align="center">

The Configuration code:
#-#############################################
# Config-Section-01
#-#############################################

   $config{'cgi_dir'}            = 'cgi-bin';
   $config{'auction_dir'}      = 'eAuction161';
   $config{'get_path'}          = 1;
   $config{'basepath'}     = '.../auction/'; # I edited location
   $config{'get_mail'}            = 1;
   $config{'mailprog'}     = '/usr/lib/sendmail';
   $config{'web_server'}      = 1;

#-#############################################
# Config-Section-02
#-#############################################

   $config{'closedir'}                = 'closed';
   $config{'closedays'}          = 15;
   $config{'regdir'}                = ''; # Don't want registration
   $config{'adminpass'}          = 'auction';
   $config{'admin_address'}      = 'momnpop@momnpopsware.com';
   $config{'cc_to_admin'}          = 1;
   $config{'colornavbar'}          = '#EEEEEE'; # Color of the navbar
   $config{'colornavbarbg'}      = '#BBBBBB'; # Background of the navbar
   $config{'colortablebg'}          = '#FFFFFF'; # Backgrund of the tables
   $config{'colortablehead'}      = '#BBBBBB'; # Color of the table-header
   $config{'colortablebody'}      = '#EEEEEE'; # Color of the table-body
   $config{'aftermin'}              = 5; # minutes
   $config{'newokay'}              = 0;  # 1 = yes | 0 = no
   $config{'sitename'}              = qq|Mom 'N' Pop's Software's<br>Auction|;
   $config{'flock'}                = 1; # 1 = yes | 0 = no
   $config{'page_break'}          = 5;
   $config{'max_searchtime'}      = 10;
   $config{'disp_runtime'}          = 1;
   $config{'print_phone_fax'}      = 1; # 1 = yes | 0 = no
   $config{'the_row_color'}      = '#FEFEFE';
   $config{'alt_row_color'}      = '#EFEFEF';

#-#############################################
# Config-Section-03
# The Config-Variables of: form_date
#-#############################################
  $config{'continent'}              = 0;
  $config{'time_delay'}          = 0;
#-#############################################
# Config-Section-04
# The Config-Variables of: form_currency
#-#############################################
  $config{'currency'}            = 0;
  $config{'cur_symbol'}      = '$';
  $config{'allow_cent'}        = 1;

#-#############################################
# Config-Section-05
# The Config-Variables of: disp_list
#-#############################################
   $config{'no_image'}            = 'hammer.gif';
   $config{'if_image'}            = 'camera.gif';
   $config{'buyit_image'}      = 'buy_it.gif';
   $config{'hot_num'}            = 5;
   $config{'new_time'}            = 6;
   $config{'soon_time'}        = 6;

#-#############################################
# The Config-Variables of: Text-Translation
#-#############################################

   $config{'lang'} = 1;

Thanks again for all your efforts.  Its a great script...Ronnie

Title: Re: Regfile Error
Post by Dieter Werner on 05/01/05 at 21:18:03

Delete the 'closed' folder ...
or run the 'test' again.

Title: Re: Regfile Error
Post by Ronnie on 05/01/05 at 22:50:44

Hi Dieter - Thanks again.  I deleted the closed folder and that did not help.  Then I reran the test and the same happened.  Ronnie

Title: Re: Regfile Error
Post by Dieter Werner on 05/02/05 at 09:51:15

Please, post the content of your sub disp_navbar
and ...
try this: $config{'regdir'} = 'userreg';

Title: Re: Regfile Error
Post by Ronnie on 05/02/05 at 22:13:30

Hi Dieter - I changed the $config{'regdir'} = 'userreg';  and it did not make a difference.

Here is the disp_navbar sub.  Thanks again  Ronnie

#-#############################################
# Edit your Navigation-Bar (if needed)
#-#############################################
sub disp_navbar {
print <<EO_HTML;
<div align="center">
   <table width="770"  bgcolor="$config{'colornavbarbg'}" border="0" cellpadding="1" cellspacing="1">
       <tr  bgcolor="$config{'colornavbar'}">
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?lang=$form{'lang'}"><b>$txt{'Categories'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=hot&searchstring=$txt{'Hot Items'}&lang=$form{'lang'}">
               <b>$txt{'Hot Items'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=new&searchstring=$txt{'New Items'}&lang=$form{'lang'}">
               <b>$txt{'New Items'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=end&searchstring=$txt{'Last Minute Items'}&lang=$form{'lang'}">
               <b>$txt{'Last Minute Items'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=min&searchstring=$txt{'Low Price Items'}&lang=$form{'lang'}">
               <b>$txt{'Low Price Items'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=reserve&searchstring=$txt{'Reserve Price Met'}&lang=$form{'lang'}">
               <b>$txt{'Reserve Price Met'}</b></a>
           </td>
       </tr>
       <tr  bgcolor="$config{'colornavbar'}">
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=reg&lang=$form{'lang'}"><b>$txt{'New Registration'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=creg&lang=$form{'lang'}"><b>$txt{'Change Registration'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=lostdata&lang=$form{'lang'}"><b>$txt{'Lost Alias or Password'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=usercenter&lang=$form{'lang'}"><b>$txt{'My Auction-Center'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=new&lang=$form{'lang'}"><b>$txt{'Post New Item'}</b></a>
           </td>
           <td align="center" valign="middle" nowrap>
               <a href="$ENV{'SCRIPT_NAME'}?action=help&lang=$form{'lang'}"><b>$txt{'Help'}</b></a>
           </td>
       </tr>
   </table>
</div>
EO_HTML

}

Title: Re: Regfile Error
Post by Dieter Werner on 05/02/05 at 22:51:45


Code:

 <td align="center" valign="middle" nowrap>
     <a href="$ENV{'SCRIPT_NAME'}?action=creg&lang=$form{'lang'}"><b>$txt{'Chang e Registration'}</b></a>
 </td>
 <td align="center" valign="middle" nowrap>
     <a href="$ENV{'SCRIPT_NAME'}?action=lostdata&lang=$form{'lang'}"><b>$txt{'L ost Alias or Password'}</b></a>
 </td>


$txt{'Chang e Registration'}
must be:
$txt{'Change Registration'}

$txt{'L ost Alias or Password'}
must be:
$txt{'Lost Alias or Password'}

Title: Re: Regfile Error
Post by Ronnie on 05/03/05 at 00:03:00

It is correct in the script.  The program was when I copied the script to paste in the message that when the spaces appeared.

Title: Re: Regfile Error
Post by Dieter Werner on 05/03/05 at 15:11:02

Please, double check your installation - I can't see any scripting-error.
Maybe you changed the content of %txt ?

Title: Re: Regfile Error
Post by Ronnie on 05/05/05 at 22:27:26

Thanks...I will check it again this weekend.

Title: Re: Regfile Error
Post by Ronnie on 05/09/05 at 22:33:21

I think I found the source of the problem.  It seems that once I removed the test files the script worked O.K.  I think the problem relates to the individual user .dat files.  Thanks again...Ronnie

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