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 :

  • the label
  • the weight
  • .... that all...

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.

CommentFileSizeAuthor
wngbug.jpg14.17 KBzmove

Comments

bjacob’s picture

In 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?

fago’s picture

hm, 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?

fago’s picture

Title: Strange action form » action/condition settings form is missing
zmove’s picture

Hi,

Ok, thank you for your answer, I will try to reinstall the entire module with the latest dev version and keep you informed.

fago’s picture

hm, 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.

asak’s picture

Ok...

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?

fago’s picture

hm, 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 :(

asak’s picture

I'm positive. as I said, I've deleted the entire directory and uploaded a new one.

fago’s picture

hm, 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:

". print_r($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.

asak’s picture

Interesting.

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? ;)

fago’s picture

aaah! the module name got localised.. ok, now I think I know what's happening. thanks a lot asak!
*working on it*

fago’s picture

Status: Active » Fixed

so, hopefully it's fixed now. Please test the latest code from cvs or the next dev snapshot and report back whether it's working.

fago’s picture

any testers? just check out the latest dev snapshot please.

zmove’s picture

It seems to be fixed in the last dev release. Thank you very much to maintain this module so well !

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.