On node editing:
Notice: Undefined index: #value in function opencalais_form_node_form_alter() (line 126 in file /var/www/zegmant/data/www/otto-rahn.com/sites/all/modules/opencalais/opencalais.module).
here the line:
122 $vars = array(
123 'type' => $opencalais_type,
124 'field_name' => $field_name,
125 'suggestions' => $suggestions,
126 'language' => $form['language']['#value']
);
After node saving
Notice: Undefined index: en in opencalais_node_form_submit() (line 204 of /var/www/....../sites/all/modules/opencalais/opencalais.module).
Warning: Invalid argument supplied for foreach() in opencalais_node_form_submit() (line 205 of /var/www/zegmant/data/www/otto-rahn.com/sites/all/modules/opencalais/opencalais.module).
Notice: Undefined index: opencalais_calaisdocumentc_tags in function locale_field_node_form_submit() (line 404 in file /var/www/....../modules/locale/locale.module).
Notice: Undefined index: opencalais_provinceorstate_tags in function locale_field_node_form_submit() (line 404 in file /var/www/.../modules/locale/locale.module).
and so on for all tags
the lines:
204 $field_values = $form_state['values'][$field][$lang];
205 foreach($field_values as $i=>$v){
206 if(isset($extras[$field][$v['name']])){
207 $eV = $extras[$field][$v['name']]['extra'];
208 foreach($eV as $n=>$extra_val){
209 $form_state['values'][$field][$lang][$i][$n][$lang] = array();
210 $form_state['values'][$field][$lang][$i][$n][$lang][] = array('value' => $extra_val);
211 }//end foreach
}
401 foreach (field_info_instances('node', $bundle) as $instance) {
402 $field_name = $instance['field_name'];
403 $field = field_info_field($field_name);
404 $previous_language = $form[$field_name]['#language'];
As a result - no tags have been saved.
please help to fix
Comments
Comment #1
terry22 CreditAttribution: terry22 commentedHi I have the same problem with version 7.x-1.x-dev.
+ I got : Fatal error: Call to undefined function ctools_export_load_object() in /home/xxx/public_html/sites/all/modules/opencalais/opencalais.export.inc on line 121
when going to opencalais_fields tab in content type editing
Do you found a fix to this issue?
Thank you
Comment #2
terry22 CreditAttribution: terry22 commentedNobody knows how to fix this problem on multilanguage sites?
thanx for your help
Comment #3
jec006 CreditAttribution: jec006 commentedThis looks like I'm not accessing the field values by language properly, I'll look into it.
Sorry for the delay.
Comment #4
jinhcc CreditAttribution: jinhcc commentedany solution to this? for my case, nothing comes out when pressing the 'suggest' button but the current way i do to tweak this is to save the node 1st then i can see the suggestions.
Comment #5
terry22 CreditAttribution: terry22 commentedThank you for looking at this jec006.
This module is very helpful.
Comment #6
Tuk CreditAttribution: Tuk commentedI'm getting:
Fatal error: Call to undefined function ctools_export_load_object() in /home/site/drupal-7.12/sites/all/modules/opencalais/opencalais.export.inc on line 121
When I go to /admin/structure/types/manage/article/opencalais_fields
Comment #7
jec006 CreditAttribution: jec006 commentedThe undefined function error is fixed here: #1442266: Call to undefined function ctools_export_load_object()
As far as multilingual goes:
I fixed the tagging issue - there still remains one issue which I will open a new issue for and deal with seperately. That is: If you put the opencalais fields in a vertical tab, locale can't find them and throws errors. #1461814: Locale throws error when using vertical tab option.
I fixed the tagging issue by making the fields use LANGUAGE_NONE - they are marked as non-translatable and thus will never get a language. If it is desirable to have them be translatable, we can deal with that as a different issue (they've always been non-translatable) - I'm not sure whether this is desirable or not.
Here is the commit for the language code fix: http://drupal.org/commitlog/commit/5830/28d0e1562528b85cf5099e8c06e2115b...
Comment #8
jec006 CreditAttribution: jec006 commentedComment #9.0
(not verified) CreditAttribution: commentedmistake