I've been getting a lot of errors in my Pathauto page that look like this:

warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/sites/all/modules/token/token.module on line 326.

I was able to track down that it's coming from this module, but I don't know where the problem is. I was able to generate the error as:

Invalid tokens from facebook_status_token_list

by modifying the token module code a bit. Any idea where the invalid token is?

CommentFileSizeAuthor
#1 823050-fbstatus-tokens.patch1.23 KBdave reid

Comments

dave reid’s picture

Title: Getting errors in Pathauto from Facebook status » Improper token array in facebook_status_token_list()
Version: 6.x-2.2 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.23 KB

I believe this is the problem.

wxman’s picture

That was it. Thank you. I couldn't find anything regarding this before.

icecreamyou’s picture

Status: Needs review » Reviewed & tested by the community

I actually ran into this today and didn't have a chance to look into it. Thanks Dave, much appreciated. Will commit this week.

icecreamyou’s picture

Committed to dev. Thanks!

icecreamyou’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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