I tried to update path_breadcrumbs on client site and got this error on update.php:

Update #7213
Failed: PDOException: SQLSTATE[HY000]: General error: 1364 Field 'machine_name' doesn't have a default value: INSERT INTO {path_breadcrumbs} (data, disabled) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => Array [:db_insert_placeholder_1] => 0 ) в функции drupal_write_record() (строка 7013 в файле /usr/home/ib/new.ib.ru/htdocs/includes/common.inc).

Now I don't see any of my breadcrumbs on pages((

Comments

spleshka’s picture

Hm.. from which version did you updated? This error doesn't make sense to me. I have no idea how that could happen..

spleshka’s picture

Status: Active » Postponed (maintainer needs more info)

Any information about this bug?

kalabro’s picture

The problem appears when updating from earlier versions (7.x-2.0-beta12 and earlier) to current stable. We have changed path_breadcrumbs_load and path_breadcrumbs_save functions for working with new storage mechanism, so they are incompatible with data in path_breadcrumbs_update_7213(). That was our omission while testing #1649074: Error while reverting from features :(

I suggest to use low db functions to solve the problem in path_breadcrumbs_update_7213().
Another important note is that path_breadcrumbs_load is used only in path_breadcrumbs_update_7213(). So, I think, it can be deprecated after fixing this bug.

kalabro’s picture

Status: Postponed (maintainer needs more info) » Needs review
spleshka’s picture

Status: Needs review » Closed (fixed)

Oh, thanks, I really missed this. Commited at 377f240