Last visits graph

I just downloaded and installed piwik.
Most graphs work but the Last visits graph is like this:

Last visits graph
Loading widget, please wait...

No errors nothing, it keeps on staying like that.

Any Idéas why?

The widget was renamed and your dashboard is trying to load the older version.

Remove it from your dashboard and click on “Add a Widget…” to re-add it.

It did not help. Still the same error.

Try updating your Flash player plugin.

Running the latest flash player. Still no success

Can you check your server logs?
Or post your site’s URL?

I do not have access to the logs.
The URL is http://www.letit.se/piwik/

Hmm… I’m getting a 404 error on:

http://www.letit.se/piwik/index.php?module=VisitsSummary&action=getEvolutionGraph&columns[]=nb_visits&idSite=1&period=day&date=2009-05-15

And sparklines aren’t working either.

Ok the error lies in the .htaccess, cause it worked when I removed the .htaccess.
But the problem is, I need the .htaccess for my CMS to use SEO friendly URLs.
So is this a bug in piwik or is this bad rewrite rules?


RewriteEngine On

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<script>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 
RewriteRule ^.*$ - [F,L] 
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS

Btw, what is sparklines?

sparklines are the tiny (word sized) graphs. An overview can be found at sparkline.org.

As you can see from the piwik url, it contains []. This is intentional. I’m not familiar with the hack attempts you refer to.

Heh, it’s the .htaccess that comes out of the box with CMS Made Simple.
So I take it I should remove the URL Filtering helps stop some hack attempts section of my .htaccess?

I commented two lines in my .htaccess
Can you check that everything is working as it should now please?

Looks good.

I tried to see if we could encode the ‘[]’ but the ofc chart didn’t like it, so commenting out those rewrite rules is the way to go.