I tried to export and import a content type from my local development installation of a website to a remote installation. This produced the following cryptic error message:

An error has occurred adding the content type %type. Please check the errors displayed for more details.

I located the error to line 438 of content_copy.module:

    if (form_get_errors() || !isset($content_info['content types']) || !is_array($content_info['content types'][$type_name])) {
       drupal_set_message(t('An error has occurred adding the content type %type.<br/>Please check the errors displayed for more details.', array(
            '%type' => $imported_type_name
            )));
       return;
    }

When I created the content type manually and then imported the fields to the existing content type all went well. I have no idea why. The error message says to check "the errors displayed for more details" but I see no other error messages and nothing is written to the log.

Comments

millionleaves’s picture

I'm getting this issue as well. As in #1, creating the content type manually then importing the field (only one in my case) seems to work fine.

Drupal 6.14
CCK 2.7
Filefield 3.5

Note that the only custom field is a Filefield field.

ergophobe’s picture

This might give you some ideas: http://drupal.org/node/317940