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.
Hey folks,
i got one big problem and i hope you can help me out of this:
Everytime when iam editing and saving a node the Workflow-State is changing the state.
The state is the one which is assigned after a node-creation.
Iam not using rules for workflow transitions.
Can anybody help me out?
Greetings :-)
Comments
Comment #1
johnvPlease upgrade to version 2.4 or -dev. It contains numerous bugfixes.
There is no support for 1.2 anymore.
Comment #2
aze2010 CreditAttribution: aze2010 commentedThanks for your reply...but i cannot upgrade yet.
iam using some modules like "extensions" etc. that are not working with v2.x.
Comment #3
johnvI understand. Which are those modules? Perhaps I can patch them.
Comment #4
aze2010 CreditAttribution: aze2010 commentedHi John, that would be great!
Iam using the following Workflow-Modules:
- Workflow 1.2
- Workflow extensions 1.0+3 dev
Thank you very much!!!
Many greetings
Comment #5
johnvWorkflow extensions is now completely incorporated in version 2.x
just upgrade, disable extensions and test the result. See also the project page.
Comment #6
aze2010 CreditAttribution: aze2010 commentedHow should i upgrade? Iam using D7.
Should i disable the Workflow Modules before i upgrade?
Comment #7
johnvNever did an upgrade before? Remove the old files and replace with the new files. Then goto page update.php. Then(or first) disable workflow_extensions. Normally you would have a test environment, using git or svn, so you can do this on the production site with short downtime.
Comment #8
aze2010 CreditAttribution: aze2010 commentedSure i did it before, but i want to be safe in this way and just asked ;-).
I will do it now!
Thank you very much for your support, john!
Comment #9
johnvGood luck. Please share your results script, so others can benefit.
Comment #10
aze2010 CreditAttribution: aze2010 commentedHi john,
i upgraded from 1.2 to 2.4.
Everything seems okay so far... BUT...now i got one big problem.
Every rules with "Set workflow state to..." is not working anymore.
What can it be?
I have to delete "Set workflow state to" in the rules, otherwise the complete rule is not executing anymore.
Any help would be great.
Thank you very much.
Comment #11
aze2010 CreditAttribution: aze2010 commentedhey johnv,
i fixed that issue with help of this patch in #9:
https://www.drupal.org/node/2304365
Maybe you can confirm that.
thank you.
Comment #12
johnvOK, thanks.
That means, if you upgrade to the -dev version or version 7.x-2.5-beta1, the error should not appear at all. Correct?
Comment #13
johnvComment #14
johnvOh, if you have any additional tips regarding your upgrade, please add them here: #2352293: Add Migrate support for WorkflowNode data to WorkflowField
Comment #15
aze2010 CreditAttribution: aze2010 commentedAfter recent observations in this case i can say that "Set a workflow state"-Rule doese not working properly!
In the workflow-log the state was changed...but the "real" state doesnt change.
Also the previous-state and the current-state are everytime the same, after an state action.
I have to change by hand from one state back again to target state.
I dont know what is wrong after the upgrade :-(.
Comment #16
johnvOK, I'll check this. Which version have you downloaded? I remember have fixed things in this area. According to #2344431: Action "Set Workflow Field" state does not always update the Workflow Field value, you should be using latest dev or workflow 7.x-2.5-beta1.
Comment #17
johnv#2189761: How to use Rules support for Workflow Field
Comment #18
aze2010 CreditAttribution: aze2010 commentedhi johnv i will now check the 2.5-beta1.
I will give you a report after recent checks.
Thanks for your support!
Update #1 (2.5-beta1):
After creating a new node:
- Error-Message on Website: "Workflow 0 cannot be loaded. Contact your system administrator."
- Message in db-log: "Setting a non-relevant Entity from state 0 to 0"
Nodes have no "Workflow-State" at all (no workflow attached).
No Workflow-Registertab is shown at node-view.
After Edit -> Save Node the node gets a Workflow-State.
Update #2 (latest Dev):
Beginning Tests using latest DEV 2.x:
- Running update.php throws the following messages out (many times):
"Notice: Undefined index: group in workflow_actions_trigger_info() (Line 162 of /var/www/sites/all/modules/workflow/workflow_actions/workflow_actions.module)."
- The Website performance is significant slower. DB-Log many notice messages "Undefined index: group in workflow_actions_trigger_info".
After creating a new node:
- Workflow is set correct.
Comment #20
johnvFixed the messages in version 7.x-2.x of workflow_actions_trigger_info() here.
Comment #21
johnvNew features for D7 are not processed anymore, (unless a patch is provided)