Closed (fixed)
Project:
Pathauto
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2007 at 19:43 UTC
Updated:
19 Jun 2007 at 22:11 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | pathauto_illegal_offset_fix.patch | 428 bytes | HorsePunchKid |
Comments
Comment #1
jt6919 commentedany help with this pathauto problem would be greatly appreciated! thx!
Comment #2
Mojah commentedThis looks simillar so I won't open up another issue....
Here's the error...
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.
Comment #3
jt6919 commentedany ideas on how to address this issue? all help appreciated!
Comment #4
gregglesHello - 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?
Comment #5
gregglesAny chance you are using scheduler/workflow?
Comment #6
jt6919 commentedno, I don't use scheduler/workflow. For me, I use leech. When parsing feeds (in) I get those errors.
Comment #7
gregglesaha!
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 ;)
Comment #8
HorsePunchKid commentedI 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?
Comment #9
gregglesI 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.
Comment #10
gregglesPardon 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?
Comment #11
gregglesthis 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.
Comment #12
czarphanguye commentedpathauto_illegal_offset_fix.patch (428 bytes) works. Thank you!
Comment #13
(not verified) commentedComment #14
mwander commentedgreggles:
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.
Comment #15
gregglesWell, 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.
Comment #16
mwander commentedPer your request, installed patch and reviewed it. #31 on URL you listed. Issue is resolved. Many thanks!