Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newsletter formular subscription error #129

Open
EurSylvain opened this issue Jul 12, 2019 · 0 comments
Open

Newsletter formular subscription error #129

EurSylvain opened this issue Jul 12, 2019 · 0 comments

Comments

@EurSylvain
Copy link

Hi,
I'm using Silverstripe 4.4.1. In the following examples, I've moved the registration newsletter formular to /library/registration/, but it's still using the default "Newsletter Subscription Page" page type.

When submitting the newsletter registration formular, there's some errors :

[Emergency] Uncaught Error: Class 'SilverStripe\Newsletter\Form\SubscriptionPage' not found
POST /library/registration/Form/
 
Line 81 in /var/www/(..)/vendor/silverstripe/newsletter/src/Form/SubscriptionForm.php

Fine, it lacks a use on top. I had a "use SilverStripe\Newsletter\PageTypes\SubscriptionPage;" in this code, and then resubmit again. Then :

[Emergency] Uncaught Error: Class 'SilverStripe\Newsletter\Form\ArrayList' not found
POST /library/registration/Form/

Line 91 in /var/www/(..)/vendor/silverstripe/newsletter/src/Form/SubscriptionForm.php

Ok another use error. I'm adding use SilverStripe\ORM\ArrayList; on top of the file and resubmit :

[Emergency] Uncaught Error: Call to a member function FieldList() on null
POST /library/registration/Form/

Line 117 in /var/www/(..)/vendor/silverstripe/newsletter/src/Form/SubscriptionForm.php

For reference, line 117 is $recipientInfoSection = $form->Fields()->fieldByName('MemberInfoSection')->FieldList();

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant