PHP Error in Logs - Sending array instead of variable

Created on 14 March 2025, 2 months ago

Problem/Motivation

PHP Error message shows up in Recent Log Messages -

Notice: Only variables should be passed by reference in Drupal\page_view_counter\Service\PVCCookieService->processCount() (line 101 of D:\Path\To\Web\Site\modules\contrib\page_view_counter\src\Service\PVCCookieService.php)

#0 D:\Path\To\Web\Site\core\includes\bootstrap.inc(166): _drupal_error_handler_real()
#1 D:\Path\To\Web\Site\modules\contrib\page_view_counter\src\Service\PVCCookieService.php(101): _drupal_error_handler()
#2 D:\Path\To\Web\Site\modules\contrib\page_view_counter\src\Service\PVCCookieService.php(44): Drupal\page_view_counter\Service\PVCCookieService->processCount()
#3 D:\Path\To\Web\Site\modules\contrib\page_view_counter\src\Controller\PageViewCounterController.php(49): Drupal\page_view_counter\Service\PVCCookieService->procesPvcCookie()
#4 [internal function]: Drupal\page_view_counter\Controller\PageViewCounterController->fetch()
#5 D:\Path\To\Web\Site\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#6 D:\Path\To\Web\Site\core\lib\Drupal\Core\Render\Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#7 D:\Path\To\Web\Site\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#8 D:\Path\To\Web\Site\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#9 D:\WebRoot\Volumaniacs\net\vendor\symfony\http-kernel\HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 D:\WebRoot\Volumaniacs\net\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#11 D:\Path\To\Web\Site\core\lib\Drupal\Core\StackMiddleware\Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#12 D:\Path\To\Web\Site\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#13 D:\Path\To\Web\Site\core\lib\Drupal\Core\StackMiddleware\ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#14 D:\Path\To\Web\Site\core\modules\big_pipe\src\StackMiddleware\ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#15 D:\Path\To\Web\Site\core\modules\page_cache\src\StackMiddleware\PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#16 D:\Path\To\Web\Site\core\modules\page_cache\src\StackMiddleware\PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#17 D:\Path\To\Web\Site\core\modules\ban\src\BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#18 D:\Path\To\Web\Site\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#19 D:\Path\To\Web\Site\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#20 D:\Path\To\Web\Site\core\lib\Drupal\Core\StackMiddleware\AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#21 D:\Path\To\Web\Site\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#22 D:\Path\To\Web\Site\core\lib\Drupal\Core\DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#23 D:\Path\To\Web\Site\index.php(19): Drupal\Core\DrupalKernel->handle()
#24 {main}

Drupal 10.4.4
PHP 8.2.5
Windows 2016 - IIS10

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Taps7734

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024