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

Sending newsletter do not work #130

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

Sending newsletter do not work #130

EurSylvain opened this issue Jul 12, 2019 · 2 comments

Comments

@EurSylvain
Copy link

Hello,

I'm using SilverStripe 4.4.1. The backend Newsletter seems to work fine, until I actually try to send a newsletter.

I'm clicking on "Add Newsletter". Fill test as subject etc. I'm choosing the Basic Template. Then I save the Newsletter. Everything work as expected so far.

I'm choosing a MailingList, then click on "Send", and I obtain the following error :

[Emergency] Uncaught LogicException: GridField HTML fragment "buttons-before-right" was given content, but not defined. Perhaps there is a supporting GridField component you need to add?
GET /admin/newsletter/SilverStripe-Newsletter-Model-Newsletter/EditForm/field/SilverStripe-Newsletter-Model-Newsletter/item/18/edit?gridState=%7B%22GridFieldSortableHeader%22%3A%7B%22SortColumn%22%3A%5B%5D%7D%2C%22GridFieldFilterHeader%22%3A%7B%22Columns%22%3Anull%7D%2C%22GridFieldPaginator%22%3A%7B%22currentPage%22%3A1%2C%22itemsPerPage%22%3A15%7D%7D

Line 528 in /var/www/dev.estep.eu/vendor/silverstripe/framework/src/Forms/GridField/GridField.php

Cheers

@micschk
Copy link

micschk commented Nov 28, 2019

Hi @EurSylvain dont know if this is still an issue but it could probably be resolved by adding a GridFieldButtonRow to the GridFieldConfig.

Eg. something like

$gridField->getConfig()->addComponent( new GridFieldButtonRow('before') );

@EurSylvain
Copy link
Author

Dear @micschk ,

Thank you very much for your input. For the sake of testing I modified src/Model/Newsletter.php and added in line 285

$gridFieldConfig->addComponent( new GridFieldButtonRow('before') );

I also had to put use SilverStripe\Forms\GridField\GridFieldButtonRow; on top of the file. After this modification, the error message disappeared. Unfortunately, it's still not working. Now when I press the send button, no crash, but the "Sent to" tab contains nobody. I can see the chosen mailing list in the Main tab however.

Basically this module is broken in its current state with silverstripe 4.X and it needs some deep work to make it usable again (see my others opened issue). I unfortunately don't have time to do it myself for the moment, so I'm sticking to silverstripe 3.7.

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

2 participants