Hi there, I have started to get this error message related to i18 on all me pages. I am not sure where and how this started.

warning: preg_match() expects parameter 2 to be string, array given in ../sites/all/modules/i18n/i18ntaxonomy/i18ntaxonomy.module on line 167.
warning: preg_match() expects parameter 2 to be string, array given in ../sites/all/modules/i18n/i18n.module on line 200.

you can see live on any page on my web site at http://mhe-krg.org/node/87

Can you please guide me to solve this issue? I have Drupal D6.22

Comments

chinita7’s picture

I get exactly the same error. I'm getting it after translating the node by "translate tab" on both the original node and the translated node. I have installed taxonomy module and content taxonomy module. However the content type translated and get error doesn't have any taxonomy or even CCK field.

alaa_aq’s picture

I got the same error, You can fix it by open the file i18n/i18ntaxonomy/i18ntaxonomy.module and go to line 167, the second parameter $path should have a string instead of array and you can change it to $path[1].
Open the file i18n/i18n.module and change the same parameter to $path[1] instead of $path.

chinita7’s picture

@ alaa_aq Thanks, the error is gone now.

mandreato’s picture

I had the same errors after upgrading PHP from 5.2.6-1+lenny16 to 5.3.3-7+squeeze9.
Solved by adding "[1]" in both files as suggested by #2.
Thanks !

joseph.olstad’s picture

Issue summary: View changes
Status: Active » Closed (outdated)