prestashop_1.7.2.5 & XAMPP 7.0.0 [PHP: 7.0.0]
1: HTTP 200 - parsererror in \vendor\icanboogie\cldr\lib\WebProvider.php
$this->origin=http://i18n.prestashop.com/cldr/json-full/
$path=supplemental/codeMappings
curl_getinfo=Array(
=> http://i18n.prestashop.com/cldr/json-full/supplemental/codeMappings.json [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 20.203 [namelookup_time] => 0 [connect_time] => 0 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 [redirect_url] =>
curl_error=Failed to connect to i18n.prestashop.com port 80: Timed out
tried this:
public function provide($path) {
$connection = $this->obtain_connection();
curl_setopt($connection, CURLOPT_TIMEOUT, 600);
curl_setopt($connection, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($connection, CURLOPT_URL, $this->origin . $path . '.json');
$rc = curl_exec($connection);
:still timeout
measured $connection time with microtime ~17s
this happens on slow install environments.
ugly solution was:
if ($this->origin == "http://i18n.prestashop.com/cldr/json-full/") {
$this->origin = 'https://www.unicode.org/repos/cldr-aux/json/26/';
}
//to get rid: curl_error=SSL certificate problem: unable to get local issuer certificate
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, false);