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

dave reid’s picture

Status: Active » Fixed

Use token 6.x-1.x-dev for now.

xmacinfo’s picture

Status: Fixed » Active

Confirming 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.

dave reid’s picture

Status: Active » Fixed

Use token 6.x-1.x-dev. :)

xmacinfo’s picture

I shall. :-)

asb’s picture

Confirming this issue. #1 resolves it. Thanks, Dave!

...but: many, many tokens are gone, especially those from CCK. Hmm...

-asb

dave reid’s picture

Probably 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.

asb’s picture

The replacement patterns at ./admin/build/path/patterns are 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

dave reid’s picture

The tokens are still going to be evaluated, they're just not shown in the help because of the way CCK groups its tokens.

NiklasBr’s picture

Had this issue as well. Downloading -dev version as Dave Reid suggests in comment #1 solved it. Also; subscribing.

j0nathan’s picture

Same issue and resolved with #1. (subscribing)

lionheart8’s picture

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

alfili’s picture

Just updated Views, Pathauto & Token, the problem is getting worse, even publish content can't be used anymore. (subscribing)

alfili’s picture

Problem 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.

dave reid’s picture

As 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.

asb’s picture

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

alfili’s picture

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

dave reid’s picture

They have been for a while, hence the fixed status.

Status: Fixed » Closed (fixed)

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