I am using this extension to link attachments to individual entries. A single entry can have multiple attachments, but each attachment can only have one entry. The entry does not require attachments, but each attachment does require an entry.
When I try to add a new attachment from my entry, I get the following error:
strlen() expects parameter 1 to be string, array given
/Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/toolkit/class.field.php line 284
279 }
280
281 public function checkPostFieldData($data, &$message, $entry_id=NULL){
282 $message = NULL;
283
284 if ($this->get('required') == 'yes' && strlen($data) == 0){
285 $message = __("'%s' is a required field.", array($this->get('label')));
286
287 return self::__MISSING_FIELDS__;
288 }
Making the entry not required for the attachment gets past this error, but is obviously not the behaviour I want.
Hopefully this makes sense, but let me know if it doesn’t or you need more info!
I am using this extension to link attachments to individual entries. A single entry can have multiple attachments, but each attachment can only have one entry. The entry does not require attachments, but each attachment does require an entry.
When I try to add a new attachment from my entry, I get the following error:
Making the entry not required for the attachment gets past this error, but is obviously not the behaviour I want.
Hopefully this makes sense, but let me know if it doesn’t or you need more info!