Closed (fixed)
Project:
Internationalization
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2011 at 08:57 UTC
Updated:
8 Mar 2012 at 14:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amalaer commentedsame here with views 7.x-3.0-alpha1
Comment #2
MrRoxy commentedsame here with views 7.x-3.0-alpha1
Comment #3
erdembey commentedLet me share a possible solution to this problem;
Change the code below in "modules\i18n\i18n_select\i18n_select.module" line 118;
if (is_array($condition) && isset($condition['field']) && ($condition['field'] == $field_name || $condition['field'] == $table_field)) {with
if (is_array($condition) && isset($condition['field']) && is_string($condition['field']) && ($condition['field'] == $field_name || $condition['field'] == $table_field)) {it seems it's working without a problem.
Can anyone confirm this ?
Comment #4
janeks commentedIt worked for me.
Comment #5
Jerome F commentedI ran a patch with #3 because it worked for me too, I finally can preview my views again :-) thanks.
Comment #6
ytsurksame here - #3 solves the error
Comment #7
nils_r commented#3 works for me too.
Comment #8
Blooniverse commentedTested patch#5 respectively #3 with 'i18n 7.x-1.x-dev (2011-Feb-14), v1.1.2.3' in combination with ~80 additional/optional modules: This works fine!
Remark: Line of mutation/modification has changed in this version from 115 to 118!
Comment #9
Blooniverse commented[EDIT:del]
... by the way, the language switcher block doesn't want to show up after activation.Comment #10
Blooniverse commentedComment #11
erdembey commentedThis problem still exist in 7.x-1.0-alpha3 release ...
I've applied the patch to the line 209 in the same file of 7.x-1.0-alpha3 release ... Problem moved from line 118 to line 209.
Comment #12
betz commentedpatch on #5 did work out for me
Comment #13
jose reyero commentedFixed on github. Will be in next alpha.
Thanks.
However I'd like to know why when enabling Views, that 'field' is not a string anymore, maybe we should file an issue for Views?
Comment #14
Blooniverse commented@Jose Reyero: Great, thank you! Please don't forget to update the coming dev version as well.
Concerning the array content of
$condition['field']-- I don't get your question, sorry. Do you mean, when you enable the 'Views' module,fieldis not a string anymore? Is that really possible?Comment #15
jose reyero commented@the_phi,
Yes, that's what was causing the error, it seems to happen only with views
Comment #16
Blooniverse commented... in this case I would issue/file a bug report, yes.
Comment #18
Anonymous (not verified) commentedStill getting the same problem in 7.x-1.4. with patch http://drupal.org/files/i18n-clean_select_api-1437932-25.patch
Cannot directly apply the patch in this thread as line:
if (is_array($condition) && isset($condition['field']) && ($condition['field'] == $field_name || $condition['field'] == $table_field)) {
has changed in 7.x-1.4 to:
$conditions =& $query->conditions();
foreach ($conditions as $index => $condition) {
if (is_array($condition) && isset($condition['field'])) {
if (strpos($condition['field'], '.') === FALSE) {
if ($table_alias) {
// Change the condition to include a table alias.
$conditions[$index]['field'] = $table_alias . '.' . $condition['field'];
}
else {
// We won't risk joining anything here.
return FALSE;
}
Note: Choosing "Only the listed pages" instead of "All pages except those listed" in Module Multilingual select removes error.
Comment #19
jose reyero commentedDo you mean this is happening with latest -dev version? (which has all that patches applied)
Comment #20
Anonymous (not verified) commentedHi Jose: I am using a patched 7.x-1.4 as per my earlier note. I'll go ahead & try the dev version. Site is not operational yet anyway. Thanks again for all the hard work on this module!
Comment #21
jose reyero commentedThen please let's leave this closed until you test latest version.
Comment #22
grozozo commentedHi!
It seem that the patch commited for this issue: http://drupal.org/node/1437932 lead to this error again.
I had the issue from the link, I passed to dev version with the patch, that fixed the issue but recreate this one.
And as the code as changed, the solution is not applicable.
BTW I'm on drupal 7.12 with internationalization 7.x-1.4+5-dev
Comment #23
grozozo commentedI have to add that this error appear when I make a search on my drupal.
I reopen the issue, it seem relevant as I'm not the only one to have it...
Comment #24
jose reyero commentedRight, there was a wrong operator when checking the query.
Fixed again.
Comment #25
grozozo commentednow working with 7.x-1.4+6-dev
Thx Jose, you're doing great work :)