Problem/Motivation

When upgrading drupal/symfony_mailer (1.6.2 => 2.0.0) and executing drush updb afterwards i got the following error:

---------------- ----------- --------------- ----------------------------------------------------------- 
  Module           Update ID   Type            Description                                                
 ---------------- ----------- --------------- ----------------------------------------------------------- 
  symfony_mailer   20001       hook_update_n   20001 - Enable new dependency mailer_policy.               
  symfony_mailer   20002       hook_update_n   20002 - Split configuration into the correct sub-modules.  
  symfony_mailer   20003       hook_update_n   20003 - Adjustments to policy IDs.                         
  symfony_mailer   20004       hook_update_n   20004 - Adjustments to variable names.                     
  symfony_mailer   20005       hook_update_n   20005 - Combine "All" policy with single option.           
 ---------------- ----------- --------------- ----------------------------------------------------------- 


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > 

>  [notice] Update started: symfony_mailer_update_20001
>  [notice] Update completed: symfony_mailer_update_20001
>  [notice] Update started: symfony_mailer_update_20002
>  [error]  array_filter(): Argument #1 ($array) must be of type array, null given 
>  [error]  Update failed: symfony_mailer_update_20002 
 [error]  Update aborted by: symfony_mailer_update_20002 
 [error]  Finished performing updates. 
Failed to run drush updb: exit status 1

Steps to reproduce

Update from 1.6.2 => 2.0.0

Proposed resolution

Check if $overwrites array is filled in symfony_mailer_update_20002

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

makkus183 created an issue. See original summary.

marcoliver’s picture

Status: Active » Reviewed & tested by the community

Just stumbled over that myself. Can confirm, that the patch makes updating possible again.

adamps’s picture

Status: Reviewed & tested by the community » Fixed

Thanks

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • adamps committed 92ec16d9 on 2.x authored by makkus183
    fix: #3588265 symfony_mailer_update_20002 fails
    
    By: makkus183
    By:...

Status: Fixed » Closed (fixed)

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