Adds page type for a MailChimp signup form. Form fields are read automatically from the MailChimp list.
BSD 3-Clause "New" or "Revised" License
4
stars
6
forks
source link
Missing setupFormErrors causes fatal error on template #4
Closed
WoodrowShigeru closed 5 years ago
Cannot view the MailChimp Signup Form page that I've set up.
[Emergency] Uncaught BadMethodCallException: Object->__call(): the method 'setupFormErrors' does not exist on 'SilverStripe\Forms\Form'
The SilverStripe 4.0.0 change log describes:
setupFormErrors renamed to restoreFormState
.Which is why replacing
$form->setupFormErrors();
with$form->restoreFormState();
insrc/Pages/SignupPageController.php
seems to solve this issue.Are you sure this add-on is compatible with SS4?
Using PHP 7.2. Excerpt from my composer.json: