"unexpected error"

Created on 17 August 2021, over 3 years ago
Updated 26 January 2023, almost 2 years ago

I got the following error today when I tried out this module:
Core version 9.2.2

the module description says there is a configuration admin page, but I could not find one

[17-Aug-2021 17:14:30] Error: Call to a member function transformDimensions() on null in C:\wamp64\www\drupal9-dev\web\modules\contrib\css_aspect_ratio\src\AspectRatioManager.php on line 116 #0 C:\wamp64\www\drupal9-dev\web\modules\contrib\css_aspect_ratio\css_aspect_ratio.module(139): Drupal\css_aspect_ratio\AspectRatioManager->getResponsivePrefix(Object(Drupal\responsive_image\Entity\ResponsiveImageStyle), Array)
#1 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Theme\ThemeManager.php(287): css_aspect_ratio_preprocess_responsive_image_formatter(Array, 'responsive_imag...', Array)
#2 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(436): Drupal\Core\Theme\ThemeManager->render('responsive_imag...', Array)
#3 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#4 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Template\TwigExtension.php(450): Drupal\Core\Render\Renderer->render(Array)
#5 C:\wamp64\www\drupal9-dev\web\sites\default\files\php\twig\611b8bfe30873_field.html.twig_L2uQ1Tu2Fo_n7lfqvfwQ0Vaks\Ie_s4hTU6ef7clbO-gMdi80gRsKmEQN5fS_Q5r_waA0.php(125): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#6 C:\wamp64\www\drupal9-dev\vendor\twig\twig\src\Template.php(405): __TwigTemplate_9edec6595eb0f47e1c4e830b260188ba930bf42dac31e869d84a04618d753cc6->doDisplay(Array, Array)
#7 C:\wamp64\www\drupal9-dev\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#8 C:\wamp64\www\drupal9-dev\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array)
#9 C:\wamp64\www\drupal9-dev\web\core\themes\engines\twig\twig.engine(65): Twig\Template->render(Array)
#10 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('core/themes/cla...', Array)
#11 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(436): Drupal\Core\Theme\ThemeManager->render('field', Array)
#12 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(449): Drupal\Core\Render\Renderer->doRender(Array)
#13 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#14 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Template\TwigExtension.php(450): Drupal\Core\Render\Renderer->render(Array)
#15 C:\wamp64\www\drupal9-dev\web\sites\default\files\php\twig\611b8bfe30873_node.html.twig_VMnWNkjdYr3CHhGQ-yiXD-ml0\bBGyA4jxF0B_BtpDEOox7vpuS7UgVCh4bn69Fm2GlUs.php(110): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#16 C:\wamp64\www\drupal9-dev\vendor\twig\twig\src\Template.php(405): __TwigTemplate_00dd98b499b411caa9f2d3acf3a64058770864b4a760db940bd08cf2e279244e->doDisplay(Array, Array)
#17 C:\wamp64\www\drupal9-dev\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#18 C:\wamp64\www\drupal9-dev\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array)
#19 C:\wamp64\www\drupal9-dev\web\core\themes\engines\twig\twig.engine(65): Twig\Template->render(Array)
#20 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('core/themes/cla...', Array)
#21 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(436): Drupal\Core\Theme\ThemeManager->render('node', Array)
#22 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#23 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(241): Drupal\Core\Render\Renderer->render(Array, false)
#24 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\Renderer.php(578): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#25 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(242): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#26 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#27 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#28 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#29 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#30 C:\wamp64\www\drupal9-dev\vendor\symfony\http-kernel\HttpKernel.php(163): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#31 C:\wamp64\www\drupal9-dev\vendor\symfony\http-kernel\HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#32 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\StackMiddleware\Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 C:\wamp64\www\drupal9-dev\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(191): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 C:\wamp64\www\drupal9-dev\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#36 C:\wamp64\www\drupal9-dev\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#37 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#38 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#39 C:\wamp64\www\drupal9-dev\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#40 C:\wamp64\www\drupal9-dev\web\core\lib\Drupal\Core\DrupalKernel.php(716): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#41 C:\wamp64\www\drupal9-dev\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#42 {main}
🐛 Bug report
Status

Fixed

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024