Upgrade problems


(Ambition) #1

Update to 0.6.1 appears "Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10): Unable to find End of Central Dir Record signature"
Find solutions
Automatic Updates, do not want to hand!
Thank you


(vipsoft) #2

Fixed in http://dev.piwik.org/trac/changeset/2166

For a quick one-liner, change CURLOPT_TIMEOUT to CURLOPT_CONNECTTIMEOUT in core/Http.php.


(Ambition) #3

I accordance with the “change CURLOPT_TIMEOUT to CURLOPT_CONNECTTIMEOUT in core / Http.php.” Modified.
Upgrade success!
Thank you very much
style_emoticons/<#EMO_DIR#>/rolleyes.gif


(haggis) #4

Same issue here but there’s no “core/Http.php” at my installation.

find /xxx/piwik/ -name Http.php

/xxx/piwik/libs/Zend/Auth/Adapter/Http.php
/xxx/piwik/libs/Zend/Uri/Http.php

Version: 0.5.5


(timwood) #5

I also don’t have a core/Http.php in my installation, but I did grep for CURLOPT_TIMEOUT and found it in core/Piwik.php.

core/Piwik.php:  CURLOPT_TIMEOUT => $timeout,

Can I change this to the following to allow the auto update to work?

CURLOPT_TIMEOUT => $timeout, 
CURLOPT_CONNECTTIMEOUT => $timeout,

I think I’m running 0.5.5 as well.

Thanks,
-Tim

[quote=haggis @ May 10 2010, 07:19 PM]Same issue here but there’s no “core/Http.php” at my installation.

find /xxx/piwik/ -name Http.php

/xxx/piwik/libs/Zend/Auth/Adapter/Http.php
/xxx/piwik/libs/Zend/Uri/Http.php

Version: 0.5.5[/quote]


(vipsoft) #6

Yes, change it in core/Piwik.php if you have an older version.


(timwood) #7

I made the change to core/Piwik.php as I suggested above, but I’m still not able to use the automatic update feature. I still get the same error from the first post in this thread about “PCLZIP_ERR_BAD_FORMAT”.

Can you explain a bit more about what exactly we need to change in version 0.5.5 to get this working again? Also, do I need any additional PHP extensions for this to work? Or should I just go through the manual upgrade process (please say no)?

Thanks,
-Tim


(vipsoft) #8

The problem we’re having is that the archive (or package), “latest.zip”, has grown in size – it is now 3.5MB, and (some) users are experiencing long download times. (I tested it last nite, and it took 1 min 18 sec.)

The posted fix applies to curl.

If you can pm your phpinfo(), I’ll look for another explanation for your problem.


(timwood) #9

Sent, thanks.


(whatwill) #10

[quote=Ambition @ May 10 2010, 10:57 AM]I accordance with the “change CURLOPT_TIMEOUT to CURLOPT_CONNECTTIMEOUT in core / Http.php.” Modified.
Upgrade success!
Thank you very much
style_emoticons/<#EMO_DIR#>/rolleyes.gif[/quote]

I did this and it still give me the same error…any suggestions?


(whatwill) #11

[quote=vipsoft @ May 10 2010, 02:39 AM]Fixed in dev.piwik.org/trac/changeset/2166

For a quick one-liner, change CURLOPT_TIMEOUT to CURLOPT_CONNECTTIMEOUT in core/Http.php.[/quote]

Meant to reply to this one, sorry…I did this it didn’t work for me? Any thoughts?


(vipsoft) #12

whatwill: please don’t resurrect old threads.

Try replacing core/Http.php with the latest version. http://dev.piwik.org/trac/export/2897/trunk/core/Http.php