Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
I have og 7.x-2.4 installed and og_context module enabled. I am using latest version of this module and when I enabled and configured the module I got a white screen and logs showed
Call to undefined function og_get_context_by_url() in <drupalroot>/sites/all/modules/nodereference_url/nodereference_url.module on line 180
Comment | File | Size | Author |
---|---|---|---|
#1 | nodereference_url-Call_to_undefined_function_og_get_context_by_url-2185923.patch | 1.45 KB | sadashiv |
Comments
Comment #1
sadashiv CreditAttribution: sadashiv commentedI tried to debug and fixed this issue. I am attaching the patch for this fix.
Hth,
Sadashiv.
Comment #2
tawellman CreditAttribution: tawellman commentedPatch worked for me! Thank You!
Comment #3
asb CreditAttribution: asb commentedI got hit by the same error after enabling OG. The patch from #1 applies cleanly against nodereference_url 7.x-1.12:
Changing priority according to Priority levels of issues since this issue "renders a system unusable" (WSOD on non-OG related nodes with a Nodereference URL field).
@sadashiv: Thanks for the patch! Could you please re-roll it against the dev release (nodereference_url 7.x-1.x-dev) so the maintainers can commit it?
Comment #4
sadashiv CreditAttribution: sadashiv commentedHi @asb,
I checked and found that the patch works with 7.x-1.x branch. The module has a last commit in September 2011 so may be we don't need to re roll the patch and maintainers can commit it.
Thanks,
Sadashiv.
Comment #5
VM CreditAttribution: VM commentedmoving to -dev
Comment #6
AnybodyThis bug is very critical but nothing happened so far. It would be very very helpful if this bug could be applied in the near future. The problem completely kills the site.
Thank you so much.
Comment #7
AnybodyPast note: After using the patch with OG 2.x I have the following notice:
The problem is that in
$group_entity should be an object but is an array in some cases! Why?