The content_copy module depends on content_types.inc and content_admin.inc but does not explicitly include them. Instead, it assumes that they are being loaded by their respected modules; however, their loading is conditional on being in an "admin" context (arg(0) == 'admin'). It is not always true that the functionality of content_copy will be requested in such a context - for example, when requesting an export form programmatically.

The attached patch fixes this problem.

Thank you!

CommentFileSizeAuthor
cck.patch480 bytesstashlbai
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Component: CCK in core » General
Status: Needs review » Fixed

True, this has been reported numerous times, let's fix this at last.

However, including files at the top-level in not recommended, for it makes the said files to be loaded for each page. Committed code only includes the files in the forms definition functions.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.