Closed (fixed)
Project:
Internationalization
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2008 at 16:27 UTC
Updated:
10 Oct 2008 at 16:32 UTC
warning: Invalid argument supplied for foreach() in \sites\all\modules\i18n\i18nsync\i18nsync.module on line 74.
possible fix :
if (!empty($data['#options'])) {
foreach ($data['#options'] as $field => $name) {
$form['workflow']['i18n']['i18nsync_nodeapi'][$field] = array(
'#group_title' => $title,
'#title' => $name,
'#type' => 'checkbox',
'#default_value' => in_array($field, $current),
'#theme' => 'i18nsync_workflow_checkbox',
);
$title = '';
}
}
Comments
Comment #1
errement commentedI am having same problem:
warning: Invalid argument supplied for foreach() in ../sites/all/modules/i18n/i18nsync/i18nsync.module on line 74.It shows when i go "admin/content/types" and choose any type, the wierd thing is that it doesn't show when i select the "Story" content type.
Shows on:
-FAQ
-Page
-Poll
-Recipe
-Webform
Doesn't show on:
-Story
Any help?
Any idea why is it showing?
I am new!!
Comment #2
Aldus commentedI also have this problem. Has someone tried the fix above?
Comment #3
errement commented@gattoplano,
I did, you?
Anybody else??
vjacquin on #1 (where are you vjacquin) gave us this:
And the result = BLANK screen, i wonder why?!
He forgot to write "}" at the end!!
So it should be:
Just add "}" and his "patch" will work!! with no warnings.
Somebody should review it and respond here!!
Anyway, something happens with either FAQ, Poll, Recipe or Webform as this only happens —to me— with them enabled. My other dev sites have no warnings —also have no FAQ, Poll, Recipe or Webform modules enabled—. I have no time to try to search what happens, but if somebody do, start with these modules!
Cheers!!
Comment #4
grub commentedI get the same error and of the modules you mentioned I only have FAQ installed, so perhaps that is where to look. Thanks for the patch and fix, works fine here using i18n 6.x-1.0-beta3.
Comment #5
portulacathank you errement, your patch removes the error message
Comment #6
jose reyero commentedThanks
Comment #7
errement commented@ all ppl,
This is not my patch, it's from vjacquin (who created this issue, i think) don't know where is he??
and i wonder why doesn't he pass by to say something.
What i did is just make it easier for all of us to read with highlighted PHP tags!! and add the "
}" at the end.This is new for me, but i start to like. Drupal is huge!!
;-))
N.B.: Thank you Jose A Reyero for your GREAT modules!! I appreciate, a lot!!
Comment #8
vjacquin commentedI'm back !
I'm happy it helped.
Cya
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.