sync icon indicating copy to clipboard operation
sync copied to clipboard

Illegal string offset 'data' in Client.php on line 38

Open ghostdevelop opened this issue 9 years ago • 2 comments

Hello, i get this error, but the first time its work perfectly. U have any idea why? thx

ghostdevelop avatar Mar 21 '17 20:03 ghostdevelop

Yes it works just when you copy folder to destination folder - which is empty.. This is not good :(... If the destination folder contains data, it will fail. Did anyone know solution? THANKS

KapriQ avatar Aug 25 '17 18:08 KapriQ

Fixed! Just replace line 75 in "Client.php" with:

$response = curl_exec($this->curl);
$header_size = curl_getinfo($this->curl, CURLINFO_HEADER_SIZE);
$headers = substr($response, 0, $header_size);
$body = substr($response, $header_size);

fpinho-pt avatar Sep 25 '18 23:09 fpinho-pt