I tried install FAQ module in SS 2.3.1.
I installed MultiSelectField v.0.2 and installed Faqs V0.5.
But I get error when I create 'Faq Page' in Admin. 'Faqs Holder' is OK.
Error as follow;
ERROR [Warning]: Invalid argument supplied for foreach()
IN POST /ss/admin/getitem?ID=23&ajax=1
Line 33 in /var/www/ss/multiselectfield/code/MultiSelectField.php
Source
======
24: 'class'=>$this->extraClass()
25: );
26: if ($this->disabled)
27: $attributes['disabled'] = 'disabled';
28:
29: // Build options
30: $content = '';
31: $source = $this->source;
32: $value = $this->getSelected();
* 33: foreach($source as $index => $item) {
34: $selected = (isset($value[$index])) ? 'selected' : '';
35: $content .= "<option $selected value=\"$index\">$item</option>";
36: }
37:
38: return $this->createTag('select', $attributes, $content);
39: }
<ul>MultiSelectField->Field()
call_user_func_array(Array,Array)
line 408 of ViewableData.php
ViewableData->XML_val(Field)
line 370 of FormField.php
FormField->FieldHolder()
call_user_func_array(Array,Array)
line 408 of ViewableData.php
How can I fix this problem ?
Thanks...
ViewableData->XML_val(FieldHolder,,1)
line 74 of .cache.var.www.ss.sapphire.templates.TabSetFieldHolder.ss
include(/tmp/silverstripe-cache-var-www-ss/.cache.var.www.ss.sapphire.templates.TabSetFieldHolder.ss)
line 354 of SSViewer.php