Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghostdevelop opened this issue Mar 21, 2017 · 2 comments
Open

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

ghostdevelop opened this issue Mar 21, 2017 · 2 comments

Comments

@ghostdevelop
Copy link

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

@KapriQ
Copy link

KapriQ commented Aug 25, 2017

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

@fpinho-pt
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants