On Thu, Jul 03, 2003 at 09:37:41AM -0500, Peter Ensch wrote:
I'm using H::T (via CGI::Application) with a mod_perl
script for the first time. The apache error_log is showing this error which I've not seen before in this
context. I'm not doing anything different with my tmpl object than I've done in all my non- mod_perl work.
Has anyone seen this before?
---- Argument "<html>\n <head>\n\n <link rel="stylesheet" type="text/..." isn't numeric (#1) (W numeric) The indicated string was fed as an argument to an operator that expected a numeric value instead. If you're fortunate the message will identify which operator was so unfortunate.
[Thu Jul 3 09:17:08 2003] -e: Argument "<html>\n <head>\n\n <link rel="stylesheet" type="text/..." isn't numeric ----
I've found the problem. I was doing use warnings;
use diagnostics;
I thought that diagnostics gave me extra info about an
existing warning ie. the first part of the error msg.
above; however, when I remove 'use diagnostics' I don't get the error at all, even tho' warnings is still
on.
Why is this? And why didn't this happen under plain CGI?
since this was working in plain CGI, and is breaking under mod_perl, the problem lies perhaps in mod_perl configuration. Perhaps mod_perl is now trying to evaluate what was till now left alone, that is to say, the html stuff.
removing use diags didn't remove the error, it just removed the more verbose explanation about the error.
search the archives for making h::t work with mod_perl... I had problems doing that... it was compiling all my html files instead of only the stuff in the cgi-bin directory. tweaking the mod_perl specific settings in the httpd.conf might fix your error.
Also, how about providing the actual code that is causing the error. That would help in diagnosing what is going wrong.
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users
