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.
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
renatogComment #3
renatogHi @patrickmichael, how are you?
Thanks for reporting.
In attachment the patch with fix.
Good Work.
Regards.
Comment #5
renatogFixed.
Commited in dev branch: 8.x-1.x.
Regards.
Comment #6
PatrickMichael CreditAttribution: 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
renatogHi @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.