I'm getting the following error when viewing the node for a custom content type which includes a date field. This is happening on all of my custom content types which have 1 or more date fields. If there is more than one date field, I get the same error printed out for each instance of the date field - 5 date fields = 5 copies of this error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_date_display_combination' was given in /home/tom/public_html/drupal-6.x/public/includes/theme.inc on line 597.
I'm using the very latest code from cvs.
php 5
core 6.3
I thought that perhaps my existing date fields got corrupt, so as a test, created a new content type, with just one date field, but I still get the error. An export of this newly created content type is below:
$content[type] = array ( 'name' => 'Test', 'type' => 'test', 'description' => 'test for date problem', 'title_label' => 'Title', 'body_label' => 'Body', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => true, 'sticky' => false, 'revision' => false, ), 'upload' => '1', 'nodewords' => 1, 'old_type' => 'test', 'orig_type' => '', 'module' => 'node', 'custom' => '1', 'modified' => '1', 'locked' => '0', 'image_attach' => '0', 'image_attach_size_teaser' => 'thumbnail', 'image_attach_weight_teaser' => '0', 'image_attach_size_body' => 'thumbnail', 'image_attach_weight_body' => '0', 'print_display' => 1, 'print_display_comment' => 0, 'print_pdf_display' => 1, 'print_pdf_display_comment' => 0, 'xmlsitemap_node_type_priority' => '0.5', 'xmlsitemap_old_priority' => '0.5', ); $content[fields] = array ( 0 => array ( 'label' => 'Testdate', 'field_name' => 'field_testdate', 'type' => 'date', 'widget_type' => 'date_popup', 'change' => 'Change basic information', 'weight' => '', 'default_value' => 'blank', 'default_value_code' => '', 'default_value2' => 'same', 'default_value_code2' => '', 'input_format' => 'd/m/Y H:i:s', 'input_format_custom' => '', 'year_range' => '-3:+3', 'increment' => '1', 'advanced' => array ( 'label_position' => 'above', 'text_parts' => array ( 'year' => 0, 'month' => 0, 'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, ), ), 'label_position' => 'above', 'text_parts' => array ( ), 'description' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'repeat' => 0, 'todate' => '', 'granularity' => array ( 'year' => 'year', 'month' => 'month', 'day' => 'day', 'hour' => 'hour', 'minute' => 'minute', ), 'output_format_date' => 'd/m/Y - H:i', 'output_format_custom' => '', 'output_format_date_long' => 'l, F j, Y - H:i', 'output_format_custom_long' => '', 'output_format_date_medium' => 'D, d/m/Y - H:i', 'output_format_custom_medium' => '', 'output_format_date_short' => 'd/m/Y - H:i', 'output_format_custom_short' => '', 'tz_handling' => 'none', 'timezone_db' => 'UTC', 'module' => 'date', 'widget_module' => 'date', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, ), 'value2' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', ), 'full' => array ( 'format' => 'default', ), 4 => array ( 'format' => 'default', ), 2 => array ( 'format' => 'default', ), 3 => array ( 'format' => 'default', ), ), ), );
Comments
Comment #1
mrfelton commentedseems it was somehow a problem with the nodewords module. I'm confused!
Comment #2
thepanz commentedi've got the same issue (and Nodewords module active). How did you fix that issue?
Comment #3
mrfelton commenteddisable nodewords!
Comment #4
thepanz commentedHum, I hoped you had another solution :)
I uninstalled Date module because made my Drupal install really heavy (with accessing /admin/build/modules giving me a out-of memory).
Maybe this issue needs to be investigated further..
Regards
Comment #5
Patrick Nelson commentedI'm getting the same error - I'm using Drupal 6.8 and the latest dev version of the date module (2009-Jan-07).
Regards
Patrick
Comment #6
yumminy commentedSame error.
Drupal 6.8
PHP 5
Date 6.x-2.0-rc6
Nodewords 6.x-1.0-rc1
I had to disable Nodewords, but I really need it, so any help in this matter would be greatly appreciated!
Comment #7
vint commentedSame error, but no nodewords installed. I do have the "meta tags" module installed. Disabling the "meta tags module" makes this error message disappear.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_date_display_combination' was given in /home/heritage/public_html/includes/theme.inc on line 597.Comment #8
thepanz commented@vint: nodewords and "meta tags" is the same module ;)
Comment #9
philpro commentedSame issue, nodewords (meta-tags) module and date module not playing nice together. Has anyone found a work around for this yet?
Comment #10
szy commented@philpro:
-> http://drupal.org/project/int_meta
Szy.
Comment #11
karens commentedRenaming for clarity. I have no idea what that module does so I don't have any ideas. I don't have time to do anything with it, but I'll leave this posted in case someone wants to try to track it down.
Comment #12
jahmes8 commentedI'm using D6.9 I'm getting the following error when (nodewords) Meta tags 6.x-1.0-rc1 and date 6.x-2.0-rc6 are both enabled:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_date_display_combination' was given in /home/lighthouse/www/www/includes/theme.inc on line 617.
Error occurs only on the CCK "event" node type which is the only view with date field added.
It only happens when I am logged in as admin. Anon and authenticated users have no error.
It goes away if either module is disabled.
Comment #13
jahmes8 commentedWell, after updating to the latest versions of Meta Tags 6.x-1.0 (as well as Views 6.x-2.3) the problem seems to have been resolved.
Many thanks!
Comment #14
karens commentedFixed then, thanks!
Comment #15
visionmark commentedIm still having the problem. I get the same error as all of you, and I'm using the latest version of nodewords (6.x-1.0) and CCK Datefield is 6.x-2.0-rc6 ... let's not give up yet!! I'd really like to be able to use nodewords.
Comment #16
arlinsandbulte commented@visionmark:
Any update? Have newer module versions fixed your problem?
Comment #17
avpadernovisionmark has not replied to the question. I would guess the problem can be considered fixed.