Problem
I had a blank page, sometimes (clearing cache solved the problem for some minutes but error reappaears after), when creating a node containing several nodereference_explorer fields. I looked in php log and saw this error:
PHP Fatal error: Call to undefined function theme_link() in nodereference_explorer/plugins/content/link/nodereference_explorer_plugin_content_link.inc on line 73
Proposed resolution
I have solved it with the joined patch, but not sure it is the good way to fix it...
In file plugins/content/link/nodereference_explorer_plugin_content_link.inc, I have added code below just after line 9: module_load_include('inc', NODE_REFERENCE_EXPLORER_MODULE_NAME, 'plugins/content/nodereference_explorer_plugin_content');
// Fix php fatal error "Call to undefined function theme_link()" called in function theme_nodereference_explorer
// happening sometimes : clear cache and it's ok,
// try later without clearing cache and Fatal error
if ( !function_exists('theme_link') ) {
module_load_include('inc', 'link', 'link.theme');
}
Details :
Comment | File | Size | Author |
---|---|---|---|
#2 | theme_link-1882234-2.patch | 1002 bytes | dboulet |
fatal_error_theme_link.patch | 925 bytes | SylvainM |
Comments
Comment #1
dboulet CreditAttribution: dboulet commentedI think that the proper fix would be to replace the call to
theme_link()
withtheme('link')
.Comment #2
dboulet CreditAttribution: dboulet commentedThis seems to fix the problem for me.
Comment #3
SylvainM CreditAttribution: SylvainM commentedThanks, this patch solves the issue for me.
Comment #4
gnindl CreditAttribution: gnindl commentedThanks, patch from comment #2 committed.