Active
Project:
Entity Relationships
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2011 at 15:21 UTC
Updated:
19 Jun 2012 at 04:46 UTC
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 6640 of /home/andy/d7sandbox/drupal/includes/common.inc).
Comments
Comment #1
usonian commentedProbably due to er_FOO_instance tables being built on the fly; need to see how best to tell the system about them
Comment #2
eustace commentedSeeing same too. Any ideas how to handle it?
Comment #3
eustace commentedI debugged and found my problem to be coming from a typo in an install file I created. I have a multi table implementation of hook_schema and mistyped one of the table names such that the name was no longer consistent with its use within the corresponding .module file. This resulted into the passing of NULL instead of field listing for this table as part of the content of the $table argument of function drupal_schema_fields_sql() defined in common.inc. Correcting the typo eliminated the warning message. Highly repeatable.
Comment #4
mgiffordI just got the same error:
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 6751 of /DRUPAL7/includes/common.inc).
Expect it's likely a similar typo, but not sure how best to track it down.
Comment #5
alan d. commentedIn line 6751 of /DRUPAL7/includes/common.inc (just remember to remove it afterwards!)
Comment #6
kristen polBased on reading other issues, a call to:
or
should help get the schema updated so that
drupal_schema_fields_sql()doesn't complain. The trick will be to find where to put the code.