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?

Comments

danielb’s picture

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?

ab_connor’s picture

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.

If you think there is something else going on, do you mind pasting your node code in tags?

I didn't find any documentation for this. Is this necessary? I tried it out and the result was a blank screen.

danielb’s picture

no I meant post it here so I can see it :P

ab_connor’s picture

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',
)
danielb’s picture

Status: Active » Fixed

OK sorry about this, this is bug introduced in the latest version. I've made a new release to avoid further problems.

ab_connor’s picture

Good work! Thank you for the fast support.

Status: Fixed » Closed (fixed)

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