Hi,

I've recently added some modules to my site and had a few issues with them that broke my site. The modules used were highcharts, UUID and libraries, although I think the problem I was experiencing came from the UUID module. Since uploading the dev version of UUID I've managed to get rid of the problem, however after running update.php I'm now met with the following error which is stopping me from being able to update properly, use views etc. I'm using Drupal 7.12.

Recoverable fatal error: Argument 2 passed to SelectQuery::fields() must be an array, null given, called in /home/jj/public_html/site.com/includes/entity.inc on line 284 and defined in SelectQuery->fields() (line 1300 of /home/jboo/public_html/easysnoozing.com/includes/database/select.inc).

Can anyone point out what the problem is and how I can fix it?

Thanks for any help.

Comments

dpovshed’s picture

Hi jboo,

in my opinion the problem is initiated on line

    $entity_fields = $this->entityInfo['schema_fields_sql']['base table'];

in DrupalDefaultEntityController::buildQuery() funciton.

Most likely you have incorrectly defined entity in one of module used. If you're techy enough to use debugging - you can find which module causes this.

If you're far from all I wrote above, you may want to upgrade core and modules to recent stable versions.

Hope this helps.

chrisrockwell’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)