When I use workflow's tutorial for Automatic path aliases for content (rather than using pathauto), but then I get the following error:

warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 38.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 39.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 40.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 41.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 42.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 43.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 44.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 45.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 46.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 47.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 48.
warning: date() expects parameter 2 to be long, string given in /Applications/MAMP/htdocs/njsavings/modules/token/token_node.inc on line 49.

I searched for how to fix this issue outside of workflow, and found the following issue / patch: http://drupal.org/node/153737#comment-572488
I can't tell if it worked or not, because I was getting a very strange response. My users could no longer create or edit content, even though they had perms to do it. This might be their issue, I don't know. I just know that when I delete the 'Apply path alias' configuration in workflow, and use pathauto instead, there are no errors.

BUT do you think it's possible this could be solved with a patch to workflow? I'd really like to use this for the path aliases as well...

Thanks in advance,
Scott

Comments

scottrigby’s picture

Oh, forgot to say that I also had to ditch the patch, and reinstall my database because the issue about users not being able to add content didn't go away until I did.

fago’s picture

hm, the patch should be already in the latest token version. Could you try again with the latest token (and workflow-ng 1.5) ?
Can you reproduce the problem?

However, I can't imagine what should cause the problem of not being able to add content.