I've the following error when clearing the cache or reverting the features:

Error: Call to undefined function conditional_fields_load_dependencies() in conditional_fields/includes/conditional_fields.features.inc, line 40

Backtrace:

9 drupal_flush_all_caches( )	../system.admin.inc:1767
10	module_invoke_all( $hook = 'flush_caches' )	../common.inc:7478
11	call_user_func_array ( 'features_flush_caches', array () )	../module.inc:895
12	features_flush_caches( )	../module.inc:895
13	features_rebuild( $rebuild = ??? )	../features.module:257
14	_features_restore( $op = 'rebuild', $items = array () )	../features.module:984
15	features_get_component_states( $features = array (), $rebuild_only = TRUE, $reset = FALSE )	../features.module:925
16	features_get_signature( $state = 'normal', $module_name = 'foo_pages', $component = 'conditional_fields', $reset = FALSE )	../features.export.inc:893
17	features_get_normal( $component = 'conditional_fields', $module_name = 'foo_pages', $reset = FALSE )	../features.export.inc:665
18	features_invoke( $component = 'conditional_fields', $callback = 'features_export_render', 'foo_pages', array (0 => 'node:page'), NULL )	../features.export.inc:733
19	call_user_func_array ( 'conditional_fields_features_export_render', array (2 => 'foo_pages', 3 => array (0 => 'node:page'), 4 => NULL, 5 => 'conditional_fields') )	../features.module:562
20	conditional_fields_features_export_render( $module_name = 'foo_pages', $data = array (0 => 'node:page'), $export = NULL, 'conditional_fields' )	../features.module:562
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb’s picture

Status: Active » Needs review
FileSize
3.22 KB
aniket.mohite88’s picture

kenorb,

Thanks a lot...!!

After a lot of searching, i was able to to get the conditional fields backed up (exported in code) using features module.

Conditional field 7.x-3.0-alpha1
features 7.x-2.2

In my case the dependent field was a "Date" field & the dependee was a "Boolean" field.
For a boolean field (required field), Value-1 (YES) I wanted a certain date field to be visible & for Value-0 (NO) the date field to be invisible.

Now the same has been exported successfully using features as well.
The conditional field setting was NOT detected automatically on the feature creation page, but option to select the same (NODE-TYPE on which the conditional fields do exist) becomes available for selection.

Had searched a lot & tried a few code patches, before trying this out. Finally this worked, so Adding tags at the bottom, with all the searches that i had done. (It might help others).

tags -
drupal conditional fields with features,
drupal issue with conditional field & features
conditional field export in features
conditional field features back up
conditional field features compatibility

aniket.mohite88’s picture

PFA - The selection available after applying the patch.

for my content-type - Task Change Control

joelpittet’s picture

Version: 7.x-3.0-alpha1 » 7.x-3.x-dev
Status: Needs review » Needs work

Why not just include the missing file using module_load_include