After enabling, configuring and successfully saving an edited CSS file for one of the themes, the front page of the site receives the following message and nothing else is shown. The admin pages was accessible, and I managed to disable the Theme Editor and the IDE companion module (both were enabled), and then the web site was operating normally again.

"Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2136 of /home/abcde/public_html/includes/database/database.inc)."

I have not dug into what may have caused this, and hardly got time to test this module at all before this happened. Lots of modules at play on the web site in question. Will try on a different site on a different server environment with hardly any extra modules to see if the same happens there. Reporting back here shortly if it behaves differently on the other server.

Comments

Taxoman’s picture

Alan Warren’s picture

I got a fatal error when loading. Using Drupal 7.1.7.

Fatal error: Call to undefined function theme_editor_load() in---/public_html/includes/menu.inc on line 593

If you are installing back up first.

Don't want a solution, it is still dev, just letting you know.

mglaman’s picture

I found part of the issue: when you comment out theme_editor_file_load file upload functionality works. If you try to remove image with function still commented out, theme_editor_file_delete throws an warning.

  $query = db_select('theme_editor_files', 'f');
  $query->condition('f.fid', $fid, '=');
  $query->range(0,1);
  $query->fields('f');
  if ($vid) {
    $query->join('theme_editor_files_versions', 'v', 'f.fid = v.fid AND v.vid = :vid', array(':vid' => $vid));
    
  }
  else {
    $query->join('theme_editor_files_versions', 'v', 'f.fid = v.fid AND f.vid = v.vid');
  }
  $query->fields('v');
  $file = $query->execute()->fetch();
  module_invoke_all('theme_editor_fileapi', 'load', $file);
  return $file;

The error is from $file = $query->execute()->fetch();.

I'm new to this in depth of dev, but is there a way to limit this hook to only the modules scope, if dealing with its own admin pages?

Frizus’s picture

Frizus’s picture

Issue summary: View changes

corrected error in the file path

rankinstudio’s picture

I'm still getting this error when I enable it with the latest dev 7X version?

Im on D7.17

whitefoxdeveloper’s picture

TYPE php
DATE Tuesday, April 21, 2020 - 16:18
REFERRER
MESSAGE Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2227 of …/public_html/includes/database/database.inc).
SEVERITY error
OPERATIONS