[ic] Contents of pulldowns for payment options and shipping options gone?

Dan Helfman interchange-users@interchange.redhat.com
Fri May 24 14:35:01 2002


On Fri, 2002-05-24 at 11:03, Kellen Weissenbach wrote:
> > Check your error log. Perhaps something is amiss with your catalog and it
> > cannot write to the variable table.
> >
> > - Ed L.
> >
> >
> 
> Hello Ed,
> 
> Here is the error I found that has killed the server on several occassions
> as it appears in the error.log.  I can't make heads or tails of it, but I
> suspect this is the problem.
> 
> 208.38.79.225 jEjdEPrm:208.38.79.225 - [20/May/2002:08:44:18 -0400] edu
> /cgisys/cgiwrap/totalchoice/edu.cgi/ui Safe: Can't call method "set_field"
> on an undefined value at (eval 1012) line 40.

I too had this problem. I fixed it by adding:

  my $vdb = $Db{variable};

to the file that is (on my system) located at:

  /usr/lib/interchange/lib/UI/pages/admin/wizard/do_launch.html

Doing this did make the error message go away. However, applying changes
and launching in the admin wizard interface still does NOT make any
changes to the variable table and so none of my settings affect the
running interchange system. Any help would be appreciated, as I'm trying
to extend the admin wizard interface to support the new TrustCommerce
payment module.

> >
> >
> >  my $udb = $Db{userdb};
> >  my $tdb = $Db{transactions};
> >  my $odb = $Db{orderline};
> >
> > my %doit = (
> > nukeusers           => sub {
> >       return unless $Values->{nukeusers};
> >       $udb->query('delete from userdb');
> >                     },
> > nukeorders           => sub {
> >       return unless $Values->{nukeorders};
> >       $odb->query('delete from orderline');
> >       $tdb->query('delete from transactions');
> >                     },
> > enablesecure        => 'SECURE_ENABLE',
> > orderstart      => sub {
> >       $Values->{orderstart} = '01000' unless $Values->{orderstart};
> >       $Tag->substitute_file(
> >         {
> >          begin => q{^\w+},
> >          global => 0,
> >          replace => 1,
> >          end => q!$!,
> >          greedy => 0,
> >          file => 'etc/order.number',
> >          body => $Values->{orderstart},
> >         }
> >       );
> >      },
> > );
> >  for (keys %doit) {
> >   my $val;
> >   next unless $val = $doit{$_};
> >   if( ref($val) =~ /CODE/) {
> >    my $status = $val->();
> >    push @messages, errmsg("%s subroutine returned %s.", $_, $status);
> >   }
> >   elsif($val =~ /\w+/) {
> >    $vdb->set_field($val, 'Variable', $Values->{$_});
> >    push @messages, errmsg("%s set %s to '%s' in variable.", $_, $val,
> $Values->{$_});
> >   }
> >   else {
> >    @errors, errmsg("Don't know what to do with %s=%s", $_, $val);
> >   }
> >  }
> >
> >  $out = errmsg("Messages") . ": <BR>";
> >  $out .= join "<BR>", @messages;
> >  $out .= "<P>" . errmsg("Errors") . ": <BR>";
> >  $out .= join "<BR>", @errors;
> >
> >
> 
> 
> 
> 
> > >----- Original Message -----
> > >From: "Ed LaFrance" <edl@newmediaems.com>
> > >To: <interchange-users@interchange.redhat.com>
> > >Sent: Friday, May 24, 2002 9:55 AM
> > >Subject: Re: [ic] Contents of pulldowns for payment options and shipping
> > >options gone?
> > >
> > >
> > > > At 11:02 PM 5/23/2002 -0500, you wrote:
> > > > >Hello,
> > > > >After a lot of great help from many of you guys and gals I have
> > >authorizenet
> > > > >setup.  Woohoo!
> > > > >
> > > > >Now...... my payment options (credit cards, po, etc.) pulldown menu
> is
> > > > >blank.  The options in the list have disappeared.  So is my shipping
> > >methods
> > > > >one.  When I try to change in the payment options (accept visa,
> > >mastercard,
> > > > >etc) in admin, it reverts back to not accepted.  I am running 4.8.3.
> > > > >
> > > > >Any thoughts on this?  What do you think I broke now?
> > > >
> > > > You mean the selectors on the checkout page, correct?
> > > >
> > > > The Payment page in the UI does not seem to work correctly. I don't
> use
> > >it.
> > > > Instead try Administration->Preferences->Payment, and edit
> > > > CREDIT_CARDS_ACCEPTED.
> > > >
> > > > WRT Shipping, that selector gets it's options from the country table,
> so
> > > > you need to ensure the that 'your' country's shipmodes column contains
> > > > valid shipmodes.
> > > >
> > > > - Ed L.
> > > >
> > > > >Hehe.  The second I fix one thing I seem to break another. DOH!
> > > > >
> > > > >Thanks!
> > > > >-Kellen

-- 
Dan Helfman
Software Engineer, TrustCommerce
(626) 744-7700 x813
dan@trustcommerce.com
http://www.trustcommerce.com