I changed two taxonomy terms aliases to single words, and then got the following errors when trying to view the contents of a term of a vocabulary (for instance ...taxonomy/term/48):



   1.
         * warning: Invalid argument supplied for foreach() in ...handlers.inc on line 794.
   2.
          * warning: Invalid argument supplied for foreach() in ...common.inc on line 1593.
   3.
          * warning: Invalid argument supplied for foreach() in ...handlers.inc on line 794.
   4.
          * warning: Invalid argument supplied for foreach() in ...common.inc on line 1593.
   5.
          * warning: Invalid argument supplied for foreach() in ...handlers.inc on line 794.
   6.
          * warning: Invalid argument supplied for foreach() ...handlers.inc on line 794.
   7.
          * warning: Invalid argument supplied for foreach() in ...common.inc on line 1593.
   8.
          * warning: Invalid argument supplied for foreach() in ...handlers.inc on line 794.
   9.
          * warning: Invalid argument supplied for foreach() in ...handlers.inc on line 794.
  10.
          * warning: Invalid argument supplied for foreach() in ...common.inc on line 1593.

I tried changing the aliases in question, and I also disabled the pathauto module, but the errors still remain.

Help!

Comments

sam.e2’s picture

Here are the extended urls given in the error messages. They all relate to one or other of these:

/modules/views/includes/handlers.inc

/includes/common.inc

Freso’s picture

Project: Pathauto » Views (for Drupal 7)
Version: 6.x-1.1 » 6.x-2.x-dev
Component: Code » Miscellaneous
Category: bug » support

If the error persists after disabling Pathauto, it's probably not Pathauto causing them. Also, it's Views being referenced in the error messages, not Pathauto - so kicking over to Views.

merlinofchaos’s picture

Is this the bug where pathauto was creating aliases to taxonomy/term/ incorrectly? Check your url_alias table and see.

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

Yes, we'll need to know the "src" and "dst" columns from the url_alias table for the paths that cause this problem.

@merlinofchaos - I'm aware that in the past Pathauto and Views didn't work well together for taxonomy/term/TID/0/feed issues, but Pathauto now exposes control over the "0/feed" part of that. I think Views also has support for "0/feed" style items. If there is some other integration point that is weak then let me know so we can fix it.

sam.e2’s picture

we'll need to know the "src" and "dst" columns from the url_alias table for the paths that cause this problem

Here it is:

