Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After upgradation of old drupal site (version - 8.2.8) to new site (version - 8.4.3) , on node edit page of each tab, latest version tab is appearing two times. In old drupal site the workbench moderation version was 8.x-1.1 and in new site the version is 8.x-1.3.
Comment | File | Size | Author |
---|---|---|---|
latest_vesion_issue.png | 55.71 KB | Debasish147 |
Comments
Comment #2
Debasish147 CreditAttribution: Debasish147 commentedComment #3
bharanikumariyerphp CreditAttribution: bharanikumariyerphp commentedAny luck for this issue
Comment #4
ARUN AK CreditAttribution: ARUN AK commentedSame here. Any update on this?
Comment #5
Debasish147 CreditAttribution: Debasish147 commentedBoth content_moderation (core) and workbench_moderation (contrib) generates Latest version tabs. So i unset the workbench_moderation Latest version tab and retaining the core one as follows and this solves the issue.
function modulename_local_tasks_alter(&$local_tasks) {
foreach ($local_tasks as $key => $value) {
if ($key == 'moderaion_state.entities:node.latest_version_tab') {
unset($local_tasks['moderaion_state.entities:node.latest_version_tab']);
}
}
}
Comment #6
Debasish147 CreditAttribution: Debasish147 commentedComment #7
adamschan CreditAttribution: adamschan commentedSame here, anyone can provide a patch please?
Comment #8
timmillwoodWhy do you have both modules installed? Either use one or the other!
If you need to uninstall Workbench Moderation, upgrade to Drupal 8.5.0 and it will be possible to uninstall.
Comment #9
adamschan CreditAttribution: adamschan commented@timmillwood, I'm using Acquia lightning distribution and the workbench_moderation is by default installed. Upgrading to 8.4x will also enable content_moderation and therefore having both installed.
Upgrading to 8.5 create some other more complicated issues. ><
Comment #10
timmillwood@adamschan - I thought Acquia had sorted this!
Comment #11
phenaproximaAs of version 2.2.4, Lightning enables Content Moderation by default, not Workbench Moderation. If you are upgrading from a version older than that, Lightning provides an update path, which is explained in the update instructions, and which uninstalls Workbench Moderation as part of that process.
Comment #12
justclint CreditAttribution: justclint as a volunteer commentedWe also just noticed this. It didnt even occur to me to check if workbench_moderation was still enabled after the lightning update until I saw this post but after checking it appears the moderation migration in the lightning update did not uninstall workbench moderation.
I tried to uninstall it manually but getting a known error as discussed here
We followed the update instructions here and used the 'console' command vs. the manual method. I was able to go back and find the update in my terminal and the only output from the update was the following.
Not sure if there should of been more but I can confirm our workbench_moderation was not uninstalled by the lightning update but apparently also can not uninstall manually either.
Comment #13
ARUN AK CreditAttribution: ARUN AK commentedUnistalling workbench_moderation module will resolve this issue. Below are the steps which I followed:
Patch mentioned here helped me to uninstall workbench module. I followed:
After deleted field data I was able to uninstall workbench_moderation module.
Comment #14
justclint CreditAttribution: justclint as a volunteer commentedThanks @Arun! That worked great.
Comment #15
Debasish147 CreditAttribution: Debasish147 commented