Hi, I am getting the following notice when using Colobox formatter within a view.
Notice: Undefined index: #entity_type in Drupal\colorbox\Plugin\Field\FieldFormatter\ColorboxFormatter->settingsForm() (line 184 of xx-site-xx/modules/contrib/colorbox/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php).
Using Colorbox 8.x-1.0 on Drupal 8.3.4
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | notice_undefined-2892746-3.patch | 2 KB | renatog |
Comments
Comment #2
renatog commentedComment #3
renatog commentedHi @patrickmichael, how are you?
Thanks for reporting.
In attachment the patch with fix.
Good Work.
Regards.
Comment #5
renatog commentedFixed.
Commited in dev branch: 8.x-1.x.
Regards.
Comment #6
patrickmichael commentedHi @RenatoG, am well thank you. Thank you for the quick response and great module.
It seems i am still having issues. Deployed the patch to 8.x-1.4 and logged this error:
Error: Call to a member function moduleExists() on null in Drupal\colorbox\Plugin\Field\FieldFormatter\ColorboxFormatter->settingsForm() (line 179 of xx-site-xx/modules/contrib/colorbox/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php)I then installed dev 8.x-1x and logged this:
TypeError: Argument 11 passed to Drupal\colorbox\Plugin\Field\FieldFormatter\ColorboxFormatter::__construct() must implement interface Drupal\Core\Extension\ModuleHandlerInterface, none given, called in xx-site-xx/modules/contrib/colorbox/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php on line 103 in Drupal\colorbox\Plugin\Field\FieldFormatter\ColorboxFormatter->__construct() (line 81 of xx-site-xx/modules/contrib/colorbox/src/Plugin/Field/FieldFormatter/ColorboxFormatter.php)Regards
Comment #7
renatog commentedHi @patrickmichael, you're welcome.
This problem has been fixed in the dev version. So just wait for the release of the new release and update.
Thank you very much.
Good Work and a Good Weekend.
Hugs.