Argument 2 passed to __() must be an array, integer given
A for , submitted by wjnielsen on 31 March 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#289: Argument 2 passed to __() must be an array, integer given
Looks as if alpacaaa found the solution…
Around line #138 in symphony/lib/toolkit/data-sources/datasource.section.php just replace this:
if($field_id != 'id' && !($fieldPool[$field_id] instanceof Field)){ throw new Exception( __( 'Error creating field object with id %1$d, for filtering in data source "%2$s". Check this field exists.', $field_id, $this->dsParamROOTELEMENT ) ); }
and replace with:
if($field_id != 'id' && !($fieldPool[$field_id] instanceof Field)){ throw new Exception( __( 'Error creating field object with id %1$d, for filtering in data source "%2$s". Check this field exists.', array($field_id, $this->dsParamROOTELEMENT) ) ); }
I’ve integrated Alpacaaa’s fix in this commit
This issue is closed.