Problem/Motivation

When trying to run drush updb after installing Drupal 11.3.1, I got a warning that the drush command terminated abnormally.

 -------------------- ------------------- --------------- --------------------- 
  Module               Update ID           Type            Description          
 -------------------- ------------------- --------------- --------------------- 
  system               11202               hook_update_n   11202 - Add an  [exit_code] column to the {simpletest} table, if existing.  
  system               11300               hook_update_n   11300 - Equivalent update to 10600.     
  views                11201               hook_update_n   11201 - Removes the ui.show.advanced_column setting.        
  block_content        remove_block_content_listing_empty           post-update                     Remove block_content_listing_empty from views.        status and info      
                   
  block_content        remove_block_cont   post-update     Remove deprecated    
                       ent_status_info_k                   status and info      
                       eys                                 keys from            
                                                           block_content        
                                                           blocks.              
  ckeditor5            list_type           post-update     No-op update that    
                                                           didn't update quite  
                                                           enough the first     
                                                           time.                
  ckeditor5            list_type_again     post-update     Updates Text         
                                                           Editors using        
                                                           CKEditor 5 to        
                                                           native List "type"   
                                                           functionality.       
  content_moderation   add_index_content   post-update     Add                  
                       _moderation_state                   moderation_state     
                       _field_revision_m                   index to             
                       oderation_state                     content_moderation_  
                                                           state tables.        
  node                 add_rebuild_permi   post-update     Grants a new         
                       ssion_to_roles                      permission for       
                                                           rebuilding node      
                                                           access permissions.  
  node                 create_promote_ba   post-update     Creates base field   
                       se_field_override                   override config for  
                       s                                   the promote base     
                                                           field on node        
                                                           types.               
  system               delete_rss_config   post-update     Delete obsolete      
                                                           system.rss           
                                                           configuration.       
  update               fix_update_emails   post-update     Remove empty email   
                                                           addresses from       
                                                           update.settings      
                                                           configuration.       
  views                add_date_default_   post-update     Clear cache to add   
                       arguments                           new date default     
                                                           arguments.           
  views                format_plural       post-update     Updates the format   
                                                           plural option for    
                                                           those views using    
                                                           aggregation. 

Steps to reproduce

Proposed resolution

Update line 50 in /docroot/core/modules/views/src/Plugin/views/filter/GroupByString.php

if ($match[2]{0} == '"') {

would be changed to:

if ($match[2][0] == '"') {

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

matt_zimo created an issue. See original summary.

matt_zimo’s picture

Title: rray and string offset access syntax with curly braces is no longer supported in /docroot/core/modules/views/src/Plugin/views/filter/GroupByString.php on line 50 » Array and string offset access syntax with curly braces is no longer supported in /docroot/core/modules/views/src/Plugin/views/filter/GroupByString.php on line 50
matt_zimo’s picture

fixed typo in title

dcam’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -Fatal error: Array and string offset access syntax with curly braces is no longer supported /docroot/core/modules/views/src/Plugin/views/filter/GroupByString.php

There is no GroupByString class in Drupal Core. I triple-checked. Was this class patched or hacked into your site?

Here's the current contents of the core/modules/views/src/Plugin/views/filter directory: https://git.drupalcode.org/project/drupal/-/tree/11.x/core/modules/views....

matt_zimo’s picture

Wow, I have no idea. I thought updating core would automatically rewrite everything in docroot/core. I will bring this up with our contractor developers to see what's going on.

matt_zimo’s picture

Looking at the git log for this file, I see it was added by a contractor in 2021 to handle greater than/less than filters. Sorry for the confusion!

dcam’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

No problem. I'm glad that you were able to figure it out.

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.