Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400589 - www-misc/awstats-7.1-r2 uses plugin awgraph that isn't properly configured.
Summary: www-misc/awstats-7.1-r2 uses plugin awgraph that isn't properly configured.
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 12:43 UTC by Olliver Schinagl
Modified: 2012-05-12 19:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olliver Schinagl 2012-01-24 12:43:53 UTC
graphapplet.pm uses the following snipet to generate the html code for awstats.

print "<applet name=\"$type\" archive=\"awgraphapplet.jar\" code=\"AWGraphApplet.class\" codebase=\"".($DirClasses||"/")."\" width=\"$graphwidth\" height=\"$graphheight\" alt= \"Your browser does not support Java correctly. Change browser or disable AWStats graphapplet plugin.\">\n";

This will however not work and cause 404 errors.

There is a variable 'codebase' that lists $DirClasses, but does not get passed/honored. In /etc/awstats.site.conf the variable is passed as:
LoadPlugin="graphapplet /awstats/classes" but doesn't get used.

A quick hack is to change codebase=\"".($DirClasses||"/")."\" with \"".($DirClasses||"/awstats/classes")."\" if apache is setup with the /awstats/classes alias.

Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-05-12 19:27:01 UTC
Please report this upstream. Thank you.