pid   	 src   	           dst
1 taxonomy/term/  taxonomy/term/1  	 
	 	 	2 	taxonomy/term/ 	taxonomy/term/95 	 
	 	 	3 	taxonomy/term/ 	taxonomy/term/96 	 
	 	 	4 	taxonomy/term/ 	taxonomy/term/3 	 
			5 	taxonomy/term/ 	taxonomy/term/4 	 
	 	 	6 	taxonomy/term/ 	taxonomy/term/5 	 
	 	 	7 	taxonomy/term/ 	taxonomy/term/6 	 
	 	 	8 	taxonomy/term/ 	taxonomy/term/97 	 
	 	 	9 	taxonomy/term/ 	taxonomy/term/8 	 
	 	 	10 	taxonomy/term/ 	taxonomy/term/9 	 
	 	 	11 	taxonomy/term/ 	taxonomy/term/10 	 
	 	 	12 	taxonomy/term/ 	taxonomy/term/11 	 
	 	 	13 	taxonomy/term/ 	taxonomy/term/12 	 
	 	 	14 	taxonomy/term/ 	taxonomy/term/13 	 
	 	 	15 	taxonomy/term/ 	taxonomy/term/14 	 
	 	 	16 	taxonomy/term/ 	taxonomy/term/15 	 
	 	 	17 	taxonomy/term/ 	taxonomy/term/16 	 
	 	 	18 	taxonomy/term/ 	taxonomy/term/17 	 
	 	 	19 	taxonomy/term/ 	taxonomy/term/18 	 
	 	 	20 	taxonomy/term/ 	taxonomy/term/19 	 
	 	 	21 	taxonomy/term/ 	taxonomy/term/20 	 
	 	 	22 	taxonomy/term/ 	taxonomy/term/21 	 
	 	 	23 	taxonomy/term/ 	taxonomy/term/22 	 
	 	 	24 	taxonomy/term/ 	taxonomy/term/23 	 
	 	 	25 	taxonomy/term/ 	taxonomy/term/24 	 
	 	 	26 	taxonomy/term/ 	taxonomy/term/25 	 
	 	 	27 	taxonomy/term/ 	taxonomy/term/26 	 
	 	 	28 	taxonomy/term/ 	taxonomy/term/27 	 
	 	 	29 	taxonomy/term/ 	taxonomy/term/28 	 
	 	 	30 	taxonomy/term/ 	taxonomy/term/29 	 
	 	 	31 	taxonomy/term/ 	taxonomy/term/30 	 
	 	 	32 	taxonomy/term/ 	taxonomy/term/31 	 
	 	 	33 	taxonomy/term/ 	taxonomy/term/32 	 
	 	 	34 	taxonomy/term/ 	taxonomy/term/33 	 
	 	 	35 	taxonomy/term/ 	taxonomy/term/34 	 
	 	 	36 	taxonomy/term/ 	taxonomy/term/35 	 
	 	 	37 	taxonomy/term/ 	taxonomy/term/36 	 
	 	 	38 	taxonomy/term/ 	taxonomy/term/37 	 
	 	 	39 	taxonomy/term/ 	taxonomy/term/38 	 
	 	 	40 	taxonomy/term/ 	taxonomy/term/39 	 
	 	 	41 	taxonomy/term/ 	taxonomy/term/40 	 
	 	 	42 	taxonomy/term/ 	taxonomy/term/41 	 
	 	 	43 	taxonomy/term/ 	taxonomy/term/42 	 
	 	 	44 	taxonomy/term/ 	taxonomy/term/43 	 
	 	 	45 	taxonomy/term/ 	taxonomy/term/44 	 
	 	 	46 	taxonomy/term/ 	taxonomy/term/45 	 
	 	 	47 	taxonomy/term/ 	taxonomy/term/46 	 
	 	 	48 	taxonomy/term/ 	taxonomy/term/47 	 
	 	 	49 	taxonomy/term/ 	taxonomy/term/48 	 
	 	 	50 	taxonomy/term/ 	taxonomy/term/49
If the error persists after disabling Pathauto, it's probably not Pathauto causing them. Also, it's Views being referenced in the error messages, not Pathauto - so kicking over to Views.

Fair enough, but the error only came about after I changed an alias in pathauto. The error may now lie in views somewhere, but it was initiated by pathauto, as far as I can tell.

Thanks everyone for your help!

greggles’s picture

Project: Views (for Drupal 7) » Pathauto
Version: 6.x-2.x-dev » 6.x-1.1

What is your pattern for taxonomies?

There is something wrong with those aliases. You'll need to delete them out and start over, probably after fixing your pattern and also upgrading to 6.x-1.x-dev (there was a bug in 6.x-1.1 that causes this specific error.

sam.e2’s picture

Thanks very much greggles - you saved my site! :)

I installed 6.x-1.x-dev, and then deleted the entries in the url_alias table via phpma. After that the normal categories and links worked again, and I was able to carefully create new aliases using patauto, and bulk update the existing ones.

Thus the problem is now solved for me.

Presumably it was caused by me entering aliases that were not specific enough to lead to an individual page, by mistake when I was originally configuring pathauto.

I found it quite an easy mistake to make, but hopefully this issue will help any others using the stable version of pathauto who encounter a similar problem.

Thanks everyone very much for your assistance! I have been saved!

greggles’s picture

Status: Postponed (maintainer needs more info) » Fixed

Glad to hear it's fixed.

Status: Fixed » Closed (fixed)

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