Hello,

after clicking on "create" at /admin/structure/feeds/create I get the following error:

EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7933 of /var/www/htdocs/includes/common.inc).

The importer is created though.

The same exception is thrown when wanting to edit the importer.

Comments

sicher created an issue. See original summary.

megachriz’s picture

Status: Active » Postponed (maintainer needs more info)

Can you provide an export of your importer? My suspicion is that you previously attached the importer to a content type that you later deleted.

sicher’s picture

I just installed feeds and wanted to add an importer. I wasn't able to attach it.

Here's the importer that was created:

$feeds_importer = new stdClass();
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'hotel_recommendations';
$feeds_importer->config = array(
  'name' => 'Hotel recommendations',
  'description' => '',
  'fetcher' => array(
    'plugin_key' => 'FeedsHTTPFetcher',
    'config' => array(
      'auto_detect_feeds' => FALSE,
      'use_pubsubhubbub' => FALSE,
      'designated_hub' => '',
      'request_timeout' => NULL,
      'auto_scheme' => 'http',
      'accept_invalid_cert' => FALSE,
      'cache_http_result' => TRUE,
    ),
  ),
  'parser' => array(
    'plugin_key' => 'FeedsSyndicationParser',
    'config' => array(),
  ),
  'processor' => array(
    'plugin_key' => 'FeedsNodeProcessor',
    'config' => array(
      'expire' => -1,
      'author' => 0,
      'authorize' => TRUE,
      'mappings' => array(),
      'insert_new' => 1,
      'update_existing' => 0,
      'update_non_existent' => 'skip',
      'input_format' => NULL,
      'skip_hash_check' => FALSE,
      'bundle' => NULL,
      'language' => 'und',
    ),
  ),
  'content_type' => '',
  'update' => 0,
  'import_period' => 1800,
  'expire_period' => 3600,
  'import_on_create' => TRUE,
  'process_in_background' => FALSE,
);
megachriz’s picture

I see you haven't selected a content type on the processor settings page yet. Do you perhaps have the module i18n_node enabled? If that module is enabled, Feeds asks that module for the available languages. It needs to create a pseudo node object for that, so maybe something goes wrong there.

sicher’s picture

Yes, i18n_node is enabled.

megachriz’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new626 bytes

Does the attached patch fixes the issue? The patch requires a content type to be set on the processor before the i18n_node is asked for available languages.

sicher’s picture

Yes, it works!

No more error on adding or editing an feeds importer.

Thanks a lot!

  • MegaChriz committed 2ae6421 on 7.x-2.x
    Issue #2980096 by MegaChriz, sicher: Fixed EntityMalformedException that...
megachriz’s picture

Status: Needs review » Fixed

Thanks for reporting back! Committed #7.

Status: Fixed » Closed (fixed)

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