When upgrading from version 2.0 to 3.0.0, drush deploy throws the following error:

                                                                                                                
  Exit Code: 1(General error)                                                                                     
                                                                                                                  
  Working directory:       

Output:                                                                                                         
  ================                                                                                                
   --------------------------- ----------- --------------- ----------------------------------------------         
    Module                      Update ID   Type            Description                                           
   --------------------------- ----------- --------------- ----------------------------------------------         
    maintenance_mode_redirect   8201        hook_update_n   8201 - Update the configuration value names.          
   --------------------------- ----------- --------------- ----------------------------------------------         
                                                                                                                  
 Error Output:                                                                                                   
  ================                                                                                                
  >  [notice] Update started: maintenance_mode_redirect_update_8201                                               
  >  [warning] Array to string conversion maintenance_mode_redirect.install:16                                    
  >  [error]  https://www.site.com key contains a dot which is not supported.   
  >  [error]  Update failed: maintenance_mode_redirect_update_8201                                                
   [error]  Update aborted by: maintenance_mode_redirect_update_8201                                              
   [error]  Finished performing updates.                              

This error was experienced on Drupal 10.6.2, with MySQL 8.4.4 and Drush 13.

CommentFileSizeAuthor
#2 3568029-2-fix.patch468 bytesdwigums
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

dwigums created an issue. See original summary.

dwigums’s picture

StatusFileSize
new468 bytes

I believe this can be resolved by removing "$key, " from line 18 in maintenance_mode_redirect.install.

avpaderno’s picture

Version: 3.0.0 » 3.x-dev
avpaderno’s picture

Assigned: Unassigned » avpaderno

avpaderno’s picture

Status: Active » Needs review
avpaderno’s picture

The necessary change is a bit more complex, since the existing code was storing as key a configuration value (more precisely, the redirect URL).

I had problems with accessing git.drupalcode.org, so I could not create a merge request. I temporarily fixed that. I should create a new release, if those problems do not return.

avpaderno’s picture

Status: Needs review » Reviewed & tested by the community

  • avpaderno committed 4672652d on 3.x
    Issue #3568029: Key contains a dot which is not supported
    
avpaderno’s picture

Assigned: avpaderno » Unassigned
Status: Reviewed & tested by the community » Fixed

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.

Status: Fixed » Closed (fixed)

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