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] == '"') {
Comments
Comment #2
matt_zimo commentedComment #3
matt_zimo commentedfixed typo in title
Comment #4
dcam commentedThere is no
GroupByStringclass 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/filterdirectory: https://git.drupalcode.org/project/drupal/-/tree/11.x/core/modules/views....Comment #5
matt_zimo commentedWow, 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.
Comment #6
matt_zimo commentedLooking 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!
Comment #7
dcam commentedNo problem. I'm glad that you were able to figure it out.