You get the following error when you try to delete multiple entries in the control panel.
Fatal error: Unsupported operand types in expressionengine/libraries/api/Api_channel_entries.php on line 557It only seems to happen when you try to delete entries that are added via the API.
Hi Filip,
Have you any add-ons installed?
Is this a fresh install or an upgrade from a previous version or build?
Have you done any import of data at any stage?
Can you explain with context and examples how you added entries through the API please so we can try and replicate?
Hi there,
I too have this issue when deleting multiple entries (where some are CP created and some are API created)
Fatal error: Unsupported operand types in /system_uam/expressionengine/libraries/api/Api_channel_entries.php on line 557
The API entries are added thus:
$channel_id = 1;
$data = array(
'title' => $result['club_name'],
'entry_date' => $this->EE->localize->now,
'author_id' => $member_id,
'status' => 'Pending',
'field_id_1' => '1',
'field_ft_1' => 'none',
'field_id_7' => '1',
'field_ft_7' => 'none'
);
if($channel_id && is_array($data))
{
$this->EE->load->library('api');
$this->EE->api->instantiate('channel_entries');
$this->EE->api->instantiate('channel_fields');
$this->EE->api_channel_fields->setup_entry_settings($channel_id, $data);
if($this->EE->api_channel_entries->submit_new_entry($channel_id, $data) === FALSE)
{
return FALSE;
}
else
{
return $this->EE->api_channel_entries->entry_id;
}
}My EE is v2.5.2 (20120606)
Fieldtypes used with this Channel are: Text, Date, ALT MultiField and REEgion Select with a custom Status Group
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.