I have this peculiar issue that I’m not sure on how to debug. I installed Piwik on both my VPS and a wardrobe server, the latter having the following hardware specifications:
Both have Debian 6.0 installed and the issue here is that on the wardrobe server the pages stop loading (literally) halfway through, botching the CSS and not displaying all HTML elements. On the other hand, Wordpress runs just fine on that hardware.
I’m a rookie on this subject (well, subjects) and could use some friendly advice on where to look for more information.
I checked the output of top while accessing and browsing Piwik on the server and it always rises to above 90 %.
/var/log/apache2/error.log output:
[Fri Sep 23 10:44:56 2011] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /xxx/www/piwik/libs/jsmin/jsmin.php on line 141, referer: http://www.xxx.com/piwik/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday
I also get these JavaScript errors when visiting the website in Chrome:
SyntaxError: Unexpected identifier [xxx.com/piwik/index.php?module=Proxy&action=getJs&cb=f137110b795e7ee4efec72e0d265dab7:2]
ReferenceError: $ is not defined [xxx.com/piwik/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday:119]
Also, the language selection menu is displayed as a native dropdown menu with a button entitled “go” next to it rather than the subtle default design (which looks like a plain link).
Google tells me this script is a “JavaScript Minifier”, sadly I can’t claim to understand JavaScript but possibly this is a bug. I have downloaded and reinstalled Piwik several times now with the same result.
Thank you, adding that line did the trick. Piwik runs smoothly and I haven’t noticed anything else acting up. All my packages (Debian Squeeze) seem to be up to date as well. I’d happily provide more information if it helps figuring out this… oddity.