I'm having problems using TVI module with i18n. I'm getting the following error when I try to view the pages in a different language:
Fatal error: Cannot use object of type views_handler_field_node as array in /home/jrhubarb/drupal-6/sites/winningcolours.com/modules/i18n/i18nviews/i18nviews.module on line 144
Here's a more extensive overview of the problem:
I created a content type called "Forum Post" and a vocabulary called "Tags". This allows users to tag forum posts with a comma separated list of terms.
On the Path module configuration page, under "Automated alias settings - Taxonomy term path settings", I have the following "Pattern for all Tags paths" defined:
forum/[vocab-raw]/[catpath-raw]
This effectively maps my custom "forum/tags/[term]" paths to the default "taxonomy/term/[number]" paths, etc.
I then installed the TVI module and created a new Views Display (Page) with the following arguments:
Taxonomy: Term ID (with depth)
Taxonomy: Term ID depth modifier
And the following Path:
forum/tags/%
I then edited the "Tags" vocabulary and configured the "Views usage" settings to render using my new Views Page.
Everything works fine in English (my default language), but I'm running into translation problems. The following URL works fine:
forum/tags/paint-messes
But when I click on the language switcher link to view the page in French, I get the following error:
fr/forum/tags/paint-messes
Fatal error: Cannot use object of type views_handler_field_node as array in /home/jrhubarb/drupal-6/sites/winningcolours.com/modules/i18n/i18nviews/i18nviews.module on line 144
Does the problem lie with my settings, or the TVI module? Is the TVI module fully compatible with i18n?
Thanks!
Comments
Comment #1
derekwebb1 commentedSounds like an arguments issue... We are not checking for the presence of i18n and so it is likely that the wrong arguments may be getting pulled out of the path. Then... Boink!
Any time saving advice on dealing with this from anyone out there (the cool people) would be appreciated.
Cheers, Derek
Comment #2
Anonymous (not verified) commentedThanks deeporange1.
I'm a little confused because the error is coming from the i18nviews module and not the TVI module. This leads me to believe that the TVI module is still able to invoke the View, despite the fact that it's not checking for the presence of the language path prefix. Is the TVI module passing incorrect arguments to the View?
I'm trying to identify the origin of the error, so I can do some troubleshooting and testing.
The error is being thrown on line 144 of i18nviews.module, which is inside a function called i18nviews_views_pre_view. There are some code comments inside this function, which say the following:
Is this the cause of the error, or does the problem lie in the TVI module? Is anyone planning to add i18n support to the TVI module?
Comment #3
derekwebb1 commentedThat would be my guess.
I have not had the kind of time lately to mess w i18n... plethora-o-deadlines and all that. We are definitely interested in finding qualified co-maintainers too.
Cheers, Derek
Comment #4
perke+1 subscribing... wish i can contribute more than plain subscribe check
edit: upgrading to latest i18n (6.x-1.5) fixed this issue
Comment #5
derekwebb1 commentedThat's interesting Perke! I am unable to duplicate an issue at #672050 (i think these issues may have been related somehow), and I think it may be because I am using the 6.x-1.5 versions of i18n.
I set up a test env for this a couple nights ago and just can get it to give me any errors...
Cheers, Derek
PS: I can use other languages eg. http://example.com/fr/whatever... without any issues at all.
Comment #6
duaelfrSeems to be fixed by the last version of i18n, please reopen if not.