Fixed sort(): Argument #1 ($array) must be of type array, null given

Nirjonadda

Well-known member
Affected version
2.3.2
Server error log:

Code:
TypeError: sort(): Argument #1 ($array) must be of type array, null given src/XF/PageCache.php:283

Generated by: Unknown account Aug 31, 2024 at 9:00 PM

Stack trace

#0 src/XF/PageCache.php(283): sort(NULL)
#1 src/XF/PageCache.php(249): XF\PageCache->generateCacheId()
#2 src/XF/PageCache.php(142): XF\PageCache->getCacheId()
#3 src/XF/Pub/App.php(184): XF\PageCache->getCachedPage(Object(XF\Pub\App))
#4 src/XF/App.php(2809): XF\Pub\App->start(true)
#5 src/XF.php(802): XF\App->run()
#6 index.php(23): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state

array(4) {
  ["url"] => string(1) "/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.3).

Change log:
Handle unexpected values in cookie consent cookie
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom