Problem/Motivation
Error after updating eu_cookie_compliance (1.28.0 => 1.29.0)
The website encountered an unexpected error. Try again later.
Error: Call to undefined function Drupal\hotjar\_eu_cookie_compliance_explode_multiple_lines() in Drupal\hotjar\SnippetAccess->cookieConstentCheck() (line 195 of modules/contrib/hotjar/src/SnippetAccess.php).
Drupal\hotjar\SnippetAccess->check() (Line: 39)
hotjar_page_attachments(Array) (Line: 311)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}(Object, 'hotjar') (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('page_attachments', Object) (Line: 308)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 285)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 637)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 284)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
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(Object, 'kernel.view') (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 44)
Drupal\redirect_after_login\RedirectMiddleware->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 74)
Drupal\bca_warmer\Middleware\CacheWarmerAuthMiddleware->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Steps to reproduce
- Upgrading drupal/eu_cookie_compliance (1.28.0 => 1.29.0)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3553040-10-Error.patch | 2.34 KB | jannakha |
Comments
Comment #2
atowl commentedHi Maintainers,
The issue is here Drupal\hotjar\_eu_cookie_compliance_explode_multiple_lines() ...
Eu cookie compliance module removed this function from the module in version 1.29, and pushed it into a service. A change will need to be made to accommodate this error. In the mean time i'd recommend the users not upgrade to the 1.29 version of the eu cookie compliance module.
Thanks
Grant (eu cookie compliance module maintainer)
Comment #4
tikaszvince commentedHi,
thank you
Please check the latest dev version.
Comment #5
jannakha commentedplease use a proper development process (do not commit directly to dev branch, create a fork and then a merge request): https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...
patch from #3 commit attached and applies to Drupal 10.5 and fixes the issue
Comment #6
tikaszvince commented