alexcapes Posted May 2, 2017 Posted May 2, 2017 Hi, I just updated a site to 3.0.61 and it's breaking uploading images from a URL via the API. I get the following error: Recoverable Fatal Error: Method ProcessWire\Pageimage::__toString() must return a string value The code getting the image is very simple: $new_edition->work_cover = $cover_url; $new_edition->save('work_cover'); It works fine on 3.0.42 but returns the error on 3.0.61
szabesz Posted May 2, 2017 Posted May 2, 2017 Hi, You might want to test it with the current dev branch, as this fix looks related: https://github.com/processwire/processwire/commit/84a39c0667ff94842105c77976435070b3a67333 If it doesn't solve it, you can create a new issue at GitHub.
alexcapes Posted May 2, 2017 Author Posted May 2, 2017 1 hour ago, szabesz said: Hi, You might want to test it with the current dev branch, as this fix it looks related: https://github.com/processwire/processwire/commit/84a39c0667ff94842105c77976435070b3a67333 If it doesn't solve it, you can create a new issue at GitHub. Thanks @szabesz will do.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now