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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

szantog’s picture

Status: Active » Needs review
FileSize
1.01 KB

It seems, we should buildt the cache manually.

Murz’s picture

Status: Needs review » Reviewed & tested by the community

Got the same issue, applying this patch solve it.

Kristen Pol’s picture

Issue summary: View changes

Updated issue summary.

Dave Reid’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

I 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.