At some point, something ugly got in the database (I am presuming) and this error started appearing on every page request for every single user except for the administrator. For some users, it also appears twice in a row, for others only once.
warning: Invalid argument supplied for foreach() in /Users/reuben/Sites/Swirl/swirl-internal/intranet/sites/all/modules/og_content_type_admin/og_content_type_admin.module on line 772.
I have attached a more elaborate dump from devel
thanks all :-)
| Comment | File | Size | Author |
|---|---|---|---|
| error.zip | 95.83 KB | reubenavery |
Comments
Comment #1
rconstantine commentedThanks for providing the 'entire page' version of the devel stuff. You should see it without the folder of extra stuff; it's really hard to read.
Anyway, looking at the third line down, you can see that the array passed in is empty. That would be a problem. The error displays twice because it occurs both times the menu hook is called - once for cached items, once for non-cached items. I could maybe move it inside the non-cache section, but that isn't what's causing your problem.
So my guess is that you just installed this module and either haven't gone to the admin page and setup/saved your settings (which I don't think is actually necessary with the defaults I provide), or this table was not created: og_content_type_admin. Can you check your database and see if that table exists? If it does, can you post the contents here?
Hold on a minute. I just noticed that you have the menu per role module active. I wonder if that is causing problems.
Comment #2
ecuadorbob commentedThis is not going to be a very helpfull answer, because I don't really know what happened.
I probably had the same problem. It appeared after I removed the "Create content" entry from the Navigationmenu. Create content was gone, but a new entry appeared: "Create general content".
I thought it might have something to do with the "OG Content Type Admin"-Module, so I uninstalled it and changed back the table "og_content_type_admin" back to it's original state.
And now it's working again. I still have the "Create general content"-MenuPoint, but the error is gone...
Comment #3
rconstantine commentedThe item in the navigation menu is of no consequence. That points to the same place. I only change the text to reflect that general (or site-wide) content can be created from the navigation menu, but group-specific stuff should be created from the group's context menu within the group.
What I referred to before were blocks. OG comes with a block for the group context menu. That the menu that appears when you're in a group and disappears when you're not in one. I have replaced it with a version that facilitates the content type restrictions implemented by this module. Without that block, things just won't work and you may as well not install this module.
I'm not sure if you're addressing the same issue or something else altogether since you didn't seem to site any specifics from the original post.
In any case, I wonder if the original poster is still interested. If I don't hear back from him, then I'll just close this issue.
Comment #4
rconstantine commented