Skip to content


Automatic update from 0.4.3 to 0.4.4 fails #1010

anonymous-piwik-user opened this Issue · 3 comments

2 participants


When automatically updating from version 0.4.3 to 0.4.4 I receive the following error message:

File size error: I:\Program Files\Apache Software Foundation\Apache2.2\htdocs\piwik/tmp/latest/; expected 3128256 bytes; received 136373 bytes

I looks like a previous version of is downloaded for installation. When I manually download the filesize is good, but if I store it in .../piwik/tmp/latest it gets overwritten with the wrong version.


In Piwik.php, there are two fgets calls

$line = fgets($fsock, 4096);

Can you change the second occurrence to:

$line = fread($fsock, 8192);

In [1524], refs #1010 sendHttpRequest improvements (by socket): increase buffer size and flush output to file.


In [1532], refs #1010 - should pass file handle instead of destination path to sendHttpRequestBy()

@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 0.5 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.