On admin/content/taxonomy/edit/vocabulary/1 the preview works fine. I have selected there "Save term lineage" as per your Troubleshooting tips. Also "Multiple select" is selected, but in the preview it's not possible to select multiple terms.
I then clear all caches (using admin_menu) and go to node/add/job and do shift-refresh (just to be sure) and I choose the one item which has children and I get "Received an invalid response from the server."
The server response to the URL hierarchical_select_json was of course "Unsupported operand types in includes/common.inc on line 2886"
I am logged in as user #1 so I don't think it could be a permissions problem.
I looked through the code a bit looking for something obvious and I did find this:
$extra = '<input class="autocomplete" type="hidden" id="'. $element['#id'] .'-autocomplete" value="'. check_url(url($element['#autocomplete_path'], NULL, NULL, TRUE)) .'" disabled="disabled" />';
around line 131 of includes/theme.inc which I believe should be:
$extra = '<input class="autocomplete" type="hidden" id="'. $element['#id'] .'-autocomplete" value="'. check_url(url($element['#autocomplete_path'],array('absolute' => TRUE))) .'" disabled="disabled" />';
But anyhow that's not the source of my problem.
Could you suggest why it works in the preview yet not on the "real" page?
Thanks.
Here are active modules on this site. All are latest stable releases as of today:
"name"
"admin_menu"
"admin_menu_toolbar"
"block"
"blog"
"blogapi"
"calendar"
"civiaddresslog"
"civicrm"
"comment"
"contact"
"content"
"content_copy"
"content_multigroup"
"content_permissions"
"content_profile"
"date"
"date_api"
"date_popup"
"date_timezone"
"dblog"
"fieldgroup"
"filefield"
"filter"
"forward"
"help"
"hierarchical_select"
"hs_taxonomy"
"hs_taxonomy_views"
"image"
"imageapi"
"imageapi_gd"
"imageapi_imagemagick"
"imagecache"
"imagecache_ui"
"imagefield"
"image_attach"
"image_import"
"image_im_advanced"
"img_assist"
"jcalendar"
"jquery_ui"
"jstools"
"kc_custom"
"link"
"menu"
"messaging"
"messaging_mail"
"messaging_simple"
"node"
"nodereference"
"notifications"
"notifications_content"
"notifications_tags"
"notifications_ui"
"number"
"optionwidgets"
"path"
"pathauto"
"php"
"profile"
"registration_role_with_approval"
"scheduler"
"search"
"system"
"taxonomy"
"taxonomy_csv"
"text"
"token"
"tokenSTARTER"
"token_actions"
"tracker"
"tree_menus"
"update"
"upload"
"user"
"userreference"
"views"
"views_export"
"views_rotator"
"views_ui"| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fatal-error.jpg | 290.24 KB | scottrouse |
Comments
Comment #1
Alexander Matveev commentedThe same problem.
When trying to add node form embed node form. Using Form Block, Content Taxonomy and Hierarchical Select.
Comment #2
ceejayoz commentedSubscribing. Happening for me as well with a content taxonomy field.
$part_of_form = _hierarchical_select_get_form_item($form, $name);inhierarchical_select.moduleappears to be returning false in my situation.It is looking for
field_record_schedule[tids]in the following array. Looks like it needs to be recursing into#post?Comment #3
scottrouse commentedSame issue here on a node/add form.
Unsupported operand types in includes/common.inc on line 2886Comment #4
scottrouse commentedA bit more investigating:
Thanks to a suggestion on IRC, I added
if (!is_array($elements)) var_dump(debug_backtrace());just above$elements += array('#title' => NULL, '#description' => NULL);on line 2887 of includes/common.inc (http://drupalbin.com/15434) and installed/enabled the Devel module.When trying to use HS to select a taxonomy hierarchy on a node/add or node/edit form, I still get the "Received an invalid response from server" message. Here is the POST response output to Firebug with Devel enabled:
Not sure if that's helpful or not, but I'm getting pretty desperate here. Grateful for any help out there.
Comment #5
abaddon commented@ScottRous , as per chat, ive enabled Hierarchical Select and Hierarchical Select Taxonomy, on an almost bare drupal 6 development site
created a test vocabulary, added 10 test terms to it in random hierarchy, checked to use Hierarchical Select for the vocabulary and used it on Page content types, everything else is default
i wasnt able to replicate this, the form works both in preview & node creation
i think theres some contrib module that spoils the form, if we can touch base on irc again ill try to help you debug
Comment #6
domidc commentedSame issue here when updating to latest version.
Comment #7
domidc commentedI found what was causing the problem in my installation. When updating to the latest version I also installed memcached for the installation (this my config which I have used on many sites before http://dominiquedecooman.com/blog/install-memcache-drupal-centos). I havent been able to track down the exact cause but disabling memcached, which works fine for the rest of the installation, makes the php error go away.
The thing is I counted on having memcached for performance. Probably some cached stuff doesnt get retrieved by hierarchical select from the memcahced bins but does make it when its stored in the database caching. I dont have the time right now to fix this issue so I ll have to manage with database caching. Probably next month or so maybe i ll have some time to fix this issues and find the cause. Maybe someone else could try in the meanwhile?
Comment #8
freeunited commentedComment #9
domidc commentedThe problem was indeed cache related. this issue http://drupal.org/node/538022#comment-3116204 explains. At #92 there is a patch that solved my problem.
Comment #10
wim leersThis is a duplicate, then. Thanks for tracking this down! :)