Hallo,
on an empty d7 installation I exported four terms from one vocab into a new feature.
After that I deleted one term and tried to restore it by reverting feature.
By reverting I got different notices and warnings:

    Notice: Undefined variable: term in uuid_term_features_rebuild() (Zeile 139 von /home/www/d7/local/sites/all/modules/contrib/uuid_features/includes/uuid_term.features.inc).
    Notice: Trying to get property of non-object in taxonomy_term_save() (Zeile 567 von /home/www/d7/local/modules/taxonomy/taxonomy.module).
    Notice: Undefined property: stdClass::$vid in taxonomy_term_save() (Zeile 569 von /home/www/d7/local/modules/taxonomy/taxonomy.module).
    Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (Zeile 178 von /home/www/d7/local/includes/entity.inc).
    Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (Zeile 354 von /home/www/d7/local/includes/entity.inc).
    Notice: Trying to get property of non-object in taxonomy_term_save() (Zeile 570 von /home/www/d7/local/modules/taxonomy/taxonomy.module).
    Notice: Undefined index: field_name in _field_invoke() (Zeile 188 von /home/www/d7/local/modules/field/field.attach.inc).
    Notice: Undefined index: field_name in _field_invoke() (Zeile 188 von /home/www/d7/local/modules/field/field.attach.inc).

Feature state is "Rebuilding", but there is nothing to do for me to rebuild feature...

I tried 7.x-1.x-dev, but it was the same result.
Has anyone an idea?

Many thanks in advance,
Ralf

CommentFileSizeAuthor
cannot-rebuild-uuid-features.png113.44 KBR.Hendel

Comments

ianwremmel’s picture

Category: support » bug

I saw this error when trying to move a set of terms from a staging site to a production site. The error occurs because $term on line 139 of uuid_term.features.inc is most definitely undefined so I changed this issue from a support request to a bug report.

I tried changing line 139 of uuid_term.features.inc from

$ret = taxonomy_term_save($term /* TODO Term object replaces array $data */);

to

$ret = taxonomy_term_save((object)$data /* TODO Term object replaces array $data */);

but that apparently wasn't an adequate solution as it led to a PDO error.

Once encountered, this error prevents access to admin/modules and admin/structure/features until the feature is disabled by directly editing the system table.