Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the latest version of Simplenews there is missing the GetEntity in the MailEntity.php file.
I have updated the Module Simplenews to version 8.x-2.x-dev 5 Oct 2019.
I always get the following error:
Call to undefined method Drupal\simplenews\Mail\MailEntity::getEntity() in Drupal\simplenews_stats\SimplenewsStatsMail->addImageTracker() (line 148 of modules/contrib/simplenews_stats/src/SimplenewsStatsMail.php)
Is there a solution to solve this problem?
Thanks
Kind regards Sisto Carta
Comment | File | Size | Author |
---|---|---|---|
#6 | 3086487-6.patch | 1.6 KB | flocondetoile |
Comments
Comment #2
Damien Laguerre CreditAttribution: Damien Laguerre commentedI've to make the module compatible with the V2 branch.
I'll take a look to fix this issue this week if I find the time.
Regards.
Comment #3
sistocarta CreditAttribution: sistocarta commentedThank u, for ur quick answer.
Really looking forward to it.
Comment #4
flocondetoileLooks like replacing
MailInterface::getEntity()
byMailInterface::getIssue()
should do the trick.For reference, the change records published for the 2.x branch.
https://www.drupal.org/node/3062343
I wonder if a 2.x branch woudn't be better, to track the same branch of simplenews ?
Comment #5
flocondetoileAlso, from the simplenews alpha2 release notes.
The 8.x-2.x branch of simplenews is in a big refactoring phase.
Comment #6
flocondetoileI doubt that this is sufficient (I don't have test yet simplenews 8.x-2.x) but you could try this patch as a first step.
Comment #7
flocondetoileComment #8
Damien Laguerre CreditAttribution: Damien Laguerre commentedI created a 2.x branch to follow the simplenews version. But for now, it's not a good idea to use the 2.x branch of simplenews in production.
I did tests with the latest 8.x-2.0-alpha2 (not the -dev) and everything works fine now.
Fortunately, the module uses a small part of the simplenews code.