Hi, everyone. I used this dev version module on my 5.0 site. But it display a error code every time I wanna create a new gallery. See below:

* warning: Illegal offset type in isset or empty in /example/modules/taxonomy/taxonomy.module on line 1150.
* warning: Illegal offset type in /example/modules/taxonomy/taxonomy.module on line 1151.
* warning: Illegal offset type in /example/modules/taxonomy/taxonomy.module on line 1154.

It seems that there are some problems between gallery and taxonomy module. I can create a image node now, but it won't be shown in the gallery.

Comments

tky’s picture

Sorry, now I know that error code is caused by pathauto.module, not image gallery.
But the problem still there after I fixed the error code already.
I.e. when I added a new gallery on setting page, there is no correspond taxonomy term select list display in taxonomy list and add/content pages.

Any approach could fix this problem?

TKY

drewish’s picture

Status: Active » Closed (won't fix)

like you said it's a path auto problem.

Vallenwood’s picture

The solution to this is located here:

http://drupal.org/node/124701

It is indeed a pathauto problem, and still exists as of pathauto version 5.x-1.1. Future pathauto releases will probably fix it and make the patch unnecessary, but in the meantime, it's a very simple fix, just adding three lines of code to pathauto_node.inc at line 214:

		if(is_object($first_term_id)) {
			$first_term_id=$first_term_id->tid;
		}

I can confirm that this did in fact fix the problem for me. Remember: patch probably unecessary in future pathauto releases, so don't apply unless you know you have the latest pathauto version and it's still doing this.