userHasSelectedRoles() argument must be of type array|object, null given

Created on 11 July 2024, 6 months ago
Updated 1 August 2024, 5 months ago
Warning: foreach() argument must be of type array|object, null given in Drupal\advanced_pwa\Controller\AdvancedpwaController->userHasSelectedRoles() (line 319 of /var/www/vhosts/mysite.com/httpdocs/web/modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php)
#0 /var/www/vhosts/mysite.com/httpdocs/web/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 /var/www/vhosts/mysite.com/httpdocs/web/modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php(319): _drupal_error_handler()
#2 /var/www/vhosts/mysite.com/httpdocs/web/modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php(290): Drupal\advanced_pwa\Controller\AdvancedpwaController->userHasSelectedRoles()
#3 [internal function]: Drupal\advanced_pwa\Controller\AdvancedpwaController->settings()
#4 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#5 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#6 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#7 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#8 /var/www/vhosts/mysite.com/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /var/www/vhosts/mysite.com/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#10 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#11 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#12 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#13 /var/www/vhosts/mysite.com/httpdocs/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#14 /var/www/vhosts/mysite.com/httpdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#15 /var/www/vhosts/mysite.com/httpdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch()
#16 /var/www/vhosts/mysite.com/httpdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup()
#17 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#18 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#19 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#20 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#21 /var/www/vhosts/mysite.com/httpdocs/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#22 /var/www/vhosts/mysite.com/httpdocs/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#23 {main}
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom 2dareis2do

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