After enabling this module I am getting this warning:

# warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'content_copy_import_form' was given in /var/www/vhosts/babecast.org/httpdocs/cms/includes/form.inc on line 366.
# warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'content_copy_import_form' was given in /var/www/vhosts/babecast.org/httpdocs/cms/includes/form.inc on line 366.

Comments

greg.harvey’s picture

Sounds like you did not have Content Copy enabled. Perhaps it needs to be enabled prior to installation, even though it is a dependency? This message means your content types were not installed correctly. Try uninstalling, installing the modules required as listed in the README and installing again, and let me know how you get on.

Edit: more a note for my reference, but may need to do something with hook_requirements to prevent this sort of problem occurring: http://api.drupal.org/api/function/hook_requirements/6

greg.harvey’s picture

Status: Active » Postponed (maintainer needs more info)

Oh, important note - remove the ImageCache presets the installer made last time, as they won't be removed for you. It doesn't really matter, but you'll end up with two the same with the current setup. I intend to make the installer smarter going forward...

greg.harvey’s picture

Title: warning: includes/form.inc on line 366 » Investigate use of hook_requirements to prevent content type installation problems caused by Content Copy not being installed
Assigned: Unassigned » greg.harvey
Category: bug » task
Status: Postponed (maintainer needs more info) » Active

Moved to specific task and assigned to me.

greg.harvey’s picture

Status: Active » Fixed

hook_requirements added to code - not sure if this will help, as couldn't replicate the issue locally, but I figure it certainly can't *hurt*!

Marking as fixed. Please do not re-open - start a new issue if you have installation problems. Thanks! =)

greg.harvey’s picture

Note on this - I used the wrong value for $phase in hook_requirements (accidentally left it as 'runtime' after copying an example from another module when it should be 'install'). This *does* work, but not in the current snapshot. Next dev release will fix this so it should be impossible to accidentally not install the requirements ahead of CCK Gallery.

Status: Fixed » Closed (fixed)

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