Piwik 今日放出 0.5 版本。
点击在线升级,将抛错。
Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
官方解决方法:修改 core/Piwik.php
大概是 980 行 (我使用VIM打开显示的是 978 行)
修改方式如下:
找到:
return self::sendHttpRequestBy(self::getTransportMethod(), $aUrl, $timeout, $userAgent, $destinationPath, $followDepth);
###############################
修改为:
return self::sendHttpRequestBy(self::getTransportMethod(), $aUrl, $timeout, $userAgent, $file, $followDepth);
之前Piwik 升级到 0.45 的时候也出现了相同的错误,解决方法也相仿。

