Error

Error

XOR's picture

I was unable to submit my art.
This is the error text:

  • Notice: Undefined index: field in field_widget_field() (line 548 of /var/www/sites/opengameart/modules/field/field.form.inc).
  • Warning: Invalid argument supplied for foreach() in taxonomy_autocomplete_validate() (line 1642 of /var/www/sites/opengameart/modules/taxonomy/taxonomy.module).
  • 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 base.tid AS tid, base.vid AS vid, base.name AS name, base.description AS description, base.format AS format, base.weight AS weight, v.machine_name AS vocabulary_machine_name FROM {taxonomy_term_data} base INNER JOIN {taxonomy_vocabulary} v ON base.vid = v.vid WHERE (base.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND (base.vid IN ()) ; Array ( [:db_condition_placeholder_0] => cursor ) in DrupalDefaultEntityController->load() (line 196 of /var/www/sites/opengameart/includes/entity.inc).

While trying to upload my art i got an ajax error, which im not able to reproduce anymore.
This may be a security problem since the error log is printed out to the user with filepath and sql-error.
You may want to pipe that code into a logfile instead of printing it out to the user.

My actions before getting the error (possible reproduction):
- Create a new Account
- Activate it
- Loggin on multiple tabs in Firefox 18.0.2
- Click on submit Art
- Fill the left form
- Write a comment
- try to upload a preview
- try to upload a file(s)
- try to commit the post

Thank you for your time and work,
XOR