Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Warning: array_keys() expects parameter 1 to be array, null given drupal_schema_fields_sql() függvényben (/home/szantogabor/public_html/top-memes/includes/common.inc 6842 sor).
I've got this always once, after clear all cache.
It happens, because the xmlsitemap_menu module calls drupal_schema_fields_sql('menu_links'), before schema cache of menu_links table is built in xmlsitemap_menu_entity_info_alter(&$info)
Comment | File | Size | Author |
---|---|---|---|
#1 | 0001-1440744-Fix-schema-cache-isn-t-built-before-drupal_s.patch | 1.01 KB | szantog |
Comments
Comment #1
szantog CreditAttribution: szantog commentedIt seems, we should buildt the cache manually.
Comment #2
MurzGot the same issue, applying this patch solve it.
Comment #2.0
Kristen PolUpdated issue summary.
Comment #3
Dave ReidI don't understand why this is necessary. entity_get_info() calls this function on every item in hook_entity_info() itself before the alter hook is invoked. I've never been able to reproduce this either.
I think we actually need to figure out what causes this. A test to prove that this fails without the patch would be required as well.