Closed (fixed)
Project:
OG Mailinglist
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2012 at 17:46 UTC
Updated:
11 Feb 2013 at 01:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
tommyvyo commentedI can confirm this happened to me several times in previous versions. Was never able to properly diagnose or debug it, in same cases it worked and in others it didn't. :'(
Comment #2
kyle_mathews commentedAre you using the right version of Organic Groups? OGM only works with the 2.x series of Organic Groups. I remember seeing the same error when I accidentally installed the module with OG 1.4.
Could you verify you're using the right version of OG? Also, Mahfiaz is this documented in the INSTALL.txt that people need to use OG 2.x?
Comment #3
mahfiaz commentedThanks Kyle for suggestion. I updated INSTALL.txt file and also added required version 2.x to og_mailinglist.info
tommyvyo, if you use og-2.0-beta1 and this error still shows, then please speak up. Thanks for reporting.
Comment #4
dtriley4 commentedHello,
I just tried again with the og-2.0-beta1. Still no go. Thanks again!
Comment #5
dtriley4 commenteddisregard, It seems to be working. Not sure what my issue was. Will report back with anything I find.
Comment #6
mahfiaz commentedI have seen this error myself, but it was at least a month ago or so.
This most likely is caused by og or og_mailinglist code not being correctly indexed or loaded. If this is true, then doing "Cache clean" should be sufficient.
We could workaround this by including needed files manually, but I am not yet convinced this is really neccessary.
Comment #7
tommyvyo commentedPretty sure it was og-2-beta1 not being installed.
Haven't seen it since.
Comment #8
mahfiaz commentedtommyvyo, so it was result of using an older og release? (Sorry, cannot be sure when reading your sentence.)
I added a requirement of og >= 2.x to .install file the other day, so it will not be possible to enable it with previous releases.
Comment #9
tommyvyo commentedTried fixing migration issue from other thread and did so by uninstalling OG Mailinglist and OG. Reinstalled both with proper requirements and I'm still getting this error.
Any advice or suggestions on how to proceed?
Comment #10
kyle_mathews commentedIf you can, the simplest thing is to just start over from a fresh install of Drupal.
Comment #11
mahfiaz commentedIf you cannot start over, you could send me your database dump. Otherwise I cannot really help here, I don't get this error.
Comment #12
tommyvyo commentedSolved this error:
By adding
field_info_cache_clear();to line 3 of og_mailinglist.install.Will report back tomorrow on any other issues we may come across.
Comment #13
mahfiaz commentedLast week I tested it and was able to get this error (don't know how exactly, happened only once). Adding field_info_cache_clear() made it worse, so it ended with fatal error. I hope I am able to reproduce it once more. But I still don't know what causes it.
Comment #14
schultetwin commentedI was able to reproduce this. I think this is caused because field definitions are cached. So when og_create_field is called, the cached is not yet updated, so the installer can't see the field yet. I have a patch attached that I think should fix it, and not cause any more errors. I just forces the cache to be rebuilt.
Comment #15
mahfiaz commentedThanks, schultetwin, this one was bugging me for long time. Fix is committed now.