Tags:
create new tag
view all tags

Question

I'm trying to build a table with a gauge on each cell. If I insert more than 3 gauges it stops working (the page doesn't loads in the browser, and after a while, it timeouts). The problematic code is this:

* C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 C20
R1 75 75 75 75 75 75
R2

-- TestUser - 08 Jul 2004

As you can see, it works in the Twiki.org server, but on mine it doesn't. What further information can I provide to help pinpoint the problem on my server? When the browser is trying to display the page, a "/usr/bin/perl -wT /var/www/twiki/bin/view" process is launched, and it keeps running consuming almost no CPU. It stays running until the browser (or the server) timeouts.

Further info:

in the apache error_log, the following lines appear whenever you try to view the problematic page:

[Tue Jul 13 13:58:04 2004] [error] [client YYY.YY.YY.YY] [Tue Jul 13 13:48:05 2004] view: Use of uninitialized value in pattern match (m//) at ../lib/TWiki/Plugins/GaugePlugin.pm line 111., referer: http://XXX.XX.XX.XX/twiki/bin/view/Test/EstadisticasTest [Tue Jul 13 13:58:04 2004] [error] [client YYY.YY.YY.YY] [Tue Jul 13 13:48:05 2004] view: Use of uninitialized value in hex at ../lib/TWiki/Plu gins/GaugePlugin.pm line 113., referer: http://XXX.XX.XX.XX/twiki/bin/view/Test/EstadisticasTest [Tue Jul 13 13:58:04 2004] [error] [client YYY.YY.YY.YY] [Tue Jul 13 13:48:05 2004] view: Use of uninitialized value in hex at ../lib/TWiki/Plu gins/GaugePlugin.pm line 114., referer: http://XXX.XX.XX.XX/twiki/bin/view/Test/EstadisticasTest

OK! Found the problem: I was defining an extra area for the gauge (4 in total). The default Gauge has 3 areas. The code only has default colors defined for 3 areas. If I define the colors for the 4 areas, it works ok on my server. Maybe the default installation of the GaugePlugin in the twiki.org servers has more colors defined by default.... who knows.

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, ActionTrackerPlugin, CalendarPlugin, ChartPlugin, CommentPlugin, EditTablePlugin, GaugePlugin, HeadlinesPlugin, InterwikiPlugin, PowerEditPlugin, SpreadSheetPlugin, TWikiDrawPlugin, TablePlugin, TocPlugin
Server OS: Gentoo Linux
Web server: 2.0.49
Perl version: 5.8.3
Client OS: Gentoo Linux
Web Browser: Mozilla Firefox 0.9.2

-- FerranEspigares - 12 Jul 2004

Answer

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-07-13 - FerranEspigares
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.