- Merge request !3Issue #3300706: Context exception when trying to create url β (Open) created by daveiano
- πΊπΈUnited States loopy1492
Just adding a static patch after @daveiano's work above...
- πΊπΈUnited States loopy1492
For some reason I keep uploading patches that start with a space in the file name.
- Status changed to Needs review
over 1 year ago 6:40am 25 July 2023 - πΈπ°Slovakia coaston
#18 resolved issues in D10.
Thank you. You have saved my day!
- Status changed to RTBC
over 1 year ago 4:40pm 15 August 2023 - π©πͺGermany Anybody Porta Westfalica
Just ran into the same issue. RTBC for #18
See similar issues: #3266631: Drupal 10 compatibility, require Drupal 9.3 β , π Class "Drupal\Core\Plugin\ContextAwarePluginBase This class has been deleted in version 10 Fixed
- π©πͺGermany Anybody Porta Westfalica
Any maintainer here to merge this and tag a new 4.x release, as 4.x isn't really D10 compatible currently.
- πΊπΈUnited States andysipple
Getting the following error when trying to config import into a D10 site. Patch #18 is not working for me.
+------------+------------------------------+-----------+ | Collection | Config | Operation | +------------+------------------------------+-----------+ | | view_mode_page.pattern.print | Create | +------------+------------------------------+-----------+ Import the listed configuration changes? (yes/no) [yes]: > yes [notice] Synchronized configuration: create view_mode_page.pattern.print. [notice] Finalizing configuration synchronization. In ConfigImportCommands.php line 324: The import failed due to the following reasons: Unexpected error during import with operation create for view_mode_page.pattern.print: The "node_type" plugin does not exist. Valid plugin IDs for Drupal\Core\Condition\ConditionManager are: config_pages_values_access, gtag_domain, gtag_language, language, current_theme, request_path, user_role, webform, entity_bundle:block_content, entity_bundle:config_pages, entity_bundle:crop, entity_bundle:entity_subqueue, entity_bundle:feeds_feed, entity_bu ndle:media, entity_bundle:menu_link_content, entity_bundle:node, entity_bundle:redirect, entity_bundle:taxonomy_term, entity_bundle:webform_submission, e ntity_bundle:paragraph
- πΊπΈUnited States nkraft
The patch in #18 PLUS the config update in #23 from AndySimple worked for me!
I applied patch #18.
Then went into my config sync folder, searched for: node_type
And then changes all instances related to view_mode_page from:
node_type to entity_bundle:nodethen ran: drush cim
top import the modified config files
then
drush crAnd voila! My view mode pages are back and working correctly! Thanks alll, you saved my day, getting ready to take D10 live hopefully tomorrow. Cheers to you all.
- π§πͺBelgium stijnd Belgium
The combination of #18 and #23 also worked for me. Perfectly explained by @nkraft!
- Status changed to Needs work
about 1 year ago 6:51pm 1 March 2024 - πΊπΈUnited States pianomansam
Changing the status back to needs work as there are unresolved questions on the merge request. Further, the merge request doesn't do anything to solve the issue raised in #23. The fix in #23 is still a manual fix that should be taken care of programmatically with a migration/update.
With a fresh install on D10 (not an upgrade from D9), patch #18 worked like a charm for me. Also fixed/is the root of this bad AJAX call:
https://www.drupal.org/project/view_mode_page/issues/3414818#comment-155... π add pattern HTTP AJAX error 500 Active- πͺπΈSpain rcodina Barcelona
The patch #18 works like a charm. But the MR patch doesn't apply.
- First commit to issue fork.
- πΊπΈUnited States Arlina
Updated PR to be compatible with latest release 4.0.3, as it already addresses the deprecation issues.
- πΊπΈUnited States btully Dutchess County, NY
The latest patch #18 fails to apply when using version 4.0.3 of the module through composer require.
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-05-01/3300706-17-context_exception_when_trying_to_create_url_0.patch
I saw same issue as mentioned in #31. Patch #18 fails.
MR!3 ( #29) is applied but now other problems.
When creating a new pattern it shows
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_type" plugin does not exist
For existing patterns, I see the error mentioned in the screenshot below.
Versions: Drupal version 10.4.1 Viev mode page: 4.0.3
- πΈπͺSweden Kleve
Looks like the 4.0.3 version includes the patch code. Maybe that is why you get `Could not apply patch` @btully.
Simply remove the patch should remove the error. - πΊπΈUnited States papagrande US West Coast
If this issue is indeed fixed, can we get a link to the issue and/or commit that updated the code?
Then we can mark this issue as "Closed (duplicate)" or "Closed (outdated)".
- π«π·France raphaelbertrand Lauris
The issue is not yet fully fixed in 4.0.3, whithout patch or MR applied
When creating a new pattern it shows
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_type" plugin does not exist
I don't have time to investigate more on this issue now but maybe the work on related issues "#3318559: Replace use of node_type condition" and " #3356400: Drupal 10 compatibility" may help to finish to solve this one, mainly the part on /src/Form/PatternEditForm.php file.
- π«π·France raphaelbertrand Lauris
Maybe the commit that updated the code is in #3435378 Automated Drupal 11 compatibility fixes for view_mode_page ?
Posting the MR changes as a patch here. It is compatible with v4.0.3
- π«π·France raphaelbertrand Lauris
Good idea it help to see what remain in the MR.
Maybe switch back to "need review" in order to finish with this issue and by the same time with "#3356400: Drupal 10 compatibility"
wich is almost duplicate now. - Status changed to Needs review
12 days ago 2:31pm 25 March 2025 - π§πͺBelgium weseze
I can confirm that the patch from #37 applies to the latest v4.0.3 version of the module and everything is working as expected.
Setting to "Needs review" so the maintainers can have a look and provide feedback, if needed.