Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2015 at 07:41 UTC
Updated:
26 Oct 2015 at 06:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
anton-staroverov commentedAttaching the patch.
Comment #2
stefan.r commentedpatch looks good
Comment #3
stefan.r commentedAs the actual warnings are:
Warning: Invalid argument supplied for foreach() in drupal_schema_field_types() (line 7151 of /includes/common.inc).
Notice: Undefined variable: field_types in drupal_schema_field_types() (line 7154 of /includes/common.inc).
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7171 of /includes/common.inc).
From David_Rothstein, this actually only fixes the notice and not the warnings:
Comment #4
matthandI experience this error on a fresh install that is also running the contrib modules UUID, File Entity, and Entity UUID. It seems there's a conflict between File Entity and Entity UUID that makes the schema object on File Entities not match the database table (file_managed). Just as you say, this patch only fixed the notice and not the warnings. Also, the warnings are triggered when viewing a file entity or flushing cache. I'll keep debugging the other modules but wanted to confirm to you that your assumptions are correct about a malformed entity.
Comment #5
David_Rothstein commentedCommitted to 7.x - thanks!