after upgrade to 8.5, navigate to any group url, such as group/6/stream,
the error shows up:
The website encountered an unexpected error. Please try again later.Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view.group_manage_members.page_group_manage_members" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 201 of core/lib/Drupal/Core/Routing/RouteProvider.php).
please help to solve it.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | view-import.PNG | 180.32 KB | Carlos Miranda Levy |
| #14 | export-view.PNG | 173.08 KB | Carlos Miranda Levy |
| #13 | open-social-create-event-error.log_.txt | 5.15 KB | grn |
Comments
Comment #2
grn commentedI get the same error:
Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: "Route "view.group_manage_members.page_group_manage_members" does not exist." at /var/www/example.com/open-social/html/core/lib/Drupal/Core/Routing/RouteProvider.php line 201, referer: https://example.com/
Comment #3
grn commentedThis is also confirmed on a open social vanilla installation.
Comment #4
jaapjan commentedOn which group type do you encounter this? (All of the default group types as well?)
It seems we also encountered this in some custom group types. We'll dive into it.
Comment #5
jjwfcd commentedI exported the non-existed view from a working new installation and imported it to the elder instance, it works fine now.
just for your reference:
uuid: a1189f95-6964-434b-afa3-b718e4c0ed3d
langcode: zh-hans
status: true
dependencies:
config:
- core.entity_view_mode.profile.table
- field.storage.group_content.group_roles
- field.storage.profile.field_profile_organization
- group.content_type.closed_group-group_membership
- group.content_type.open_group-group_membership
- group.content_type.public_group-group_membership
module:
- group
- profile
- user
- views_bulk_operations
_core:
default_config_hash: Dr8py6eiyQvMKfLGwfLj7dBL5XaLuhOawSebAOF8pZk
id: group_manage_members
label: 'Group Manage Members'
module: views
description: ''
tag: ''
base_table: group_content_field_data
base_field: id
core: 8.x
display:
default:
display_plugin: default
id: default
display_title: Master
position: 0
display_options:
access:
type: group_permission
options:
group_permission: 'administer members'
cache:
type: tag
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
pager:
type: full
options:
items_per_page: 10
offset: 0
id: 0
total_pages: null
tags:
previous: '‹ Previous'
next: 'Next ›'
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
style:
type: table
row:
type: fields
fields:
views_bulk_operations_bulk_form:
id: views_bulk_operations_bulk_form
table: views
field: views_bulk_operations_bulk_form
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
batch: true
batch_size: 10
form_step: true
buttons: true
clear_on_exposed: false
action_title: Action
selected_actions:
comment_delete_action: 0
social_group_members_export_member_action: 0
views_bulk_operations_delete_entity: 0
social_group_send_email_action: social_group_send_email_action
social_group_delete_group_content_action: social_group_delete_group_content_action
social_group_change_member_role_action: social_group_change_member_role_action
'entity:save_action:group_content': 0
preconfiguration:
social_group_send_email_action:
label_override: Email
social_group_delete_group_content_action:
label_override: Remove
social_group_change_member_role_action:
label_override: 'Change the role'
plugin_id: views_bulk_operations_bulk_form
rendered_entity:
id: rendered_entity
table: profile
field: rendered_entity
relationship: profile
group_type: group
admin_label: ''
label: Member
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
view_mode: table
entity_type: profile
plugin_id: rendered_entity
field_profile_organization:
id: field_profile_organization
table: profile__field_profile_organization
field: field_profile_organization
relationship: profile
group_type: group
admin_label: ''
label: Organization
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: false
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
group_roles:
id: group_roles
table: group_content__group_roles
field: group_roles
relationship: none
group_type: group
admin_label: ''
label: Role
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: Member
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
settings:
link: false
group_column: target_id
group_columns: { }
group_rows: true
delta_limit: 1
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
created:
id: created
table: group_content_field_data
field: created
relationship: none
group_type: group
admin_label: ''
label: 'Joined date'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: timestamp
settings:
date_format: social_long_date
custom_date_format: ''
timezone: ''
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: group_content
entity_field: created
plugin_id: field
operations:
id: operations
table: group_content
field: operations
relationship: none
group_type: group
admin_label: ''
label: Operation
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
destination: true
entity_type: group_content
plugin_id: entity_operations
filters:
type:
id: type
table: group_content_field_data
field: type
relationship: none
group_type: group
admin_label: ''
operator: in
value:
closed_group-group_membership: closed_group-group_membership
open_group-group_membership: open_group-group_membership
public_group-group_membership: public_group-group_membership
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: group_content
entity_field: type
plugin_id: bundle
sorts:
created:
id: created
table: group_content_field_data
field: created
relationship: none
group_type: group
admin_label: ''
order: ASC
exposed: false
expose:
label: ''
granularity: second
entity_type: group_content
entity_field: created
plugin_id: date
title: 'Group Manage Members'
header:
result:
id: result
table: views
field: result
relationship: none
group_type: group
admin_label: ''
empty: false
content: '@total members'
plugin_id: result
footer: { }
empty:
area:
id: area
table: views
field: area
relationship: none
group_type: group
admin_label: ''
empty: true
tokenize: false
content:
value: 'There are no members yet.'
format: basic_html
plugin_id: text
relationships:
gc__user:
id: gc__user
table: group_content_field_data
field: gc__user
relationship: none
group_type: group
admin_label: 'Group content User'
required: true
group_content_plugins:
group_membership: group_membership
entity_type: group_content
plugin_id: group_content_to_entity
profile:
id: profile
table: users_field_data
field: profile
relationship: gc__user
group_type: group
admin_label: Profile
required: true
entity_type: user
plugin_id: standard
arguments:
gid:
id: gid
table: group_content_field_data
field: gid
relationship: none
group_type: group
admin_label: ''
default_action: default
exception:
value: all
title_enable: false
title: All
title_enable: true
title: 'Members of {{ arguments.gid }}'
default_argument_type: group_id_from_url
default_argument_options: { }
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
entity_type: group_content
entity_field: gid
plugin_id: group_id
display_extenders: { }
cache_metadata:
max-age: 0
contexts:
- group_membership.roles.permissions
- 'languages:language_content'
- 'languages:language_interface'
- route
- url
- url.query_args
tags:
- 'config:core.entity_view_display.profile.profile.autocomplete_item'
- 'config:core.entity_view_display.profile.profile.compact'
- 'config:core.entity_view_display.profile.profile.compact_notification'
- 'config:core.entity_view_display.profile.profile.compact_teaser'
- 'config:core.entity_view_display.profile.profile.default'
- 'config:core.entity_view_display.profile.profile.hero'
- 'config:core.entity_view_display.profile.profile.search_index'
- 'config:core.entity_view_display.profile.profile.small'
- 'config:core.entity_view_display.profile.profile.small_teaser'
- 'config:core.entity_view_display.profile.profile.table'
- 'config:core.entity_view_display.profile.profile.teaser'
- 'config:field.storage.group_content.group_roles'
- 'config:field.storage.profile.field_profile_organization'
page_group_manage_members:
display_plugin: page
id: page_group_manage_members
display_title: Page
position: 1
display_options:
display_extenders: { }
path: group/%group/membership
cache_metadata:
max-age: 0
contexts:
- group_membership.roles.permissions
- 'languages:language_content'
- 'languages:language_interface'
- route
- url
- url.query_args
tags:
- 'config:core.entity_view_display.profile.profile.autocomplete_item'
- 'config:core.entity_view_display.profile.profile.compact'
- 'config:core.entity_view_display.profile.profile.compact_notification'
- 'config:core.entity_view_display.profile.profile.compact_teaser'
- 'config:core.entity_view_display.profile.profile.default'
- 'config:core.entity_view_display.profile.profile.hero'
- 'config:core.entity_view_display.profile.profile.search_index'
- 'config:core.entity_view_display.profile.profile.small'
- 'config:core.entity_view_display.profile.profile.small_teaser'
- 'config:core.entity_view_display.profile.profile.table'
- 'config:core.entity_view_display.profile.profile.teaser'
- 'config:field.storage.group_content.group_roles'
- 'config:field.storage.profile.field_profile_organization'
Comment #6
jjwfcd commentedmaybe during the upgrading procedure we lost this view "view.group_manage_members.page_group_manage_members"
Comment #7
grn commented@#4
On a vanilla installation 4.x upgraded to vanilla 5.0. It was the standard group types. All the group types, yes.
@#5
Did you copy the view from a 4.x installation or 5.0 installation to your old setup?
Thanks!
Comment #8
jjwfcd commentedI copied the view from a new installed 5.0, to the upgraded instance which was upgraded from 4.x to 5.0.
then the group pages works fine.
so I guess the upgrading procedure lost this view
Comment #9
grn commented@jjwfcd, thank you for the info. I might try it out when we are ready for 5.x.
Comment #10
grn commentedI can confirm that the workaround suggested by @jjwfcd works! Thanks again!
Comment #11
mohit_aghera commentedCreated a quick patch to enable views_bulk_operations module.
https://github.com/goalgorilla/open_social/pull/1338
Comment #12
grn commentedThank you for the info @mohit_aghera!
Comment #13
grn commentedI also encounter that I can not create events after upgrade to 5.1 even though I have added the view and can access group stream.
I don't know if this is related.
Here is the error from the web server error log: https://www.drupal.org/files/issues/2019-04-22/open-social-create-event-...
Comment #14
Carlos Miranda Levy commentedEnabling views_bulk_operations before running update does not fix the problem.
The view is indeed lost during migration from 4.x to 5.x
I can confirm this after several attempts upgrading by changing 4.0 to 5.0 in composer.json:
"goalgorilla/open_social": "^5.0"It is fixed however by creating a new site on Open Social 5.x, exporting the enabling views_bulk_operations and importing it in the old site.
Proper steps to fix it for those who completed the migration are:
At Open Social Installation Root
"goalgorilla/open_social": "^4.0"to"goalgorilla/open_social": "^5.0"composer updatecomposer updateagain, there is usually some additional stuff to be updated as a result of a first update.On New Clean Site
/admin/config/development/configuration/single/exportOn Old Site
views_bulk_operationsmodule andBartiktheme on your site./admin/config/development/configuration/single/import, choose View, paste the code from the view and click on[ Import ].And that's it, Social is Open for business again when it comes to groups :-)
Comment #15
grn commentedI can also confirm that enabling views_bulk_operations does not fix the problem.
@Carlos, yes, that is exactly what can be done to view group streams.
You don't have any issues with creating new events from within groups?
Thanks!
Comment #16
mohit_aghera commentedInteresting, I tried that scenario with fresh setup for both 8.4.x and 8.5.x
Maybe, I might have missed something while doing a fresh setup.
I had two different setups so I didn't need to run composer to update things.
Anyway, we should think about some upgrade path to prevent these kinds of issues like update hooks etc.
Comment #17
Carlos Miranda Levy commented@grn I also get the error when trying to create an event within a group, but that would be a separate issue, even if related to this one, and should be discussed as a separate issue. My impression is that it is linked to the field_group module in any case.
A separate issue should be created to address it. It too is a serious issue after upgrading.
Comment #18
grn commented@Carlos.
OK, I have created this bug report: https://www.drupal.org/project/social/issues/3050093
Thanks!
Comment #19
Carlos Miranda Levy commentedThe error happens to me even outside groups. I just created an issue for that:
https://www.drupal.org/project/social/issues/3050098
Comment #20
mohit_aghera commented@Carlos Miranda Levy
I have automated all the steps mentioned in #14 comment, except those related to composer.
Can you please check if this PR works for you https://github.com/goalgorilla/open_social/pull/1338
After applying patch, you just need to run `drush updb` command only.
Comment #21
igasi commentedI faced this same issue I updated from OpensSocial 3 to 5 version, I had only to import again the configuration file:
path/to/drupalroot/profiles/contrib/social/modules/social_features/social_group/config/install/views.view.group_manage_members.yml
You can do using crush or drupal console, also from UI configuration management selecting View as type.
This PR https://github.com/goalgorilla/open_social/pull/1338 should revolve the problem.
Comment #22
fcgreg commented#21 worked perfectly for me. Thanks to @igasi for the info and link.
Comment #23
Arnaud01 commentedHello,
For me #14 doesn't work, I get this error :
Thank you for your help ;)
Comment #24
igasi commented@Arnaud01 you need to import that configs as well
addtoany.settings.yml
block.block.addtoanybuttons.yml
block.block.privatemessageinbox.yml
block.block.privatemessagenotification.yml
I think should be under some module inside the OpenSocial profile.
Mostly the issue related to this, is related to missing config imported, and the reason is because mostly of that config are under config/install folder, as you already have installed with a previous version opensocial, that config might not applied correctly due to the module is not installing is updating, and should follow an approach like the PR on comments #20 and #21
Comment #25
Arnaud01 commentedI thought it was due to obsolete configuration, in the database config table, I deleted the concerned lines and it worked...
Comment #26
jaapjan commentedI think the same answer as we gave in another issue applies here:
https://www.drupal.org/project/social/issues/3050093#comment-13095662
Closing this issue for now.
Comment #27
grn commented@jaapjan, I agree.
It would be very helpful if you would post any feature changes in the pure installation. For instance when releasing version 5.4 it would be nice to know that there are not changes between 5.3 and 5.4.
Our current workflow with this is to have a vanilla social on 5.3, export configuration, then upgrade and roll back social features and export configuration and monitor any differences.
Thanks.
Comment #28
rcodina#21 worked for me too. I recently updated Drupal core and social profile and I faced this issue. Importing modules/social_features/social_group/config/install/views.view.group_manage_members.yml solved the route error. Thanks @igasi.