I think this is very similar to #1142812: CTools Export UI + #AJAX: Call to undefined function ctools_export_get_schema()

If you use AJAX on an Export UI form, you get the following error:

PHP Fatal error:  Call to undefined function ctools_export_crud_load() in plugins/export_ui/ctools_export_ui.class.php on line 1372

The attached patch fixes it.

CommentFileSizeAuthor
ctools-export_ui-error.patch711 bytesDane Powell
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

This should already be fixed in -dev.

Dane Powell’s picture

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

Nope... I get the same error on the same line number.

The other issue was fixed in dev, but it looks like not all instances of the bug were fixed.

Dane Powell’s picture

FYI I've implemented a workaround in #1364184: AJAX error when adding a mailbox, but this is definitely a bug with ctools. Thanks for the help so far.

kscheirer’s picture

Issue summary: View changes
Status: Active » Needs review

Um, this seems like a really easy fix. This function is still the same in 7.x-1.x-dev. Setting to needs review since there's a patch here.

Chris Matthews’s picture

The 7 year old patch to ctools_export_ui.class.php applies cleanly to the latest ctools 7.x-1.x-dev and if applicable still needs to be reviewed and tested by the community.

Checking patch plugins/export_ui/ctools_export_ui.class.php...
Hunk #1 succeeded at 1437 (offset 69 lines).
Applied patch plugins/export_ui/ctools_export_ui.class.php cleanly.