I’m trying to create a new channel entry programmatically with php, which works fine, except for a Safecracker file field (I’m setting it to a CURLed image from Gravatar). My problem is that the image’s thumb isn’t being created. My code goes something like this…
$entry = array(
'channel_id' => $channel_id,
'entry_id' => '',
// some more fields in here, but not relevant to this issue
'field_id_19' => 'https://ellislab.com/asset/images/pronet-logo/new_picture.jpg'
);
$submit_result = $this->EE->api_channel_entries->submit_new_entry($channel_id, $entry);If the image already has a thumb at “_thumbs/new_picture.jpg” everything works well, otherwise i start to see broken image icons all over the place (crucially, including images resized with the Image Sizer add-on).
Is this the intended behaviour / any suggestions?
Setup: EE2.4.0, server wizard says everything is compatible, _thumbs folder is 777, resizing works for user-uploaded images
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.