Fatal error after update 1.2 > 1.2.1


#1

Hello.

Following error since autoupdate from 1.2 to 1.2.1


PHP Fatal error:  Call to undefined function _readfile() in .../core/Piwik.php on line 758


(vipsoft) #2

your copy of libs/upgradephp/upgrade.php doesn’t appear to have been updated


#3

after the autoupdate i updated all files via ftp, but still the same error


#4

i think it’s beacause of the gzipped version of the piwik.js. we are using this on every site. i deactivated it and there are no more errors.

is this possible?


#5

Call to undefined function _readfile() in …/core/Piwik.php on line 758
Error only if the gzipped version of piwik.js is used.

758:


if(!_readfile($file))

changed to


if(!readfile($file))

now it’s working. can anyone confirm this?


(vipsoft) #6

Oh I see. Thanks. Fix is here: http://dev.piwik.org/trac/changeset/4135