Needs work
Project:
Internationalization Views
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2009 at 18:58 UTC
Updated:
14 Jul 2011 at 19:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
rcombes commentedWhile this is being fixed, you can make the following repair...
At line 74, change i18nviews.module (/sites/all/modules/i18n/i18nviews) to read...
By adding is_array just before line 74, the system will check that $data is valid. This unstuck my system and I hope it works for you.
Cheers
Roland Combes
Comment #2
quicksketchSeems like an i18n issue to me. Webform doesn't even have Views integration.
Comment #3
phpberlin commentedhi there
i guess its an issue to module finder ..
i dont use webforms and have the same problem
http://drupal.org/node/595160
@paul: thanks for the fixed code. but it doenst work for me..
if i insert the code the error is gone
and the output of the views taxonomie list is gone too
Comment #4
thomjjames commentedHi,
I can confirm this error also.
It only seems to happen with views that have taxonomy arguments or filters and only with "fields" row display. Using node row display does not cause the error.
If I get time i'll try to submit a patch for this.
Tom
Comment #5
rickvug commentedThis is now a bug report, not a support request.
Comment #6
Guty commentedI just run into same issue but with module version 6.x-1.3 and line 144.
Error message looks like this:
Fatal error: Cannot use object of type views_handler_field_node as array in /i18n/i18nviews/i18nviews.module on line 144
The repair mentioned in #1 fixes this issue. Seems to me that line 74 in version 6.x-1.2 is now line 144 in version 1.3.
This has nothing to do with module webform in this case.
Comment #7
maijs commentedIt's weird that there is an assumption that $data is an array as Views object there is exactly that - an object.
Comment #8
lord_of_freaks commentedWorks for me
Simple such as:
Just cast $data inside the functions into an array ... and it works!!!!
Comment #9
jose reyero commentedNot fixed in 1.4?
Moved to new project. See #788290: Fix views compatibility issues (2.x, 3.x), spin off i18nviews module?
Comment #10
blecheimer commentedthank you! #8 worked for me... 6.x-2.0
Comment #11
Junro commentedPatch #8 works with 2.0 branch.
Comment #12
YK85 commentedsusbscribing
Comment #13
perandre commentedI still get this error message when i go to a view in a non default language:
Fatal error: Cannot use object of type content_handler_field_multiple as array in /var/www/sites/all/modules/i18n/i18nviews/i18nviews.module on line 144
It only happens with one view in a panel, and only when using the url alias, it seems.
Comment #14
geaseAll these errors happen in i18nviews_views_pre_view function, isn't it? I'm getting the same for line 124 that reads
if ($data['id'] == 'term_node.name') {. This function doesn't seem to make any sense, except breaking the view. Translating taxonomy terms seems to be partially solved in #845616: i18n taxonomy: translating standard Views taxonomy term field.