Fixed Symfony\Component\Cache\Exception\InvalidArgumentException

AndyB

Well-known member
Affected version
XenForo Cloud 2.3.3
XenForo Cloud 2.3.3. Adding /tags/electrical/page-3 to forum URL creates 5 server errors.

Symfony\Component\Cache\Exception\InvalidArgumentException: Cache key "session_ivRdeqOWjOxZfUcqJn1CvY-QnVV0hRtQ-1 waitfor delay '0:0:15' -- " contains reserved characters "{}()/\@:". src/vendor/symfony/cache/CacheItem.php:167

Generated by: Unknown account Sep 28, 2024 at 6:43 PM

Stack trace

#0 src/vendor/symfony/cache/Traits/AbstractAdapterTrait.php(396): Symfony\Component\Cache\CacheItem::validateKey('session_ivRdeqO...')
#1 src/vendor/symfony/cache/Traits/AbstractAdapterTrait.php(214): Symfony\Component\Cache\Adapter\AbstractAdapter->getId('session_ivRdeqO...')
#2 src/XF/Session/CacheStorage.php(30): Symfony\Component\Cache\Adapter\AbstractAdapter->getItem('session_ivRdeqO...')
#3 src/XF/Session/Session.php(60): XF\Session\CacheStorage->getSession('ivRdeqOWjOxZfUc...')
#4 src/XF/App.php(1096): XF\Session\Session->start([invalid])
#5 src/XF/Container.php(33): XF\App->XF\{closure}(Object(XF\Container))
#6 src/XF/Pub/App.php(70): XF\Container->offsetGet('session.public')
#7 src/XF/Container.php(33): XF\Pub\App->XF\Pub\{closure}(Object(XF\Container))
#8 src/XF/App.php(3194): XF\Container->offsetGet('session')
#9 src/XF/Pub/App.php(194): XF\App->session()
#10 src/XF/App.php(2822): XF\Pub\App->start(true)
#11 src/XF.php(806): XF\App->run()
#12 index.php(23): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
["url"] => string(23) "/tags/electrical/page-3"
["referrer"] => string(45) "https://www.google.com/search?hl=en&q=testing"
["_GET"] => array(1) {
["/tags/electrical/page-3"] => string(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.4).

Change log:
Handle invalid session IDs more gracefully
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom