Hi,

I have been using CGI::APP (1.38) with HTML::Template(2.6) for some time under mod_perl. But there is a nagging error that I can't figure out. In one application which supports a secure order form, I get

run mode 'Process': HTML::Template->new() called with odd number of option parameters - should be of the form option => value at /usr/local/lib/perl5/site_perl/5.8.2/CGI/Application.pm line 401

But the hard part is this happens maybe once or twice a day.


There is something special about this runmode in particular. I had to deal with the fact that we spread our transactions across different processors, which means I really need to choose the run mode in Process() based on that timing.


So I did that using this for a return value:

return $self->$RUNMODE;


where $RUNMODE corresponds to the card processor we are using at the time.


This brings up a topic I have a hard time with. I would like to go into more detail about all of this, but I really don't feel that comfortable with doing that in a public and esp searchable mailing list. That usually isn't a problem when I can really narrow down a problem, but with this one, I can't seem to find any reason that for example a global variable was getting clobbered, because there are no globals involved. It is also hard because what I have works every single time I test it, even when I try it using a single process on a test server.



So mainly what I am asking about is how can I trap this error(it leads people to think their order failed when often it went through), and does anyone have some tips for debugging this further?



Thanks,

Eric




--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to