Jump to content

Upgrade to 3.0.61 breaks adding images from URL via API


alexcapes
 Share

Recommended Posts

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

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...