Whitelist issue?


#1

First question is easy I think. Am I correct that running the Piwik WP plugin obviates the need to past the little Java script into every page so long as I configure the website number correctly? All my webs are Wordpress.

Now for the more difficult question. I had Piwik installed and seemingly working a few weeks ago, but when I went to look at my traffic last night the site was “broken” while before it had shown all sorts of information, albeit with little data since this was a new install. As my site is very new, and loss of data is no big deal, I nuked the entire setup and dropped the SQL tables to start over. I downloaded a fresh copy of the latest software and installed it. The install seemed to go fine and proceeded with no errors. I gave Piwik has its own subdomain and SQL database.

However, after the reinstall I have the same dashboard appearance issues (no data, no graphs, no anything) and when I try to add a web site I get nothing when I hit the green plus sign. Also there is no data entry field for default time zone or currency.

I have found these threads in which similar issues were reported (although it is not clear what I need to do fix it, which is why I am asking again!).

http://forum.piwik.org/read.php?2,44521

This one related to a white listing issue with HostGator and a mod_security setting. Do I need to open a ticket?

http://forum.piwik.org/read.php?2,31121

That one was less clear, but the symptoms are common.

When I try to use Piwik I get the little yellow warning triangle in IE8 with the following error messages:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Trident/4.0; BTRS35926)
Timestamp: Fri, 17 Jun 2011 18:37:09 UTC

Message: Syntax error
Line: 136
Char: 295
Code: 0
URI: http://piwik.casciainc.com/index.php?module=Proxy&action=getJs&cb=f68951a9d3efd207df9a0b989aa6e1e2

Message: Object expected
Line: 98
Char: 2
Code: 0
URI: http://piwik.casciainc.com/index.php?module=SitesManager&action=index&idSite=1&period=day&date=yesterday

Message: ‘SitesManager’ is undefined
Line: 146
Char: 1
Code: 0
URI: http://piwik.casciainc.com/index.php?module=SitesManager&action=index&idSite=1&period=day&date=yesterday

Message: Syntax error
Line: 39
Char: 517
Code: 0
URI: http://piwik.casciainc.com/index.php?module=Proxy&action=getPieHtc

Am I missed a file in the installation package? I uploaded this several ways (Filezilla, FireFTP, and the zip to the server and unzipped from there) with identical results. At this point I am at a loss for what to do next.


(Matthieu Aubry) #2

PLease try 1.5RC: 301 Moved Permanently


#3

Thanks Matt, I will give that a try.


#4

At Matt’s suggestion I did an upgrade to 1.5RC7. I got a lot of bad files that neither Filezilla nor FireFTP would transfer properly, even in binary mode, but I finally got rid of the error message and the database updated. Note that I started with an empty piwik site, and dropped all the tables from the SQL. Then I loaded the “latest” release, configured it, and immediately updated to RC7.

However, I have the exact same problems as before namely:

No dashboard widgets
Cannot add a website; pressing the green plus sign triggers the error shown below
Cannot set default time zone
Cannot set default currency

The error I get in IE when I try to add has changed a bit to the one shown below. There looks to be a missing “]” somewhere.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Trident/4.0; BTRS35926)
Timestamp: Sat, 18 Jun 2011 02:15:28 UTC

Message: Expected ']'
Line: 262
Char: 378
Code: 0
URI: http://piwik.casciainc.com/index.php?module=Proxy&action=getJs&cb=f873872b6a3df3607a1f52e6e03d2452

This is not browswer dependent as I get the same result in IE and FF.

Any way to fix this? I really liked what I installed a few weeks back (1.4?) as it was very slick, easy to use, and detailed.


(Matthieu Aubry) #5

Maybe you have FTP problems are some files are not uploaded properly… try to delete tmp/assets/ folders, or rename it?


#6

Not much progress I am afraid. I understand about FTP issues but that cannot account for the problems with the latest release since I uploaded the ZIP to my host and used their tool to unzip the files. If there are missing files then they are missing in the zip. However, just to be sure I once again totally deleted my Piwik install, including the SQL DB, and started over. At any rate, the installer does a file integrity check “just in case” and it installs with no warning messages. I am now back on fresh install of the stable release created from “Latest.zip”.

I just realized something so let me describe my problem once more. When load Piwik I do not get the proper user interface. There should be some nice HTML with a set of tabs but all I get is a list of links. It looks like this:
http://img87.imageshack.us/img87/1865/problemvm.jpg

Any suggestions on what is causing this problem? BTW, when playing with 1.5RC7 last night I had the same issue with the display. I am totally puzzled a this point. I know it is my my client since I can go to the Piwik demo page and see everything there. Are there any hosts that you know of that have issues with Piwik? As I said when I first installed this a few week ago everything was fine and I didn’t touch that install until yesterday.

The most common error I am seeing is:

Message: Object expected
Line: 9
Char: 1
Code: 0
URI: http://piwik.casciainc.com/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today

I don’t know enough about debugging php or I would try to figure this one out myself. I took a look at the CoreHome module and nothing there made sense as the cause of the problem.


#7

i think too, it’s a ftp problem


#8

Except that I did not FTP the files, only the ZIP. If the ZIP had been corrupted then it would not have extracted properly. In any event, I too suspected an FTP issue and wrote over everything a few times using different FTP clients, always with binary mode enabled. If there was a random FTP issue the errors should change depending on which file was corrupted during which transfer, right? However, I am seeing the same problems consistently.


(Matthieu Aubry) #9

So it sounds like files are definitely uploaded correctly, but somehow the Javascript does not work?

Can you please PM bug description + Piwik URL + login/pwd and I will take a look, thanks