Locally (WAMP) I have created a new GIT branch to install Drupal Commerce on my site. Everything went well and I have begun configuring my new shop. But when I decided to pull this branch into my remote test site, I get this error:
Catchable fatal error: Argument 2 passed to SelectQuery::fields() must be of the type array, null given, called in /home/httpd/mysite/test.mysite.se/includes/entity.inc on line 317 and defined in /home/httpd/mysite/test.mysite.se/includes/database/select.inc on line 1316
Since I can't reach my admin pages (white screen with error message) and Drush stopped working as well, I used MySQL from the command line to import the database on the remote test site. So now both the codebase and the database should be the same on the remote test site as I have locally. Instead I get the above error. Any ideas? I have a feeling that Rules is involved in this, but that's just a feeling.
I have now done everything from the beginning, with the same result. I have installed all the commerce modules and their dependencies (Entity api, Rules, Address field etcetera) in the suggested order. Everything works fine until I export a database dump and add & commit all changes to my new git branch. After pulling that branch and importing the database dump in my test site (or even locally), I get the message above.
I have managed to run cron, which gave me this message:
User warning: Missing database columns for the exportable entity rules_config as defined by entity_exportable_schema_fields(). Update the according module and run update.php! i _entity_defaults_rebuild() (rad 872 av C:\wamp\www\sites\all\modules\entity\entity.module).
... allthough I am using the latest version of Rules and when I run the database update, the message is that there is no update pending.
I have also seen this warning:
Warning: array_flip() expects parameter 1 to be array, null given i DrupalDefaultEntityController->buildQuery() (rad 308 av C:\wamp\www\includes\entity.inc).
Any hints on what I can do to get my site back on track?