- Issue created by @marpic
When the module is enabled and configured to send warning logs it sends lots of warning logs about the module itself struggling with view custom event registering.
Enable new_relic_rpm module
Enable warning log
Go to a page showing a view possibly with BETTER EXPOSED FILTER and/or ajax activated
(don't know if it's related to any complex and/or ajax enabled view)
Stack trace 1:
Warning: newrelic_record_custom_event(): newrelic_record_custom_event: expects parameter to be scalar, array given in Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter->recordCustomEvent() (line 59 of /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/modules/contrib/new_relic_rpm/src/ExtensionAdapter/ExtensionAdapter.php) #0 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/modules/contrib/new_relic_rpm/src/ExtensionAdapter/ExtensionAdapter.php(59): newrelic_record_custom_event()
#3 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/modules/contrib/new_relic_rpm/new_relic_rpm.module(94): Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter->recordCustomEvent()
#4 [internal function]: new_relic_rpm_views_post_render()
#5 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(426): call_user_func_array()
#6 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(405): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}()
#7 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(433): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#8 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/ViewExecutable.php(1545): Drupal\Core\Extension\ModuleHandler->invokeAll()
#9 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2459): Drupal\views\ViewExecutable->render()
#10 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/ViewExecutable.php(1667): Drupal\views\Plugin\views\display\DisplayPluginBase->preview()
#11 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/Controller/ViewAjaxController.php(194): Drupal\views\ViewExecutable->preview()
#12 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\views\Controller\ViewAjaxController->Drupal\views\Controller\{closure}()
#13 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/Controller/ViewAjaxController.php(195): Drupal\Core\Render\Renderer->executeInRenderContext()
#14 [internal function]: Drupal\views\Controller\ViewAjaxController->ajaxView()
#15 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#16 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#17 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#18 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#19 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#20 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#21 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#22 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\S
Stack trace 2:
Warning: newrelic_record_custom_event(): newrelic_record_custom_event: expects parameter to be scalar, array given in Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter->recordCustomEvent() (line 59 of /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/modules/contrib/new_relic_rpm/src/ExtensionAdapter/ExtensionAdapter.php) #0 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/modules/contrib/new_relic_rpm/src/ExtensionAdapter/ExtensionAdapter.php(59): newrelic_record_custom_event()
#3 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/modules/contrib/new_relic_rpm/new_relic_rpm.module(94): Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter->recordCustomEvent()
#4 [internal function]: new_relic_rpm_views_post_render()
#5 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(426): call_user_func_array()
#6 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(405): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}()
#7 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(433): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#8 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/ViewExecutable.php(1545): Drupal\Core\Extension\ModuleHandler->invokeAll()
#9 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/Plugin/views/display/Block.php(131): Drupal\views\ViewExecutable->render()
#10 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/ViewExecutable.php(1635): Drupal\views\Plugin\views\display\Block->execute()
#11 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay()
#12 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement()
#13 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php(106): Drupal\views\Plugin\Block\ViewsBlock->build()
#14 [internal function]: Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray->onBuildRender()
#15 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#16 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/layout_builder/src/SectionComponent.php(90): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#17 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/layout_builder/src/Section.php(88): Drupal\layout_builder\SectionComponent->toRenderArray()
#18 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(316): Drupal\layout_builder\Section->toRenderArray()
#19 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(275): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildSections()
#20 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(340): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple()
#21 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/modules/node/src/NodeViewBuilder.php(24): Drupal\Core\Entity\EntityViewBuilder->buildComponents()
#22 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(282): Drupal\node\NodeViewBuilder->buildComponents()
#23 /home/839509.cloudwaysapps.com/syvtdcrgty/public_html/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(239):
Active
2.1
Code