How to use rollback_action in a migration
I am migrating roles from D6 to D8 with Migrate. D6 roles are mapped to existing D8 ones, which should not be removed (see my migration below). At rollback, the Pro+ role is removed. Apparently,...
View ArticleImporting images from feed
I am importing staff from a json feed which includes images. The best solution I could find pulls the image down first, creates a media entity and adds it to node which becomes the dependency of the...
View ArticleUpdating content migration error: entity revision
Hi,I'm migrating from D6 website content, and to add new content created since I done the first migration, I get this error:Update existing 'node' entity revision while changing the revision ID is not...
View ArticlePRE_IMPORT event detect whether an update or not.
I've created a PRE_IMPORT event function per examples I found. It works as expected, see below. What I would like to do is detect whether the --update option is being used or not. The issue I run into...
View ArticleMultilingual Migrations for Non-Drupal Sources
MotivationSo there's a flurry of activity concerning multilingual Drupal content from D6 & D7 being properly migrated (#2208401: [META] Remaining multilingual migation paths), but I'm not seeing...
View ArticleMake every migrate process plugin that provides 'default_value' be...
Problem/MotivationRight now, it is impossible to set NULL as default value for at least the extract migrate process plugin.If one needs NULL as default value at the extract process plugin, the only...
View ArticleMoving modules breaks system
Problem/MotivationMoving modules into contrib/custom after install doesn't seem to work. According to the documentation, all one has to do if one wants to move modules into a custom or contrib...
View Article[PHP 8] Parameter order fixes
Related: #3145797: [meta] Ensure compatibility of Drupal 7 with PHP 8 (as it evolves)PHP 8.0 issues deprecation notices when an optional parameter appears before the last required parameter of a...
View ArticleThe table used for filtering and sorting in comment_ces_last_updated is...
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'node.changed' in 'field list':node_field_data.created should be set in the field, but because it uses node.created, it will become column not...
View ArticleMigrating more than 1 entity reference field instance fails
Problem/MotivationIn Drupal 7, the entityreference module allowed to create multiple field instances of the same field. The migration here "works" but then any time an entity without any data attempts...
View ArticleHow to make nicer comments?
I attached my comments to my node type......I would like to make them nicer....like in Wordpress for example....When a user publishes the comment and press save....you can't reply to his comment.....no...
View ArticleMultiple Values Numeric Views Argument 'AND' Does Nothing
When I add a numeric contextual filter in Views there is an option to Allow Multiple Values with the description 'If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3...
View ArticleThe URL for each item within a book tree should be an instance of...
In the available variables section of core/modules/book/templates/book-tree.html.twig within items we have (amongst others): * - url: The book link URL, instance of \Drupal\Core\Url.However this is no...
View ArticleAdd visibility control conditions to blocks within Layout Builder
Problem/MotivationLayout Builder introduces a new paradigm shift in page building and block placement for content entities without introducing a block visibility mechanism.Proposed resolutionIntroduce...
View ArticleImplement the dropdown menu component styling into the autocomplete widget
Problem/MotivationThe Seven style guide defines a reasonable component for a dropdown menu that can be reused in multiple places:Proposed resolutionImplement the dropdown menu as a separate reusable...
View ArticleMissing files logged from upgrade from D7 to D8
Problem/MotivationI was following the upgrade process, cleanup all the modules in d7, enable few modules in d8 that needs to be upgrade, and then I process the upgrade on the page www.myd8.com/upgrade...
View ArticleFilter migration cannot be extended
It doesn't seem possible to extend the filter module migration and add support for filters provided by other modules. On example is pathologic module #2693695: Provide migration support No matter what...
View ArticleUnused local variables in testCheckNamedRouteWithUpcastedValues() and...
In /core core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php file test method testCheckNamedRouteWithUpcastedValues() and testCheckNamedRouteWithDefaultValue() found unused variables.I removed...
View ArticleImage upload causing issue on migrated site
I have migrated a site from drupal 7 to 8 using migrate ui module.So everything looks good. But whenever i am trying to upload a image on image field or ckeditor image field its throwing the following...
View ArticleConcurrent editing of layouts is very confusing
Problem/MotivationIf two users attempt to edit the same layout, they will both see the changes the other is making.Proposed resolutionMimic the Views UI (which also uses tempstore.shared) and lock the...
View Article