After a user accepts the terms of use after it has been updated (I'm not sure whether or not the error occurs with first time registration), the following error is thrown:

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /blah/blah/blah/includes/entity.inc)

According to this page on stackexchange it's probably related to the user_load array on line 585 in legal.module. Everything seems to be functional otherwise, but it's probably best to stop this error from showing up.

Comments

spouilly’s picture

I am having the same issue and yes, you are correct.

Replace:
$user = user_load(array('uid' => $values['uid']));
By:
$user = user_load($values['uid']);

hubobbb’s picture

StatusFileSize
new22.43 KB

Great! It works for me!

Tks. Buddy!

========================================
Attach file solve 2 issue(contain this) , good for legal 7.12 .

share to you . may help you someone need .

jax’s picture

Status: Active » Closed (fixed)

This is fixed in the dev version.

mvc’s picture

Status: Closed (fixed) » Closed (duplicate)
subhojit777’s picture

StatusFileSize
new453 bytes

Here is a patch for the above correction