in reply to HTML::Template, apache, two warnings

My problem is basically that the following script appears to be executing twice, as i get two warnings (_____INDEX.PL______) in my apache error log every time i view a page.

Wild speculation: What you're seeing sound like what might happen if, somehow, warn() got overloaded twice. Is it possible that CGI::Lite does that, perhaps to duplicate CGI::Carp functionality?

  • Comment on Re: HTML::Template, apache, two warnings

Replies are listed 'Best First'.
Re: Re: HTML::Template, apache, two warnings
by BUU (Prior) on Apr 15, 2003 at 12:00 UTC
    Eh, I suppose that might be happening, but this seems to be the source of the problem I was complaining about last night, namely my database query being executed twice.

    Also when you comment out the last line, which is a HTML::Template->param(); call, I no longer receive two warnings. I also no longer receive two warnings if i change the param call to one with no params, eg $::ht->param([{}]); to $::ht->param(); that also only gives me one warning.