If you have enabled the "Group Content Moderation" module, try to disable it and remove the "Moderated group content" view (disabling the module doesn't remove it). This has helped me.
Also review web/modules/contrib/group/group.install.
Both Group 2.3.2 and 3.3.5 have group_update_10305().
But Group 2.3.2 doesn't have hooks from group_update_10300() to group_update_10304().
So, if you ran update.php with Group 2.3.2 and group_update_10305() was completed, after updating to Group v3+ hooks from group_update_10300() to group_update_10304(), newer fired.
I hope it will help.
Added the example of code for Group v3 as well.
Created a pull request based on the patch provided by @lionel rousseau.
Works well for me.
ruslan piskarov → changed the visibility of the branch 3553820-vbo-has-changed to hidden.
ruslan piskarov → changed the visibility of the branch 3553820- to hidden.
ruslan piskarov → made their first commit to this issue’s fork.
@baluertl, @laszlo.kovacs, segi,
Could we create a stable version for D11?
This is a great module, but > 2 years without updates.
@anybody, you can integrate if you prefer.
I think with new form settings, which allow for enabling and implemented disabling features. It was in my @todo list.
Hi @anybody.
Replicate Actions — What it does (HTML version)
Unpublish replicated entities
- Trigger:
ReplicatorEvents::REPLICATE_ALTER. - Applies to publishable content entities that have a
statusfield. - Skips:
- Paragraph entities (
paragraph). - Non‑reusable Layout Builder custom blocks (
block_contentthat are not reusable).
- Paragraph entities (
- For all translations:
- Sets status to unpublished.
- Resets created/changed timestamps to the current time (when supported).
- Implementation:
src/EventSubscriber/ReplicateSetUnpublished.php(service:replicate_actions.replicate_entity_unpublish).
Set the owner of the replicated entity to the current user
- Trigger:
ReplicatorEvents::REPLICATE_ALTER. - For each translation, if the entity supports ownership (
setOwnerId), sets the owner to the logged‑in user. - Implementation:
src/EventSubscriber/ReplicateSetAuthor.php(service:replicate_actions.replicate_set_author).
Redirect to the edit form after replication (Replicate UI)
- Alters the Replicate UI confirm form to redirect to the new entity’s edit form after submission.
- Only redirects if the entity has an
edit-formlink template. - Implementation:
src/Form/ReplicateFormAlter.phpused viahook_form_alter()inreplicate_actions.module(service:replicate_actions.replicate_form_alter).
Copy Group memberships for nodes (if Group module is enabled)
- Stores the original node ID during
REPLICATE_ALTER, then after save (AFTER_SAVE) adds the cloned node to the same Groups as the original. - Only runs for nodes and only when the
groupmodule is installed. - Uses group content plugin ID
group_node:{bundle}when adding the relationship. - Implementation:
src/EventSubscriber/ReplicateNodeToGroup.php(service:replicate_actions.replicate_node_to_group).
Constraints and exclusions
- Paragraph entities are not auto‑unpublished.
- Non‑reusable custom blocks from Layout Builder are not auto‑unpublished.
- Group copying applies only to nodes and requires the Group module.
- Owner change runs only if the entity supports ownership (
setOwnerId).
Files of interest
replicate_actions.info.yml— Declares the module; depends onreplicateandreplicate_ui.replicate_actions.services.yml— Registers the form alter and event subscribers.replicate_actions.module— Containshook_help()andhook_form_alter().- Implementations under
src/:EventSubscriber/ReplicateSetUnpublished.phpEventSubscriber/ReplicateSetAuthor.phpEventSubscriber/ReplicateNodeToGroup.phpForm/ReplicateFormAlter.php
Note
- There is an additional class
src/EventSubscriber/ReplicateSetEntityEdit.php(unpublish + redirect via response), but it is not registered as a service in this codebase; the active redirect is provided by the form‑alter approach above.
@anybody,
Unpublish replicated entities
- Trigger:
ReplicatorEvents::REPLICATE_ALTER. - Applies to publishable content entities that have a
statusfield. - Skips:
- Paragraph entities (
paragraph). - Non‑reusable Layout Builder custom blocks (
block_contentthat are not reusable).
- Paragraph entities (
- For all translations:
- Sets status to unpublished.
- Resets created/changed timestamps to the current time (when supported).
- Implementation:
src/EventSubscriber/ReplicateSetUnpublished.php(service:replicate_actions.replicate_entity_unpublish).
Set the owner of the replicated entity to the current user
- Trigger:
ReplicatorEvents::REPLICATE_ALTER. - For each translation, if the entity supports ownership (
setOwnerId), sets the owner to the logged‑in user. - Implementation:
src/EventSubscriber/ReplicateSetAuthor.php(service:replicate_actions.replicate_set_author).
Redirect to the edit form after replication (Replicate UI)
- Alters the Replicate UI confirm form to redirect to the new entity’s edit form after submission.
- Only redirects if the entity has an
edit-formlink template. - Implementation:
src/Form/ReplicateFormAlter.phpused viahook_form_alter()inreplicate_actions.module(service:replicate_actions.replicate_form_alter).
Copy Group memberships for nodes (if Group module is enabled)
- Stores the original node ID during
REPLICATE_ALTER, then after save (AFTER_SAVE) adds the cloned node to the same Groups as the original. - Only runs for nodes and only when the
groupmodule is installed. - Uses group content plugin ID
group_node:{bundle}when adding the relationship. - Implementation:
src/EventSubscriber/ReplicateNodeToGroup.php(service:replicate_actions.replicate_node_to_group).
Constraints and exclusions
- Paragraph entities are not auto‑unpublished.
- Non‑reusable custom blocks from Layout Builder are not auto‑unpublished.
- Group copying applies only to nodes and requires the Group module.
- Owner change runs only if the entity supports ownership (
setOwnerId).
Files of interest
replicate_actions.info.yml— Declares the module; depends onreplicateandreplicate_ui.replicate_actions.services.yml— Registers the form alter and event subscribers.replicate_actions.module— Containshook_help()andhook_form_alter().- Implementations under
src/:EventSubscriber/ReplicateSetUnpublished.phpEventSubscriber/ReplicateSetAuthor.phpEventSubscriber/ReplicateNodeToGroup.phpForm/ReplicateFormAlter.php
Note
- There is an additional class
src/EventSubscriber/ReplicateSetEntityEdit.php(unpublish + redirect via response), but it is not registered as a service in this codebase; the active redirect is provided by the form‑alter approach above.
ruslan piskarov → created an issue. See original summary → .
ruslan piskarov → created an issue.
ruslan piskarov → created an issue.
The same issue during updating from Group 2.3.2 to 3.3.5.
drush updatedb
[success] No pending updates.
The website encountered an unexpected error. Try again later.
Drupal\Core\Field\FieldException: Attempt to create a field without a field_name. in Drupal\field\Entity\FieldConfig->__construct() (line 124 of core/modules/field/src/Entity/FieldConfig.php).
Reviewed it on my local project, and I think it is a helpful feature request.
Attaching patch from merge request 97.
Thank you @byronveale, @bkosborne and @vinodhini.e.
Merget to master.
@byronveale, brilliant. I am going to review tomorrow. Thank you.
@sourav_paul, you should be credited in #15. I didn't know why it didn't. I will have a look when I have time.
Hey @byronveale.
I think you can use hook_form_alter() in your custom module.
Example:
/**
* Implements hook_form_alter().
*/
function replicate_actions_form_alter(&$form, FormStateInterface $form_state, $form_id): void {
if (strpos($form_id, '_replicate_form')) {
/** @var \Drupal\replicate_actions\Form\ReplicateFormAlter $replicate_form_alter */
$replicate_form_alter = \Drupal::service('replicate_actions.replicate_form_alter');
$replicate_form_alter->alterForm($form, $form_state);
}
}
Or implement your own EventSubscriber:
class ReplicateChangeAutor implements ReplicateSetEntityEdit.
However, if you can create a patch, I will add this functionality to the module. I think it is a great idea.
Hi @d.fisher, I use the #15 patch on many sites.
Look https://www.drupal.org/project/views_ical/issues/3435484 📌 Automated Drupal 11 compatibility fixes for views_ical Needs review
Hi @hitchshock, I am not sure what I did wrong. As I see you and @joelpittet were tagged.
It's strange that you weren't credited.
I'm going to see how I can fix this.
ruslan piskarov → created an issue.
Not sure, nut maybe related https://www.drupal.org/node/3528806 → .
Can't apply to 11.2.0.
Thank you @berliner.
ruslan piskarov → changed the visibility of the branch 8.x-1.x to hidden.
ruslan piskarov → made their first commit to this issue’s fork.
Thank you @mortona2k and @vinodhini.e.
ruslan piskarov → made their first commit to this issue’s fork.
Thank you, @berliner. Merged.
Thank you @goodboy for your reply. You are right.
Created another issue
https://www.drupal.org/project/autoban/issues/3527487
✨
Is is possible to remove the Database Logging dependence?
Active
.
ruslan piskarov → created an issue.
ruslan piskarov → created an issue.
ruslan piskarov → made their first commit to this issue’s fork.
The patch 32 can be applied to Version 3.1.0, but in DEV it was fixed in another way.
You can have a look
Database Indexes was never created because incorrect key in hook_schema
🐛
Database Indexes was never created because incorrect key in hook_schema
Fixed
.
Leaving this task for reference. Decided do not close this task for now.
ruslan piskarov → made their first commit to this issue’s fork.
ruslan piskarov → made their first commit to this issue’s fork.
ruslan piskarov → created an issue.
We definitely should update it. Subscribing.
Could the author of the module create a new release for Drupal 11? Thanks.
Looks good too. We need a D11 release as soon as possible. Could the author of the module create the 3.0.0 release?
Looks good too. We need a D11 release as soon as possible. Could the author of the module create a new release?
Looks good for me.
The community are need a D11 release as soon as possible. Could the author of the module create a new release?
We need a D11 release as soon as possible. Could the author of the module create a new release?
+ describing. We need a release for Drupal 11 as soon as possible.
We need review and create a new release for Drupal 11 ASAP. Thanks. As I see the version 3.0.0 supports D10 only.
Why this task was marked as fixed?
Could you create a new release from
https://www.drupal.org/project/fontawesome_menu_icons/releases/3.x-dev →
?
We need review and create a new release for Drupal 11 ASAP. Thanks.
We need review and create a new release for Drupal 11 ASAP. Thanks.
Added 'datetime' field type.
@mark_fullmer, you are right. I didn't see #3317769 before. Thank you very much for the quick response, and have a tremendous day.
Thank you, @mark_fullmer, for your reply.
I am looking again.
A fresh D10 site enabled the Linkit module v 7.0.0-alpha1 and media macher.
Create two media 1.jpg and 2.png.
In CKeditor
Create a node with "Text Link" text and two images (one image inserted as media, one uploaded as file).
Link all elements to "2.png" media.
A source code will be
<p>
<a href="/media/4" data-entity-type="media" data-entity-uuid="2142ef3f-60e0-4115-80ce-8d460aa5406a" data-entity-substitution="media">Text Link</a>
</p>
<a href="/media/4"><drupal-media data-entity-type="media" data-entity-uuid="c390e8a9-0b66-4c44-8bd3-dd79b95d4c65"> </drupal-media></a>
<a href="/media/4"><img src="/sites/default/files/inline-images/3.jpg" data-entity-uuid="3d311f2c-0dad-4ef6-a1ec-949d0c069523" data-entity-type="file" width="1800" height="943"></a>Rendered HTML will be
<p>
<a href="/sites/default/files/2024-11/2.pdf"
data-entity-type="media"
data-entity-uuid="2142ef3f-60e0-4115-80ce-8d460aa5406a"
data-entity-substitution="media" title="2.pdf">Text Link</a>
</p>
<a href="/media/4">
<div class="media media--type-image media--view-mode-default">
<div class="field field--name-field-media-image field--type-image field--label-visually_hidden">
<div class="field__label visually-hidden">Image</div>
<div class="field__item">
<img loading="lazy" src="/sites/default/files/styles/large/public/2024-11/1.jpg.webp?itok=5BbDYn1H"
width="480" height="251" alt="test">
</div>
</div>
</div>
</a>
<a href="/media/4">
<img data-entity-uuid="3d311f2c-0dad-4ef6-a1ec-949d0c069523"
data-entity-type="file"
src="/sites/default/files/inline-images/3.jpg" width="1800" height="943"
loading="lazy">
</a>So, it works nicely with texts but has media issues.
Thank you, @pianomansam. Have a great time.
I apologize. I meant a new release for Drupal v11.
Will be great if we will have a release for Drupal 10.3.
Not sure which one better.
ruslan piskarov → created an issue.
ruslan piskarov → created an issue.
+1 for an official release.
Thanks for working on this!
Yes, we can do as @flyke proposed at #27.
+1 for an official release.
Thanks for working on this!
+1 for an official release.
Thanks for working on this!
+1 for an official Drupal 11 release.
Thanks for working on this!
+1 for an official release.
Thanks for working on this!
Reviewed MR14 . Looks good for me.
+1 for an official release.
Thanks for working on this!
+1 for an official release. Thanks for working on this!
Reviewed MR12. Looks good for me.
+1 for an official release.
Thanks for working on this!
ruslan piskarov → created an issue.
Fixed deprecated warning.
Reviewed. I believe we can have a new version for Drupal 11 as soon as possible. Thank you.