Closed (fixed)
Project:
Workflow-ng
Version:
5.x-2.x-dev
Component:
Wng User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2008 at 11:55 UTC
Updated:
19 Mar 2008 at 13:21 UTC
Hi there,
I'm using workflow to redirect the user to the node profile creation when they login and they don't have node profile yet.
So I add a new rule :
array (
'cfg_3' =>
array (
'#active' => 1,
'#label' => 'Create character',
'#type' => 'configuration',
'#weight' => '0',
'#id' => 1,
'#module' => 'workflow-ng',
'#event' => 'user_login',
'#altered' => false,
0 =>
array (
'#id' => 2,
'#type' => 'condition',
'#negate' => 1,
'#name' => 'nodeprofile_user_has_profile_condition',
'#argument map' =>
array (
'account' => 'node',
),
'#settings' =>
array (
'type' => 'character',
),
),
1 =>
array (
'#name' => 'workflow_ng_action_drupal_goto',
'#type' => 'action',
'#id' => 3,
'#label' => 'Page redirect',
),
'#name' => 'cfg_3',
),
)The problem is that the page redirect action form contain :
So I don't have a field in the form that ask me where to redirect the user, so it don't work, see the attached screenshot to understand.
| Comment | File | Size | Author |
|---|---|---|---|
| wngbug.jpg | 14.17 KB | zmove |
Comments
Comment #1
bjacob commentedIn my version (not dev but 2.0-beta1) all the required fields are available and I could create a working redirect action. But I'm experiencing a similiar problem. See http://drupal.org/node/226934. Can you confirm this behaviour?
Comment #2
fagohm, I can't confirm both issues. strange. Which php version are using? Do you get any errors or warnings?
Please make sure that you are using the lastest module files, best delete the whole module and replace it with a fresh, unpacked latest 2.x version. Does that change anything?
Comment #3
fagoComment #4
zmove commentedHi,
Ok, thank you for your answer, I will try to reinstall the entire module with the latest dev version and keep you informed.
Comment #5
fagohm, it seems like some people ran over this issue. I need YOUR help to fix it as I can't reproduce it.
So again, first off please make sure that you are using the lastest module files, best delete the whole module and replace it with a fresh, unpacked latest 2.x version. Does that change anything? Please report back!
If not, which php version are you using? Watch out for any errors! Have a look in the log, whether errors have been logged.
Comment #6
asak commentedOk...
uninstalled, deleted, downloaded latest dev version, reinstalled - still no go.
Tested with php 4.4.8 and php 5.2.5. no errors, no warnings. nothing at the watchdog log.
Tested version 1.6 - the forms are shown correctly with php 4.
Anything else i can check?
Comment #7
fagohm, are you sure you have replaced all the files in the directory workflow-ng/modules/ ?
The problem is that the *_forms.inc includes there get not loaded for you, however I really don't see why :(
Comment #8
asak commentedI'm positive. as I said, I've deleted the entire directory and uploaded a new one.
Comment #9
fagohm, that's odd. Can you try to get some debugging info for me?
open the workflow_ng.module file, go to the bottom and edit the function workflow_ng_include_file().
After the line
$data = workflow_ng_gather_data('module_info', FALSE, 'all', $filename);
insert this one
echo "filename: $filename data:
";
Save it and upload it to your server. Then try again to edit an action or so. Now you should get some debugging info there - please copy them and post it here.
Comment #10
asak commentedInteresting.
This is what i get for 'Add new content':
filename: פריט תוכן_workflow_ng_forms data: 1
This is what i get for 'Page redirect':
filename: מערכת_workflow_ng_forms data: 1
Both not working, BUT...
This is what i get for 'Write a message to the log':
filename: per-entity logging_workflow_ng_forms data: 1
And it does work!
So i tried switching the language for the editing actions page and - IT WORKS! ;)
I'm using i18n and have no idea how to control stuff like this... For now - i can't see any problems with simply using english when setting new rules. i doubt i'll find any. but this is probably simple to solve now that we know where it's coming from.
Anyone other there having the same problem...?
Using i18n ... ?
Mind switching and reporting back? ;)
Comment #11
fagoaaah! the module name got localised.. ok, now I think I know what's happening. thanks a lot asak!
*working on it*
Comment #12
fagoso, hopefully it's fixed now. Please test the latest code from cvs or the next dev snapshot and report back whether it's working.
Comment #13
fagoany testers? just check out the latest dev snapshot please.
Comment #14
zmove commentedIt seems to be fixed in the last dev release. Thank you very much to maintain this module so well !
Comment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.