Siin on püsikomponenti quickfix kasutajatele koos PHP versioon < 5.2.0. Kui teil on uuem versioon kui teie serveris instaled 5.2.0 PHP, ei pea te tegema olulisi muudatusi.
Failis:
Code:
forum root -> includes -> vbenterprisetranlator_class_translator.php
Otsi (see peaks algama rea 472 läheduses):
PHP Code:
$token = json_decode (curl_exec($obj_connection));
self::$token_ttl = time() + ($token->{'expires_in'});
self::$token = 'Authorization: Bearer '.$token->{'access_token'};
curl_close($obj_connection);
return 'Authorization: Bearer '.$token->{'access_token'};
ja seda asendada:
PHP Code:
$fulltoken = curl_exec($obj_connection);
preg_match('/{"access_token":"(.*?)"/', $fulltoken, $token);
preg_match('/"expires_in":"(.*?)"/', $fulltoken, $expires);
self::$token_ttl = time() + $expires[1];
self::$token = 'Authorization: Bearer '.$token[1];
curl_close($obj_connection);
return 'Authorization: Bearer '.$token[1];