I get the error message, if I try to change the patterns (admin/build/path/patterns)
Fatal error: Call to undefined function token_get_invalid_tokens_by_context() in /is/htdocs//sites/all/modules/pathauto/pathauto.admin.inc on line 313
I get the error message, if I try to change the patterns (admin/build/path/patterns)
Fatal error: Call to undefined function token_get_invalid_tokens_by_context() in /is/htdocs//sites/all/modules/pathauto/pathauto.admin.inc on line 313
Comments
Comment #1
dave reidUse token 6.x-1.x-dev for now.
Comment #2
xmacinfoConfirming this bug.
It is happening using Pathauto 6.x-2.x-dev (2010-June-09) tarball.
Reverting to Pathauto 6.x-2.x-dev (2010-May-27) resolves the issue.
I am using Token 6.x-1.13.
Comment #3
dave reidUse token 6.x-1.x-dev. :)
Comment #4
xmacinfoI shall. :-)
Comment #5
asb commentedConfirming this issue. #1 resolves it. Thanks, Dave!
...but: many, many tokens are gone, especially those from CCK. Hmm...
-asb
Comment #6
dave reidProbably because we're using a native token.module UI to display the tokens in 6.x-2.x. And CCK doesn't put its tokens under the 'node' token type.
Comment #7
asb commentedThe replacement patterns at
./admin/build/path/patternsare much cleaner, that's a real advancement. The point-and-click UI is nice, also....but that we won't get CCK tokens in Pathauto doesn't sound too good... If that has to stay this way (does it?), I'm afraid we'd need something like "Evaluate PHP in pattern" in the "Automatic title generation" from Automatic Nodetitles. Hmm, but stuff like this is for you big guys, I should keep my mouth shut...
Greetings, -asb
Comment #8
dave reidThe tokens are still going to be evaluated, they're just not shown in the help because of the way CCK groups its tokens.
Comment #9
NiklasBr commentedHad this issue as well. Downloading -dev version as Dave Reid suggests in comment #1 solved it. Also; subscribing.
Comment #10
j0nathan commentedSame issue and resolved with #1. (subscribing)
Comment #11
lionheart8 commentedI deleted the latest version of the module & replaced it with the dev. version. The original error was no longer there, but I get anotrher one:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'pathauto_settings_form' was given in /home/habari/public_html/abc/test/includes/form.inc on line 372.on both the Patterns & Settings pages with no other content appearing.
What should I do next?
Comment #12
alfili commentedJust updated Views, Pathauto & Token, the problem is getting worse, even publish content can't be used anymore. (subscribing)
Comment #13
alfili commentedProblem solved for now by going back to Pathauto 6.x-2.x-dev & Token 6.x-1.12. Please let me know when the latest versions of the two are able to work together again.
Comment #14
dave reidAs I've said several times in this issue already, pathauto 6.x-2.x-dev should be used with token 6.x-1.x-dev.
Comment #15
asb commented...and it's working prett fine in this combination for about two weeks on several of my sites.
...and even the the CCK tokens are back (#5), better than ever before ;)
Thanks again, Dave!
-asb
Comment #16
alfili commentedBoth Token & Pathauto were just updated (Token 6.x-1.x-dev 2010-Jul-10 | Pathauto 6.x-2.x-dev 2010-Jul-10). Are they any good?
Comment #17
dave reidThey have been for a while, hence the fixed status.