"Fatal error: Cannot use object of type stdClass as array during import" error of very simple Drupal var export code.

Freshly installed Drupal 7.32 clean with no extra modules etc, Node Export module is 7x-3.0
Drupal var export code generated in Drupal 5, using version 5.25.

Here is export code:

array(
  'nid' => NULL,
  'vid' => NULL,
  'type' => 'story',
  'status' => '1',
  'created' => NULL,
  'changed' => '1414473903',
  'comment' => '2',
  'promote' => '1',
  'sticky' => '0',
  'revision_timestamp' => '1414473903',
  'title' => 'test',
  'body' => 'test',
  'teaser' => 'test',
  'log' => '',
  'format' => '1',
  'uid' => '1',
  'name' => 'admin',
  'picture' => '',
  'data' => 'a:4:{s:18:\"admin_compact_mode\";b:1;s:14:\"contentlocales\";a:2:{s:2:\"en\";i:0;s:2:\"ru\";i:0;}s:16:\"switch_uicontent\";s:0:\"\";s:19:\"mass_contact_optout\";i:0;}',
  'last_comment_timestamp' => '1414473903',
  'last_comment_name' => NULL,
  'comment_count' => '0',
  'taxonomy' => array(),
  'menu' => NULL,
  'path' => NULL,
  'files' => array(),
  '#_export_node_encode_object' => '1',
)

Comments

danielb’s picture

Status: Active » Closed (outdated)

Sorry there is no D5 -> D7 support, yikes!