Active
Project:
Content Construction Kit (CCK)
Version:
6.x-2.8
Component:
content_copy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2010 at 10:22 UTC
Updated:
1 Oct 2010 at 01:25 UTC
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
Comment #1
millionleaves commentedI'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.
Comment #2
ergophobe commentedThis might give you some ideas: http://drupal.org/node/317940