You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatic updates was failing with the following error:
Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
The End of Central Dir Record couldn't be found for the latest.zip file because the file, although it was being created, was always empty. The problem turned out to be incomplete logic in /piwik/core/Http.php function isCurlEnabled() misidentifying the transport method.
protected static function isCurlEnabled() { return function_exists('curl_init'); }
Both curl_init and curl_exec are required to complete a cURL request, but Piwik only checks for curl_init when selecting the transfer method to use. In some hosting environments, where curl_exec has been disabled, this will cause Piwik to incorrectly pass cURL as the transport method and show cURL as the Open URL option in the System Check.
During the automatic update, Piwik attempts to use cURL to fetch latest.zip, touches the file, but is unable to curl_exec the data causing the above error.
This simple patch in piwik/core/Http.php should fix the issue for environments with curl_exec disabled and cause sockets to be correctly passed as the transport method:
protected static function isCurlEnabled() { return (function_exists('curl_init') && function_exists('curl_exec')); }
The text was updated successfully, but these errors were encountered:
Automatic updates was failing with the following error:
The End of Central Dir Record couldn't be found for the latest.zip file because the file, although it was being created, was always empty. The problem turned out to be incomplete logic in /piwik/core/Http.php function isCurlEnabled() misidentifying the transport method.
protected static function isCurlEnabled() { return function_exists('curl_init'); }
Both curl_init and curl_exec are required to complete a cURL request, but Piwik only checks for curl_init when selecting the transfer method to use. In some hosting environments, where curl_exec has been disabled, this will cause Piwik to incorrectly pass cURL as the transport method and show cURL as the Open URL option in the System Check.
During the automatic update, Piwik attempts to use cURL to fetch latest.zip, touches the file, but is unable to curl_exec the data causing the above error.
This simple patch in piwik/core/Http.php should fix the issue for environments with curl_exec disabled and cause sockets to be correctly passed as the transport method:
protected static function isCurlEnabled() { return (function_exists('curl_init') && function_exists('curl_exec')); }
The text was updated successfully, but these errors were encountered: