It has the line:
$term->vid = $vid;
but $vid is undefined.

Changed it to:

    $vocabulary = taxonomy_vocabulary_machine_name_load($machine_name);
    $term->vid = $vocabulary->vid;

and it works ok.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NerOcrO’s picture

Like this?

NerOcrO’s picture

Excuse me, wrong branch...
This patch is better!

NerOcrO’s picture

Once again, a minor correction.

NerOcrO’s picture

Status: Active » Needs review

The last submitted patch, 1: scald_dailymotion_taxonomy_get_create.patch, failed testing.

DeFr’s picture

Status: Needs review » Fixed

Pushed the latest patch in commit b59d509. Thanks all !

Status: Fixed » Closed (fixed)

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