I am receveing the following error when I goto admin/structure/relation/manage/user_has_survey/fields

I Also see this error if I try to create a relation by calling relation_construct() and then relation_save() ...

Fatal error: Call to undefined function ctools_export_crud_load_multiple() in /Users/david/Sites/2011/dew/master/dist/www/profiles/dewbase/modules/contrib/relation/relation.module on line 354 Call Stack: 0.0001 329344 1. {main}() /Users/david/Sites/2011/dew/master/dist/www/index.php:0 0.0010 383904 2. drupal_bootstrap() /Users/david/Sites/2011/dew/master/dist/www/index.php:20 0.0140 1121232 3. _drupal_bootstrap_full() /Users/david/Sites/2011/dew/master/dist/www/includes/bootstrap.inc:2124 0.0318 2327304 4. menu_set_custom_theme() /Users/david/Sites/2011/dew/master/dist/www/includes/common.inc:4948 0.0318 2327336 5. menu_get_custom_theme() /Users/david/Sites/2011/dew/master/dist/www/includes/menu.inc:1745 0.0328 2342016 6. menu_get_item() /Users/david/Sites/2011/dew/master/dist/www/includes/menu.inc:1730 0.0408 2365264 7. _menu_translate() /Users/david/Sites/2011/dew/master/dist/www/includes/menu.inc:458 0.0408 2365704 8. _menu_load_objects() /Users/david/Sites/2011/dew/master/dist/www/includes/menu.inc:746 0.0409 2366432 9. relation_type_load() /Users/david/Sites/2011/dew/master/dist/www/includes/menu.inc:579 0.0409 2366600 10. relation_get_types() /Users/david/Sites/2011/dew/master/dist/www/profiles/dewbase/modules/contrib/relation/relation.module:337

I am running the following modules from a drush makefile updated to pull the newest of everything including D7.9

  • Drupal 7.9
  • ctools 1.0-rc1
  • entity 1.0-beta1
  • relation 1.x-dev

I noticed it's trying to call ctools_include('export'), relation depends on ctools, but ctools export is a separate module that is not labeled as a dependency to Relation. I tried to enable it and drush cc all / drush rr to no avail.

Comments

tenken’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

oops sorry i'm running -dev.

mrsinguyen’s picture

I also got this error with dev version when create the new relation type (http://127.0.0.1/dev/drupal79/admin/structure/relation/add)

Fatal error: Call to undefined function ctools_export_crud_load_multiple() in /home/tiensi/www/dev/drupal79/sites/all/modules/relation/relation.module on line 354 Call Stack: 0.0005 343228 1. {main}() /home/tiensi/www/dev/drupal79/index.php:0 0.2594 18596728 2. menu_execute_active_handler() /home/tiensi/www/dev/drupal79/index.php:21 0.2608 18718228 3. call_user_func_array() /home/tiensi/www/dev/drupal79/includes/menu.inc:503 0.2608 18718480 4. drupal_get_form() /home/tiensi/www/dev/drupal79/includes/menu.inc:503 0.2608 18719108 5. drupal_build_form() /home/tiensi/www/dev/drupal79/includes/form.inc:123 0.2646 18931264 6. drupal_process_form() /home/tiensi/www/dev/drupal79/includes/form.inc:364 0.2723 19006752 7. drupal_validate_form() /home/tiensi/www/dev/drupal79/includes/form.inc:833 0.2724 19007496 8. _form_validate() /home/tiensi/www/dev/drupal79/includes/form.inc:1106 0.2725 19008844 9. _form_validate() /home/tiensi/www/dev/drupal79/includes/form.inc:1263 0.2727 19009664 10. _form_validate() /home/tiensi/www/dev/drupal79/includes/form.inc:1263 0.2728 19012452 11. form_validate_machine_name() /home/tiensi/www/dev/drupal79/includes/form.inc:1377 0.2729 19016492 12. relation_type_load() /home/tiensi/www/dev/drupal79/includes/form.inc:3423 0.2729 19016716 13. relation_get_types() /home/tiensi/www/dev/drupal79/sites/all/modules/relation/relation.module:337
mrsinguyen’s picture

Priority: Major » Critical

I think this issue is critical priority

chx’s picture

I think this is available in ctools -dev but I will do somethng about it.

mrsinguyen’s picture

Yes, This error gone when i use the ctools-dev.

chx’s picture

Priority: Critical » Minor
KingSalibah’s picture

Same here. Solved by dev version.

chx’s picture

Status: Active » Closed (won't fix)

Yeah. There's nothing to do here.

patcon’s picture

In case others want to use this without using ctools-dev, here's the relevant patch against ctools-rc1 that will work with drush_make
http://drupal.org/node/1265560#comment-5287064

patcon’s picture

Thanks patcon!

patcon’s picture

No problem, citizen!

marafee1243’s picture

Component: Code » Relation_add
Priority: Minor » Critical
Status: Closed (won't fix) » Active
Issue tags: +error, +bug, +relation

There a critical problem in relation module. the error displayed below

Fatal error: Call to undefined function ctools_export_crud_load_multiple() in R:\xampp\htdocs\pmt\sites\all\modules\relation\relation.module on line 397

When i adding a relation type and i am using D7.9 with all latest modules on Drupal.org

chx’s picture

Status: Active » Closed (works as designed)
Issue tags: -error, -bug, -relation

Locking this issue.