Closed (fixed)
Project:
CCK Gallery
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
24 Jan 2009 at 07:39 UTC
Updated:
10 Feb 2009 at 18:10 UTC
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
Comment #1
greg.harveySounds 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
Comment #2
greg.harveyOh, 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...
Comment #3
greg.harveyMoved to specific task and assigned to me.
Comment #4
greg.harveyhook_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! =)
Comment #5
greg.harveyNote 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.