[ic] Require in Global UserTag

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Mon Sep 17 09:41:01 2001


On Mon, Sep 17, 2001 at 02:41:22PM +0200, Stefan Hornburg (Racke) wrote:
> 
> Has anyone an idea why this didn't work:
> 
> UserTag chart Routine <<EOF
> sub {
> 	eval {
> 		require GIFgraph::bars;
> 	};
> 	if ($@) {
> 		::logError("Cannot generate chart, GIFgraph module not installed: $@");
> 		return;
> 	}
> }	
> EOF
> 
> snowflake.linuxia.de EX9E4JYr:linuxia.de - [17/September/2001:14:38:32 +0200] roll /cgi-bin/ic/roll/entrance/stats Cannot generate chart, GIFgraph module not installed: require trapped by operation mask at /usr/lib/perl5/GIFgraph/bars.pm line 14.
> > 
> 

The hardcoded error is not the real error.  That's really misleading
to say "not installed: $@".   Presumably there really
is a GIFgraph::bars.pm at /usr/lib/perl5/GIFgraph/bars.pm and 
you have "roll" set for global tags.  

What's on line 14 of GIFgraph::bars.pm?  use something.pm?


> This is a global usertag, so it resembles the get_url UserTag.
> I suppose that I _should_ work, sigh.
> 
> Ciao
>         Racke
> 
> -- 
> Racke happily hacks Interchange and maintains Debian packages like Courier.
> 
> For projects and other business stuff please refer to COBOLT NetServices
> (URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux