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

  1. Upgrading drupal/eu_cookie_compliance (1.28.0 => 1.29.0)
CommentFileSizeAuthor
#5 3553040-10-Error.patch2.34 KBjannakha

Comments

ronanrbr created an issue. See original summary.

atowl’s picture

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

  • tikaszvince committed 67996646 on 4.x
    #3553040 Error after updating eu_cookie_compliance (1.28.0 => 1.29.0)
    
tikaszvince’s picture

Status: Active » Needs review
Issue tags: +Vienna2025

Hi,
thank you
Please check the latest dev version.

jannakha’s picture

Version: 4.0.1 » 4.x-dev
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.34 KB

please 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

tikaszvince’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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