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

Kellen Weissenbach interchange-users@interchange.redhat.com
Fri May 24 14:04:01 2002


> 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.
>
>
>  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
> > > >
> > >
> > > ===============================================================
> > > Increase profits from your Interchange store... FREE!
> > > http://www.newmediaems.com/cgi-bin/nm/software_fus.html
> > > ===============================================================
> > > New Media E.M.S.               Software Solutions for Business
> > > 463 Main St., Suite D          eCommerce | Consulting | Hosting
> > > Placerville, CA  95667         edl@newmediaems.com
> > > (530) 622-9421                 http://www.newmediaems.com
> > > (866) 519-4680 Toll-Free       (530) 622-9426 Fax
> > > ===============================================================
> > >
> > > _______________________________________________
> > > interchange-users mailing list
> > > interchange-users@interchange.redhat.com
> > > http://interchange.redhat.com/mailman/listinfo/interchange-users
> > >
> >
> >_______________________________________________
> >interchange-users mailing list
> >interchange-users@interchange.redhat.com
> >http://interchange.redhat.com/mailman/listinfo/interchange-users
>
> ===============================================================
> Increase profits from your Interchange store... FREE!
> http://www.newmediaems.com/cgi-bin/nm/software_fus.html
> ===============================================================
> New Media E.M.S.               Software Solutions for Business
> 463 Main St., Suite D          eCommerce | Consulting | Hosting
> Placerville, CA  95667         edl@newmediaems.com
> (530) 622-9421                 http://www.newmediaems.com
> (866) 519-4680 Toll-Free       (530) 622-9426 Fax
> ===============================================================
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>