Closed (fixed)
Project:
Nodereference Explorer
Version:
6.x-1.x-dev
Component:
Nodereference Explorer Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 May 2010 at 15:38 UTC
Updated:
22 Jul 2011 at 09:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
Sloane DellOrto commentedI'm getting the same error.
Fatal error: Class 'nodereference_explorer_plugin_content_' not found in /www/www/current/sites/all/modules/nodereference_explorer/nodereference_explorer.module on line 209
Anytime I update a feature or try to just add a field to a content type. I can choose "select list" as the widget, and change it back later, and then it seems to work OK.
Comment #2
rcross commented+1
Comment #3
bdhowell commented+1
Comment #4
gnindl commentedApparently the nodereference_explorer_widget_settings_save() function is invoked on field creation. A valid field cannot be found, which is not necessary at this point. Therefore we can simply skip this any routine here. See current dev snapshot.
Comment #6
netsensei commentedI'm going to reopen this one.
Just installed version 1.2 on a site. I had a few existing nodereferences where I wanted to use the widget. Upon changing the widget to 'explorer', I got this error.
You try to fetch the field object with
content_fields()through it's field_name in_nodereference_explorer_widget_settings_get_content_field(). When the second method - fetching through the error element - is being used, things can go wrong.My field has a long name: field_publ_contactpersoondistributeur. The error element returns this entire fieldname. Turns out that the keys in content_fields() array get truncated to 32 characters. So, content_fields will return NULL although the field exists.
Patch attached.
Comment #7
gnindl commentedThanks netsensei, your patch has been committed:
http://drupalcode.org/project/nodereference_explorer.git/commit/e162080