Last visits graph

(Raboo) #1

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?

(vipsoft) #2

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.

(Raboo) #3

It did not help. Still the same error.

(vipsoft) #4

Try updating your Flash player plugin.

(Raboo) #5

Running the latest flash player. Still no success

(vipsoft) #6

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

(Raboo) #7

I do not have access to the logs.
The URL is

(vipsoft) #8

Hmm… I’m getting a 404 error on:[]=nb_visits&idSite=1&period=day&date=2009-05-15

And sparklines aren’t working either.

(Raboo) #9

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]

Btw, what is sparklines?

(vipsoft) #10

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

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

(Raboo) #11

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?

(Raboo) #12

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

(vipsoft) #13

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.