I'm getting this error whenever I try to enable this module under a commerce kickstart rc1 setup:

Warning: ksort() expects parameter 1 to be array, null given in drupal_group_js() (line 4382 of .../public_html/includes/common.inc).
Warning: ksort() expects parameter 1 to be array, null given in drupal_group_js() (line 4382 of .../public_html/includes/common.inc).

Any ideas?

Comments

spotzero’s picture

Status: Active » Needs review

It looks like commerce kickstart has some patchset or backported D8 core code that it don't like what is added by AIS' implementation of hook_js_alter.

This is likely a bug somewhere all the core changes, but the easiest way to fix it may be to add

'browser' => '',

into the two array of javascript definitions added by ais.module->ais_js_alter().

I haven't tested that, but give it a try. If it works I'll update AIS.

Thanks,

Zach Harkey’s picture

Still no dice.

spotzero’s picture

Status: Needs review » Fixed

Looks like the correct answer was 'browsers' => array() in each block.

I've commited the fix to the dev branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.