Reverting a config via Features doesn't work reliably

Created on 11 January 2018, almost 7 years ago
Updated 21 August 2023, over 1 year ago

Scenario:

  • I had a mapping exported via Features.
  • I updated the feature by removing the existing feature and adding another one.
  • When the changes were deployed to the production site it threw this error:
    Do you really want to revert my_feature.exif_custom? (y/n): y
    exception 'PDOException' with message 'SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for[error] column 'mid' at row 1' in /includes/database/database.inc:2227
    Stack trace:
    #0 database.inc(2227): PDOStatement->execute(Array)
    #1 database.inc(697): DatabaseStatementBase->execute(Array, Array)
    #2 mysql/query.inc(36): DatabaseConnection->query('INSERT INTO {ex...', Array, Array)
    #3 exif_custom.features.inc(155): InsertQuery_mysql->execute()
    #4 exif_custom.features.inc(88): exif_custom_import_map(Array)
    #5 exif_custom.features.inc(68): exif_custom_features_rebuild('my_feature')
    #6 [internal function]: exif_custom_features_revert('my_feature', 'exif_custom')
    #7 features.module(597): call_user_func_array('exif_custom_fea...', Array)
    #8 features.module(1003): features_invoke('exif_custom', 'features_revert', 'my_feature')
    #9 features.module(1024): _features_restore('revert', Array)
    #10 features.drush.inc(804): features_revert(Array)
    #11 [internal function]: drush_features_revert('my_feature')
    #12 drush/includes/command.inc(368): call_user_func_array('drush_features_...', Array)
    #13 drush/includes/command.inc(219): _drush_invoke_hooks(Array, Array)
    #14 [internal function]: drush_command('my_feature')
    #15 drush/includes/command.inc(187): call_user_func_array('drush_command', Array)
    #16 drush/lib/Drush/Boot/BaseBoot.php(62): drush_dispatch(Array)
    #17 drush/drush.php(70): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
    #18 drush/drush.php(11): drush_main()
    #19 {main}
    
πŸ› Bug report
Status

RTBC

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024