Closed (fixed)
Project:
Location
Version:
6.x-3.1-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2009 at 01:51 UTC
Updated:
29 Nov 2009 at 20:00 UTC
I am using location on my site. When I try to register as a new user, it works, but provides the following error:
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: Invalid argument supplied for foreach() in /home/uomeds/public_html/sites/all/modules/location/location.module on line 1440.
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: Invalid argument supplied for foreach() in /home/uomeds/public_html/sites/all/modules/location/location.module on line 1440.
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: Invalid argument supplied for foreach() in /home/uomeds/public_html/sites/all/modules/location/location.module on line 1440.
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/uomeds/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
* warning: Invalid argument supplied for foreach() in /home/uomeds/public_html/sites/all/modules/location/location.module on line 1440.
So it seems there is something wrong with my lines 385 in location_cck.module and 1440 in location.module.
Does anyone know what the problem is or how I can fix it?
Thanks.
Comments
Comment #1
uomeds commentedline 385
'hide' => array_keys(array_filter($item['location_settings']['display']['hide'])),line 1440
foreach($variables['hide'] as $key) {So it seems to be an inability to hide fields. I tried disabling hiding and set to allow all fields pertinent to the user profile, but the error was unchanged.
My site is completely unusable with this error.
Comment #2
uomeds commentedfixed.
http://drupal.org/node/373465#comment-2268312