Fatal error: Uncaught TypeError: readdir(): supplied resource is not a valid Directory resource in /www/htdocs/w01e0eff/MODX/site/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php:485
Stack trace:
#0 /www/htdocs/w01e0eff/MODX/site/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php(485): readdir(Resource id #343)
#1 /www/htdocs/w01e0eff/MODX/site/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOFileCache.php(92): xPDO\Cache\xPDOCacheManager->deleteTree('/www/htdocs/w01...', Array)
#2 /www/htdocs/w01e0eff/MODX/site/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php(703): xPDO\Cache\xPDOFileCache->delete('MODX\\Revolution...', Array)
#3 /www/htdocs/w01e0eff/MODX/site/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php(2387): xPDO\Cache\xPDOCacheManager->delete('MODX\\Revolution...', Array)
#4 /www/htdocs/w01e0eff/MODX/site/core/vendor/xpdo/xpdo/src/xPDO/Om/xPDOObject.php(1493): xPDO\xPDO->toCache(Object(xPDO\Om\mysql\xPDOQuery), Object(MODX\Revolution\mysql\modSession), 151200, Array)
#5 /www/htdocs/w01e0eff/MODX/site/core/src/Revolution/modSessionHandler.php(126): xPDO\Om\xPDOObject->save(151200)
#6 [internal function]: MODX\Revolution\modSessionHandler->write('ec766096b709b32...', 'modx.user.0.res...')
#7 /www/htdocs/w01e0eff/MODX/site/core/src/Revolution/modResponse.php(184): session_write_close()
#8 /www/htdocs/w01e0eff/MODX/site/core/src/Revolution/modRequest.php(154): MODX\Revolution\modResponse->outputContent(Array)
#9 /www/htdocs/w01e0eff/MODX/site/core/src/Revolution/modRequest.php(138): MODX\Revolution\modRequest->prepareResponse()
#10 /www/htdocs/w01e0eff/MODX/site/core/src/Revolution/modX.php(1499): MODX\Revolution\modRequest->handleRequest()
#11 /www/htdocs/w01e0eff/MODX/site/index.php(63): MODX\Revolution\modX->handleRequest()
#12 {main}
thrown in /www/htdocs/w01e0eff/MODX/site/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php on line 485