I have instaled drupal 5.1 fresh, and pathauto 5.x-1.x-dev, and category pathauto 5.x-1.1 and leech 5.x-1.6 with Yahoo term extractor. Everything worked just fine in drupal 4.7x. Then since the 5.1 upgrade when leeching in feeds I get errors like this:

Illegal offset type in /home/site/public_html/modules/taxonomy/taxonomy.module on line 1151.

I have read bunches of posts and they all seem to say that this is a pathauto problem...and yet none of the posts (in this issues thread) seem to have a resolution. What can I do? My site is a total mess ever since the 5.1 upgrade - I wish I would have stayed in 4.7x until the modules were more mature.

CommentFileSizeAuthor
#8 pathauto_illegal_offset_fix.patch428 bytesHorsePunchKid

Comments

jt6919’s picture

any help with this pathauto problem would be greatly appreciated! thx!

Mojah’s picture

This looks simillar so I won't open up another issue....

Here's the error...

    * warning: Illegal offset type in /home/zenmate/domains/domain.com/public_html/modules/taxonomy/taxonomy.module on line 1162.
    * warning: Illegal offset type in /home/zenmate/domains/domain.com/public_html/modules/taxonomy/taxonomy.module on line 1163.
    * warning: Illegal offset type in /home/zenmate/domains/domain.com/public_html/modules/taxonomy/taxonomy.module on line 1166.
    * warning: Illegal offset type in /home/zenmate/domains/domain.com/public_html/modules/taxonomy/taxonomy.module on line 1162.
    * warning: Illegal offset type in /home/zenmate/domains/domain.com/public_html/modules/taxonomy/taxonomy.module on line 1163.
    * warning: Illegal offset type in /home/zenmate/domains/domain.com/public_html/modules/taxonomy/taxonomy.module on line 1166.

Here's the observations...
When I remove the patched version of taxonomy.module supplied with localizer, the error persists
It only occurs if the node type has a taxonomy associated with it
The url alias is correctly created by pathauto and everything works well, except for the unsightly error above. Meaning that this may not be such a big problem in my case...

I have the latest official release of pathauto...which is by the way a most useful module. It reduces our workload so much. Thank you for the great work and module.

jt6919’s picture

any ideas on how to address this issue? all help appreciated!

greggles’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Hello - I'm not able to reproduce this issue as you've stated it. Can you provide a very simple set of steps involving the fewest contributed modules necessary that will cause the problem?

greggles’s picture

Any chance you are using scheduler/workflow?

jt6919’s picture

no, I don't use scheduler/workflow. For me, I use leech. When parsing feeds (in) I get those errors.

greggles’s picture

aha!

So, it seems like there is a group of bugs that are all related - there's this one, one related to localizer, one related to category, one related to workflow/scheduler. Pathauto currently expects taxonomy to be in a pretty specific standard format so when it's not in that format pathauto freaks out. Sadly I'm not really aware of a solution aside from starting to use token module and then letting token module handle all these problems http://drupal.org/project/token ;)

HorsePunchKid’s picture

Version: 5.x-1.x-dev » 5.x-1.1
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new428 bytes

I think I've fixed this for myself, though I haven't tested it extensively. Is this bug still present in 5.x-2.x-dev?

greggles’s picture

Status: Needs review » Postponed (maintainer needs more info)

I don't know the steps to repeat this bug, so I don't know whether it is still present or not.

If you have the steps that cause this bug then I can repeat it. Then I can see whether it's still in 5.x-2 or not.

My guess is not, because stuff has changed very much, but perhaps it is.

greggles’s picture

Status: Postponed (maintainer needs more info) » Needs review

Pardon me - I had forgotten that this error comes from leech module.

Even so, I believe that Pathauto 5.x-2 will fix it. Can either of you test that?

greggles’s picture

Status: Needs review » Fixed

this seems to be fixed in 5.x-2 according to Dave N - http://drupal.org/node/143295#comment-242523

I'm marking it fixed, but certainly welcome more testers.

czarphanguye’s picture

pathauto_illegal_offset_fix.patch (428 bytes) works. Thank you!

Anonymous’s picture

Status: Fixed » Closed (fixed)
mwander’s picture

greggles:

I know you marked this as fixed. I think I'm still seeing the same issue.

* warning: Illegal offset type in isset or empty in /home/webadmin/mytroops.com/html/drupal/modules/taxonomy/taxonomy.module on line 1150.
* warning: Illegal offset type in /home/webadmin/mytroops.com/html/drupal/modules/taxonomy/taxonomy.module on line 1151.
* warning: Illegal offset type in /home/webadmin/mytroops.com/html/drupal/modules/taxonomy/taxonomy.module on line 1154.
* : Object of class stdClass could not be converted to string in /home/webadmin/mytroops.com/html/drupal/sites/all/modules/pathauto/pathauto_node.inc on line 223.
* warning: Illegal offset type in isset or empty in /home/webadmin/mytroops.com/html/drupal/modules/taxonomy/taxonomy.module on line 1150.
* warning: Illegal offset type in /home/webadmin/mytroops.com/html/drupal/modules/taxonomy/taxonomy.module on line 1151.
* warning: Illegal offset type in /home/webadmin/mytroops.com/html/drupal/modules/taxonomy/taxonomy.module on line 1154.

I upgraded to pathauto 5.x-1.2 and installed token 5.x-1.7.

I'm able to replicate this problem when I change an unpublish date for an existing node that uses taxonomy and scheduler, then I run cron. For the first hit to the site after that, errors similar to those above are what I see.

Please advise if you have any ideas or if I can help with additional info/troubleshooting.

Thank you.

greggles’s picture

Well, this same symptom shows up for two different bugs. One is solved - the other is open.

Solved (affects 90% of users): http://drupal.org/node/92900
Open (affects users who use scheduler or leech or...): http://drupal.org/node/123001

There is a patch on the open one. Please review it.

mwander’s picture

Per your request, installed patch and reviewed it. #31 on URL you listed. Issue is resolved. Many thanks!