Closed (fixed)
Project:
Organic Groups
Version:
4.6.x-1.x-dev
Component:
og.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2006 at 18:37 UTC
Updated:
31 May 2007 at 18:54 UTC
I'm getting occasional errors like this:
Fatal error: Call to undefined function: node_load() in <path>modules/og/og.module on line 206
in a 4.6 install. My assumption is that it's because I've got caching turned on (why else wouldn't node_load exist?), and I've turned it off for now and it seems to have fixed it. Of course, caching would be nice ...
So - can I solve this by clearing my cache? Or is this an error in handling cached pages? Meanwhile I'm going to try and understand the code a bit more to see if I can just wrap a 'function_exists' around the offending code ...
Comments
Comment #1
adixon commentedokay, i think this patch should work, but someone should look first:
In other words, it looks like the existence of module_init isn't a reliable indicator of whether i'm serving a cached page. Obviously, node_load is, though perhaps there's a more standard way to do this.
Comment #2
Jhef.Vicedo commentedI think the content of og_init() hook should be placed on hook_menu(!$may_cache).
See http://api.drupal.org/api/4.6/function/hook_init
Comment #3
adixon commentedYes, that issue is being dealt with here: http://drupal.org/node/66155
Comment #4
moshe weitzman commentedtoo old version