Piwik Dasboard not displaying correctly - just plain text. [SOLVED]

Firstly, I would like to say hello to everyone as this is my first post on this forum!
Secondly, I would like to stick to the tradition of people apologizing if their problem has already been solved somewhere else :wink: I really did browse the Internet and Piwik docs in search for a solution but I could not find one. Maybe I wasnā€™t looking hard enough but I just could not find it.

Okay, so my problem is: I have been moving my WordPress blog to another server recently. Iā€™ve backed up Piwikā€™s database, imported it while installing and so on. Everything seems to run smoothly after changing the server. However, my Piwik dashboard looks weird. All I can see is just black text on white background ā€“ no images, statistics or whatsoever. I have attached a screenshot of how it looks like. If you want to see it for yourself, hereā€™s the address: http://pafell.pl/piwik.

Apart from the installation process and log-in screen, everything looks like that (dashboard, settings, etc.). I have tried to browse Piwik Online Demo on my computer and it shows just like it should.

I have tried to re-upload all files few times already. And every time I uploaded the files, there was at least one error that something hasnā€™t uploaded correctly so I had to upload that given file again. Maybe thatā€™s the problem? I have read that I should transfer all the files in binary mode but Iā€™m not sure how to enable it. I am using Cyberduck FTP client for Mac OS X.

(my dashboardā€™s language is not set to English ;-))

Thanks in advance.

Remove the files in tmp/assets and tmp/templates_c. Then clear your browser cache and restart the browser.

I deleted contents of the folders you specified, cleared my browserā€™s cache and restarted it. Unfortunately it did not work. I have also tried to access it on Safari browser. It was just the same.

Your web server (or PHP) is re-compressing the .css and .js already compressed by Piwik.

Try applying this patch: http://dev.piwik.org/trac/changeset/3630/trunk/core/Piwik.php

[quote=pafell]
I deleted contents of the folders you specified, cleared my browserā€™s cache and restarted it.[/quote]

and then uploaded the modified file you specified. Works like a charm! Thank you very much! :slight_smile:

Problem solved!

donā€™t mean to hijack your thread but I am having the exact same problem. I tried the suggested solutions but it seemed to make things worse. Any advice would be much appreciated.

This is what I see:

http://img249.imageshack.us/img249/2561/f17ee9272dc943438aa0522.png

suspiro: if you canā€™t apply the changes manually, you should replace the file with this http://dev.piwik.org/trac/export/3630/trunk/core/Piwik.php

Judging from the line numbers, it looks like you copy/pasted the web formatted source code.

I had the same problem as described above and the patch did solve it, but Sparklines are still not loading. GD is installed.

Any ideas?

Thanks!

[size=small]Edit: sparklines problem was related to a server issue, solved now.[/size]

[quote=vipsoft]
suspiro: if you canā€™t apply the changes manually, you should replace the file with this http://dev.piwik.org/trac/export/3630/trunk/core/Piwik.php

Judging from the line numbers, it looks like you copy/pasted the web formatted source code.[/quote]

Did what you said. Replaced it and then went back and deleted the files vipsoft suggested. Still getting nothing. Am I slow :S

http://img510.imageshack.us/img510/9159/a9604539d56b462985ad4b5.png

Hi Forum,

just installed piwik 1.1.1 on windows with php 5.2.13 Mysql 5.1 and I too have the problem that the dashboard is just plain text. In addition, various ā€œsaveā€ buttons are ā€œjust deadā€.

Looking through the posts I found this thread, applied the different file but no luck.
For me, the problem is not solved.

Any other changes to apply ?

Thank you for any hint.

turbo, can you send your piwik URL login and password, and bug descriptions in MP?

[quote=matthieu]
turbo, can you send your piwik URL login and password, and bug descriptions in MP?[/quote]

Hi matthieu,

the system is installed on my ā€œinternalā€ test machine. My ā€œpublicā€ machine has MySql 4.1.22 and with this I had the same problem, so decided to run it with MySql 5 on my test system, but no changes.

If you like to test it on MySql 4.1.22 , also with php5.2.13 let me know and I will set it up.
Question: what do you mean with

bug descriptions in MP?

Sorry, this is new to me.

Would like to run it on MySql 5 on my public system, could install 2 running MySql instances, BUT there is no option in the piwik config to set the port for the database connection.

Will there be such in the near future ?

turbo

you configure the port in the config file:

[database]

port=3306

Hi Matthieu,

I got it working with php5.2.13 and MySql 4.1.22. I was too lazy to start up the second instance of MySql as there are more related changes and I wanted to get going to give results.

What was the reason to get the dashboard proper showing ?

The important point in my case were 2 things :

1: applying the patch > replacing the file /core/piwik.php
2: the php function ā€œreadfileā€ has to be allowed.

This function was disabled in my php install.
After removing it from disabled_functions in php.ini all is well.

Now I will start inserting the code to see if I will get stats.

turbo

Hi guys, just installed the latest version of Piwik and I am getting the same error. I tried the fix you mentioned above, but looking at the code Iā€™m guessing the source has since changed.

I downloaded the whole the file anyway and replaced piwik.php but it triggered a fatal error.

Any help appreciated =)