I ran this module because I'm getting the error message
Catchable fatal error: Argument 2 passed to entity_views_field_definition() must be an array, null given, called in /home/example/public_html/drupal-7.12/sites/all/modules/entity/views/entity.views.inc on line 152 and defined in /home/example/public_html/drupal-7.12/sites/all/modules/entity/views/entity.views.inc on line 175

But when I run it, I get

DRUPAL_ROOT is /home/example/public_html/drupal-7.12.<br/>
Bootstrapping to DRUPAL_BOOTSTRAP_SESSION<br/>

Fatal error: Call to undefined function  db_query() in /home/example/public_html/drupal-7.12/includes/cache.inc on line 357

Since I need the site up and running, I'm going to try to restore a backup now, but I'd be interested to know what to try differently next time. It's hard to imagine the db_query function being undefined. Thank you for the module, and for any help you can offer!

Comments

rfay’s picture

If you had a files and database dump I'd take a look at it.

It sounds like somehow the file that contains db_query() didn't get loaded.

You don't mention whether you were just using drush.

Musicious’s picture

I am experiencing this right now too.. exact same error.

I am running it manually as drush won't run since I am getting

Drush command terminated abnormally due to an unrecoverable error.
Error: Class 'DrupalDefaultEntityController' not found in...

( I am close to tears, deadline Monday and my last backup is over 200 hours of work ago.. Please help)

rfay’s picture

Hmm. I note that the dev release was one commit ahead of 7.x-1.6, so I created a 7.x-1.7, which is now the same as the dev.

You might try 7.x-1.5 or earlier, and the new 1.7 (which would be the same as the dev)

If you're willing to provide a database and code dump, I will try to take a look at it. (Just dropbox it or whatever to randy at randyfay dot com.)

Musicious’s picture

Yeah, that did not work either. Thanks for the quick reply Randy.

I'll put that dump together and share on dropbox.

It will be a folder called registry_rebuild thinkingskills.

I really hope you can help.

Cheers,

Will.

rfay’s picture

Status: Active » Fixed

@Musicious, I was able to rebuild your registry just fine. However, you must tell drush *which* subsite you're trying to access. Here's what I did:

$ cd sites/thinkingskills.me/
rfay@Randys-MacBook-Air:~/workspace/thinkingskills/sites/thinkingskills.me$ drush rr
The registry has been rebuilt.                                                   [success]
'all' cache was cleared      

I do recommend that you remove the "module" version of registry_rebuild from modules/registry_rebuild, as it just gets in the way.

I put the rebuilt db in your dropbox.

I'll update the project page to suggest that people make sure to drush rr within the correct subsite and that they get rid of the module version if they have it.

Musicious’s picture

Hi Randy,

Thank you so much for your help. My site is back.

Personal Meltdown over. I owe you man.

Will.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.