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

CommentFileSizeAuthor
#3 notice_undefined-2892746-3.patch2 KBrenatog
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

PatrickMichael created an issue. See original summary.

renatog’s picture

Assigned: Unassigned » renatog
Issue tags: +ciandt-contrib
renatog’s picture

Hi @patrickmichael, how are you?

Thanks for reporting.

In attachment the patch with fix.

Good Work.

Regards.

  • RenatoG committed cd54d14 on 8.x-1.x
    Issue #2892746 by PatrickMichael, RenatoG: Notice: Undefined index: #...
renatog’s picture

Status: Active » Fixed

Fixed.

Commited in dev branch: 8.x-1.x.

Regards.

PatrickMichael’s picture

Hi @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

renatog’s picture

Hi @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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.