Piwik 今日放出 0.4.5 版本。
点击在线升级,将抛错。
Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
官方解决方法:修改 core/Piwik.php
大概是 980 行 (我使用VIM打开显示的是 981 行)
修改方式如下:
找到:
return self::sendHttpRequestBy(self::getTransportMethod(), $aUrl, $timeout, $userAgent, $destinationPath, $followDepth);
###############################
修改为:
return self::sendHttpRequestBy(self::getTransportMethod(), $aUrl, $timeout, $userAgent, $file, $followDepth);
官方连接:http://dev.piwik.org/trac/changeset/1532



Piwik 在上周末发布新版本。
升级相当方便,直接在 piwik界面中点2下鼠标在线升级完成。
更新后字体跟界面较为精细了一点,统计图加载速度有改善(因为增加了IE8的支持)。
但后台管理setting 访问时会在最底下抛错:
Notice: Undefined index: debugTrackVisitsInsidePiwikUI in /data/web_server/hello/piwik/tmp/templates_c/%%1D^1D5^1D598A14%%piwik_tag.tpl.php on line 3
Backtrace –>
#0 Piwik_ErrorHandler(8, Undefined index: debugTrackVisitsInsidePiwikUI, /data/web_server/hello/piwik/tmp/templates_c/%%1D^1D5^1D598A14%%piwik_tag.tpl.php, 3, Array ([this] => Piwik_Smarty Object ([template_dir] => Array ([0] => /data/web_server/hello/piwik/plugins,[1] => /data/web_server/hello/piwik/themes/default,[2] => /data/web_server/hello/piwik/themes),[compile_dir…………..
好不容易找到官方的解决方法。
It seems to be a problem in the template, which use a none initialized variable, you can patch the template this way :
打开文件: plugins/CoreHome/templates/piwik_tag.tpl
删除以下这条:
{if $piwikUrl == ‘http://piwik.org/demo/’ || $debugTrackVisitsInsidePiwikUI}
改成:
{if $piwikUrl == ‘http://piwik.org/demo/’ || (isset($debugTrackVisitsInsidePiwikUI) && $debugTrackVisitsInsidePiwikUI)}
