Closed (cannot reproduce)
Project:
Custom Permissions
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
20 Oct 2010 at 04:13 UTC
Updated:
17 Jan 2011 at 09:20 UTC
"warning: Invalid argument supplied for foreach() in .../sites/all/modules/config_perms/config_perms.module on line 112."
108 * Implementation of hook_menu_alter().
109 */
110 function config_perms_menu_alter(&$items) {
111 foreach (config_perms_perms() as $perm) {
112 foreach ($perm->path as $path) {
113 $items[$path]['access callback'] = 'config_perms_access_callback';
114 $items[$path]['access arguments'] = array($perm);
115 }
116 }
Comments
Comment #1
lpalgarvio commentedyup
warning: Invalid argument supplied for foreach() in /config_perms/config_perms.module on line 112.also, in config_perms.install, the version wasn't updated, so an update never takes place
if you change that to 6201, and try updating, it will report errors.
and disabling returns error:
warning: Invalid argument supplied for foreach() in /config_perms/config_perms.module on line 111.and installing returns errors, even if you don't change the version
Fatal error: Unsupported operand types in /config_perms/config_perms.module on line 52Comment #2
Docc commentedK seems the updatefrom 1.x to 2.x doesnt go flawless. Ill check it out ASAP.
Comment #3
rfreij commentedAny updates on this?....this error makes this module unusable
Comment #4
rfreij commentedenabled http://drupal.org/project/ctools and all is well
Comment #5
lpalgarvio commentedenabling Chaos Tools only makes the error disappear from most pages, but not all
it still shows in modules page after submitting for example.
i'm reverting my sites back to beta2.
please give priority to this bug.
Comment #6
Docc commentedDid you try the dev version? Should be fixed in there. Let me know.
Should be oke with and without ctools.
Comment #7
Docc commentedComment #8
Docc commentedComment #9
Docc commentedComment #10
ClearXS commentedWell, I have exactly the same error as before and now running the ultimately recent 6.x-2.0 of Jan 15th 2011.
I'll try uninstalling and installing again, lets see if that helps if this module cleans up the database when uninstalled.
(will edit the result here, but have other things to do now & this procedure costs me hours to fulfill, due to the hundreds of modules on a cpu throttled host account)
Comment #11
Docc commentedI installed the module on a clean drupal install without ctools.
Alle all databse entries got inserted on install. Please uninstall the module and install again. That should do it.