First argument is expected to be a valid callback
ab_connor - June 20, 2009 - 20:59
| Project: | Node Export |
| Version: | 6.x-2.11 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | ab_connor |
| Status: | closed |
Jump to:
Description
Here is the error message in full length:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in /var/www/ejuv/includes/form.inc on line 366.
I got this error every time I try to import any kind of node (by copying and inserting the code, shown in the export-tab of the node). The result is an empty node without any type, written by "guest" (although I was logged in).
Any ideas?

#1
Usually this means the content type from the first site is missing on the second site. You may need to manually change the node code, or ensure the 2nd site is not missing any modules or content types that would be required to make that node work.
If you think there is something else going on, do you mind pasting your node code in
<code></code>tags?#2
I did the operation on the same site, so no module or content type should be missed. I also tried a different site with the same configuration. It's the same.
I didn't find any documentation for this. Is this necessary? I tried it out and the result was a blank screen.
#3
no I meant post it here so I can see it :P
#4
Sorry ;-)
Here is the Code:
array('nid' => '26',
'type' => 'story',
'language' => 'de',
'uid' => '1',
'status' => '1',
'created' => '1245511082',
'changed' => '1245511082',
'comment' => '2',
'promote' => '1',
'moderate' => '0',
'sticky' => '0',
'tnid' => '0',
'translate' => '0',
'vid' => '26',
'revision_uid' => '1',
'title' => 'Testartikel',
'body' => 'Hallo, dies ist ein Test vom Inhaltstyp \"Artikel\".',
'teaser' => 'Hallo, dies ist ein Test vom Inhaltstyp \"Artikel\".',
'log' => '',
'revision_timestamp' => '1245511082',
'format' => '1',
'name' => 'Andreas Bergmann',
'picture' => 'sites/default/files/pictures/picture-1.jpg',
'data' => 'a:4:{s:13:\"form_build_id\";s:37:\"form-eee4876ea0138719a253a994432a1e69\";s:14:\"picture_delete\";s:0:\"\";s:14:\"picture_upload\";s:0:\"\";s:7:\"contact\";i:0;}',
'last_comment_timestamp' => '1245511082',
'last_comment_name' => NULL,
'comment_count' => '0',
'taxonomy' => array(),
'files' => array(),
'#_export_node_encode_object' => '1',
)
#5
OK sorry about this, this is bug introduced in the latest version. I've made a new release to avoid further problems.
#6
Good work! Thank you for the fast support.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.