Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic update from 0.4.3 to 0.4.4 fails #1010

Closed
anonymous-matomo-user opened this issue Oct 22, 2009 · 3 comments
Closed

Automatic update from 0.4.3 to 0.4.4 fails #1010

anonymous-matomo-user opened this issue Oct 22, 2009 · 3 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

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/latest.zip; expected 3128256 bytes; received 136373 bytes

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

@robocoder
Copy link
Contributor

In Piwik.php, there are two fgets calls

$line = fgets($fsock, 4096);

Can you change the second occurrence to:

$line = fread($fsock, 8192);

@robocoder
Copy link
Contributor

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

@robocoder
Copy link
Contributor

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants