On Drupal 7.2, after installing and enabling theme editor I can no longer upload an image on the Create Article page.
Here are the steps to reproduce the problem I see:
1. Fresh install of Drupal 7.2.
2. Install and enable ctools 7.x-1.0-beta1
3. Install and enable Views 7.x-3.0-beta3
4. Install and enable Theme Editor 7.x-2.x-dev.
after enabling theme editor I get an error message:
Warning: Invalid argument supplied for foreach() in _drupal_schema_initialize() (line 6699 of /var/www/html/includes/common.inc).
Notice: Undefined index: fields in DatabaseSchema_mysql->createTableSql() (line 90 of /var/www/html/includes/database/mysql/schema.inc).
Warning: Invalid argument supplied for foreach() in DatabaseSchema_mysql->createTableSql() (line 90 of /var/www/html/includes/database/mysql/schema.inc).
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 ') ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'List of grants for a '' at line 1: CREATE TABLE {theme_editor_access} ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'List of grants for a '; Array ( ) in db_create_table() (line 2644 of /var/www/html/includes/database/database.inc).
5. Click "Home", then "Add new content"
6. Click "Article"
7. Scroll down to choose file, select an image file.
8. Click upload
A dialog box pops up with an error message:
"An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /?q=file/ajax/field_image/und/0/form-6y5OYw_84sCFvGh2UmsiuMhw_vEeR6YMrMy3nOOAC7g
StatusText: n/a
ResponseText:
Error
Error message
Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2095 of /var/www/html/includes/database/database.inc).
The website encountered an unexpected error. Please try again later.
ReadyState: undefined"
If I disable the theme editor module uploading works again. The theme editor appears to function properly when enabled, as far as I can tell.
Please let me know if you need any other information.
Nina
Comments
Comment #1
jimhsu commentedConfirmed on 7.22:
When uploading an image w/ Theme editor enabled: