Getting the following error on node type with a few other image and text fields, after I select a Soundcloud song. When I type in the URL of the song and press submit, I get to see a Soundcloud style of play button icon and the name of the song as a preview in the field. I only get the error when submitting the node. Obvoulsy the error prevents me from adding the field, it get stuck on the edit page with nothing but the error message.

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 2: SELECT f.* FROM {file_managed} f WHERE (fid = :db_condition_placeholder_0) AND (type IN ()) ; Array ( [:db_condition_placeholder_0] => 74936 ) in media_field_validate() (line 318 of /var/www/dragond7/sites/all/modules/contrib/media/includes/media.fields.inc).

Comments

victoriachan’s picture

Status: Active » Closed (duplicate)

This looks like a problem with Media. There's an issue on Media with identical error: Media Browser dont work. Please check with Media if you still need help.

I'm closing this ticket as duplicate.