This is due to a bug with CTools. There's an issue somewhere in the CTools queue I need to find. Here's the error:

Call to undefined function ctools_export_crud_load() in /var/aegir/platforms/dev_mailflow7_83/sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.class.php on line 1372

You just have to add the following line to fix it:

ctools_include('export');

It may then appear another place in ctools_export_ui.class.php IIRC.

Comments

danepowell’s picture

#1142812: CTools Export UI + #AJAX: Call to undefined function ctools_export_get_schema()

Slightly different error, but the solutions are the same I think.

danepowell’s picture

Here's the new issue: #1365524: Fatal error when using export_ui with AJAX

But I think the temporary workaround will be to implement

<?php
/**
 * Implements hook_init().
 */
function mailhandler_init() {
  if (strstr(request_uri(), 'system/ajax') && $_POST['form_id'] == 'ctools_export_ui_edit_item_form') {
    ctools_include('export');
  }
}
?>
danepowell’s picture

Priority: Major » Normal
Status: Active » Postponed
mharkin’s picture

Component: Code » Mailhandler

Hi,

I have just installed the latest Mailhandler module 7.x-2.4 on my Drupal Website v7.4). I am using MySql 5.0.77-log and PHP 5.2.17 with IMAP enabled.

When I try to add a new Mailhandler Mailbox as soon as I enter the Port Number or Username the round circle appears (I presume to check the settings) and I get following pop up box:

AJAX HTTP error occurred, Error 500 "Path: /system/ajax" "StatusText: Internal Server Error" ResultText:

I have tried searching for a solution but to no avail. Hope you can help.

Mick

danepowell’s picture

@mharkin - that may or may not be the same error. You'll need to check your PHP error log to find the root cause of the 500 error.

daften’s picture

The error I get:
PHP Fatal error: ctools_export_ui_edit_item_form_validate(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "mailhandler_mailbox_ui" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /var/www/developer2.webinos.org/sites/all/modules/contrib/ctools/plugins/export_ui/ctools_export_ui.class.php on line 1379, referer: http://ec2-54-246-97-90.eu-west-1.compute.amazonaws.com/admin/structure/...

danepowell’s picture

@daften please open a new issue for that, it doesn't look like the same error.

danepowell’s picture

Status: Postponed » Closed (won't fix)

Whatever... clearly the root issue isn't going to get addressed by Ctools.