I just did a fresh installation of latest version of SS. I was setting up a site and couldn't get Newsletter form getting work.
When I view the page I see this error..
FATAL ERROR: Invalid argument supplied for foreach()
At line 266 in /Applications/xampp/xamppfiles/htdocs/silverstripe/cms/code/Newsletter/SubscribeForm.php
SubscribeForm_Controller->Form()
call_user_func_array(Array,Array)
line 404 of ViewableData.php
ViewableData->XML_val(Form,,1)
line 203 of .cache.Applications.xampp.xamppfiles.htdocs.silverstripe.themes.blackcandy.templates.Layout.Page.ss
include(/Applications/xampp/xamppfiles/htdocs/silverstripe/silverstripe-cache/.cache.Applications.xampp.xamppfiles.htdocs.silverstripe.themes.blackcandy.templates.Layout.Page.ss)
line 197 of SSViewer.php
SSViewer->process(SubscribeForm_Controller)
line 189 of SSViewer.php
SSViewer->process(SubscribeForm_Controller)
line 296 of Controller.php
Controller->defaultAction(index,Array)
line 267 of Controller.php
Controller->run(Array)
line 22 of ModelAsController.php
ModelAsController->run(Array)
line 104 of Director.php
Director::direct(/newsletter/)
line 158 of main.php
Context
Debug (Debug::showError() in line 180 of Debug.php)
* form =
Form
o EmailFieldEmailField (EditableEmailField17: Email address : ) =
o TextFieldTextField (EditableTextField18: Your name : ) =
o TextareaFieldTextareaField (EditableTextField20: Address : ) =
o TextFieldTextField (EditableTextField21: Job title : ) =
o TextFieldTextField (EditableTextField22: Organisation : ) =
o HiddenFieldHiddenField (Referrer: : ) = http://localhost/silverstripe/
Validator
o EditableEmailField17
o EditableTextField18
* newsletterList =
* newsletters =