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

Fatal error when creating a new AddThis Field #54

Open
churel opened this issue Aug 18, 2016 · 1 comment
Open

Fatal error when creating a new AddThis Field #54

churel opened this issue Aug 18, 2016 · 1 comment

Comments

@churel
Copy link

churel commented Aug 18, 2016

Hello,

I've try this module for drupal 8 (8.1.8) and when I create a addthis field I've go this fatal error :
Fatal error: Declaration of Drupal\addthis\Plugin\Field\FieldFormatter\AddThisFormatter::viewElements() must be compatible with Drupal\Core\Field\FormatterInterface::viewElements(Drupal\Core\Field\FieldItemListInterface $items, $langcode) in /modules/addthis/src/Plugin/Field/FieldFormatter/AddThisFormatter.php on line 39

@RubenPHP
Copy link

It seems that this fork resolved this problem: https://github.com/churel/addthis

The problem is that the signature of FormatterInterface::viewElements function has changed, and now it needs a second parameter ($language).

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