I cannot get the colorbox popup to engage in a views display.

I have the title field of the node formatted using the 'Colorbox FF' formatter.

Style of Colorbox : Default
Link Colorbox to : Content

Width : 500

Height : 500

Iframe is unchecked

Anchor and Class fields are empty.

When I click on the title link in the view, it just leads to the page for the content, without the Colorbox frame.

I have tried combos of putting 'px' after the width and height values, and checking iframe. Same result.

There is a LONG error reported in Watchdog:

Notice: Undefined index: #entity_type in Drupal\colorbox_field_formatter\Plugin\Field\FieldFormatter\ColorboxFieldFormatter->settingsForm() (line 93 of /home/xxx/public_html/cc/modules/colorbox_field_formatter/src/Plugin/Field/FieldFormatter/ColorboxFieldFormatter.php) #0 /home/xxx/public_html/cc/core/includes/bootstrap.inc(548): _drupal_error_handler_real(8, 'Undefined index...', '/home/xxx/p...', 93, Array) #1 /home/xxx/public_html/cc/modules/colorbox_field_formatter/src/Plugin/Field/FieldFormatter/ColorboxFieldFormatter.php(93): _drupal_error_handler(8, 'Undefined index...', '/home/xxx/p...', 93, Array) #2 /home/xxx/public_html/cc/core/modules/views/src/Plugin/views/field/Field.php(477): Drupal\colorbox_field_formatter\Plugin\Field\FieldFormatter\ColorboxFieldFormatter->settingsForm(Array, Object(Drupal\Core\Form\FormState)) #3 /home/xxx/public_html/cc/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(165): Drupal\views\Plugin\views\field\Field->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState)) #4 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->buildForm(Array, Object(Drupal\Core\Form\FormState)) #5 /home/xxx/public_html/cc/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array) #6 /home/xxx/public_html/cc/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\Core\Form\FormBuilder->retrieveForm('views_ui_config...', Object(Drupal\Core\Form\FormState)) #7 /home/xxx/public_html/cc/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(212): Drupal\Core\Form\FormBuilder->buildForm('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #8 /home/xxx/public_html/cc/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}() #9 /home/xxx/public_html/cc/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(214): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #10 /home/xxx/public_html/cc/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(123): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #11 /home/xxx/public_html/cc/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(37): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax') #12 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax', 'field', 'title') #13 /home/xxx/public_html/cc/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #14 /home/xxx/public_html/cc/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #15 /home/xxx/public_html/cc/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #16 /home/xxx/public_html/cc/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #17 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #18 /home/xxx/public_html/cc/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) #19 /home/xxx/public_html/cc/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #20 /home/xxx/public_html/cc/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /home/xxx/public_html/cc/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /home/xxx/public_html/cc/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/xxx/public_html/cc/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/xxx/public_html/cc/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/xxx/public_html/cc/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/xxx/public_html/cc/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /home/xxx/public_html/cc/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /home/xxx/public_html/cc/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #29 {main}.

I cannot find a README file, the Help section has no information, and I haven't seen anything in the issue queue that addresses this.

Does anyone have any ideas of what I am doing wrong in the config? Or is this a bug?

Thanks

Comments

RKopacz created an issue. See original summary.

  • jurgenhaas committed 915f447 on 8.x-1.x
    Issue #2837713: Can't get the popup to work in a views field
    

  • jurgenhaas committed 7f557eb on 8.x-1.x
    Issue #2837713: Use token only if entity type is defined
    
jurgenhaas’s picture

Version: 8.x-1.0-alpha1 » 8.x-1.x-dev
Component: Documentation » Code
Assigned: Unassigned » jurgenhaas
Category: Support request » Bug report
Status: Active » Needs review

Thanks @RKopacz for reporting this. The problem has been that the colorbox libraries have not been added to the page and your error logf above is totally unrelated to the problem. But I've fixed that at the same time as well.

Please try the latest dev release, it should now be working.

RKopacz’s picture

@jurgenhaas Thank you for your speedy reaction. As for the error log, well, Hmmmm I will try to figure out what's up with that. I will test the dev version within the next 12 hours.

jurgenhaas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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