Seo quickfix additonal d'úsáideoirí le leagan PHP <5.2.0. Má tá leagan nua de PHP ná 5.2.0 instaled ar do fhreastalaí, ní gá duit aon athruithe a dhéanamh.
I comhaid:
Code:
forum root -> includes -> vbenterprisetranlator_class_translator.php
Faigh (ba chóir tús a chur in aice le líne 472):
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'};
agus ina ionad sé le:
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];