Closed (duplicate)
Project:
Legal
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2012 at 04:24 UTC
Updated:
18 Mar 2013 at 12:18 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | legal-array_flip-1704926-5.patch | 453 bytes | subhojit777 |
| #2 | legal.module.txt | 22.43 KB | hubobbb |
Comments
Comment #1
spouilly commentedI am having the same issue and yes, you are correct.
Replace:
$user = user_load(array('uid' => $values['uid']));By:
$user = user_load($values['uid']);Comment #2
hubobbb commentedGreat! 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 .
Comment #3
jax commentedThis is fixed in the dev version.
Comment #4
mvcsee #1300930: Array passed to user_load() causes warning
Comment #5
subhojit777Here is a patch for the above correction