fkelly12054 / juicebox-kelly

Juicebox moving towards Drupal 9
GNU General Public License v2.0
1 stars 1 forks source link

Juicebox gallery based on views #22

Open fkelly12054 opened 3 years ago

fkelly12054 commented 3 years ago

Drupal 9 testing went fair. I could use a content type that had image fields in it, create a view to display them based on the instructions of the Drupal site and the webwash article, set the view to output to a page and then call up that page by it's url.

The content type had five images. #2 through 5 should show as thumbnails and do when I retrieve that content type. However, in the view only one image displays and then that same image is used as thumbnails in positions 2 through 5. x main image

y thumbnail 1 (main image x) z thumbnail 2 main image x a thumbnail main image a b thumbnail main image b

I'll try a ping capture later

fkelly12054 commented 3 years ago

in Drupal 8 I'm getting "The website encountered an unexpected error. Please try again later. Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in Exception->__construct() (line 368 of modules\juicebox\src\Plugin\views\style\JuiceboxDisplayStyle.php).

Exception->__construct('Empty or invalid field source @source detected for Juicebox view-based gallery.', Array) (Line: 368) Drupal\juicebox\Plugin\views\style\JuiceboxDisplayStyle->getItems('') (Line: 282) Drupal\juicebox\Plugin\views\style\JuiceboxDisplayStyle->buildGallery(Object) (Line: 257) Drupal\juicebox\Plugin\views\style\JuiceboxDisplayStyle->render(Array) (Line: 2170) Drupal\views\Plugin\views\display\DisplayPluginBase->render() (Line: 1533) Drupal\views\ViewExecutable->render() (Line: 183) Drupal\views\Plugin\views\display\Page->execute() (Line: 1630) Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 77) Drupal\views\Element\View::preRenderViewElement(Array) call_user_func_array(Array, Array) (Line: 100) Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725', 'silenced_deprecation', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 781) Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 372) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent{closure}() (Line: 573) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) call_user_func(Array, Object, 'kernel.view', Object) (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)"

when I try to display the view. I'll keep working on that but wanted to paste in the message while I have it.