Fatal error: Uncaught AssertionError: Trying to read from a previously fclose()'d resource. Do NOT manually fclose() resources the loop still has a reference to. in /var/www/localhost/vendor/amphp/byte-stream/src/ReadableResourceStream.php:118 Stack trace: #0 /var/www/localhost/vendor/amphp/byte-stream/src/ReadableResourceStream.php(118): assert(false, 'Trying to read ...') #1 /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(594): Amp\ByteStream\ReadableResourceStream::Amp\ByteStream\{closure}('j', Resource id #15) #2 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}() #3 /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(502): Fiber->resume() #4 /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(558): Revolt\EventLoop\Internal\AbstractDriver->invokeCallbacks() #5 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}() #6 /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(96): Fiber->start() #7 /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php(117): Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}() #8 /var/www/localhost/vendor/amphp/amp/src/Future.php(251): Revolt\EventLoop\Internal\DriverSuspension->suspend() #9 /var/www/localhost/vendor/amphp/redis/src/Connection/ReconnectingRedisLink.php(47): Amp\Future->await() #10 /var/www/localhost/vendor/amphp/redis/src/RedisClient.php(791): Amp\Redis\Connection\ReconnectingRedisLink->execute('evalsha', Array) #11 /var/www/localhost/vendor/tripsolutions/elogger-ng/src/Utils/LogBus/RedisLogBus.php(40): Amp\Redis\RedisClient->eval(' local key =...', Array, Array) #12 /var/www/localhost/classes/logger/class.etrip_logger.php(152): TripSolutions\ELoggerNG\Utils\LogBus\RedisLogBus->sendLogs(Array) #13 /var/www/localhost/classes/logger/class.etrip_logger.php(61): etrip_logger::toEloggerNg('Select from set...', 'a:2:{i:0;s:61:"...', 'db', 10) #14 /var/www/localhost/classes/etrip/class.etrip_db_object.php(146): etrip_logger::log('Select from set...', 'a:2:{i:0;s:61:"...', 'db', 10) #15 /var/www/localhost/classes/etrip/class.etrip_db_object.php(350): etrip_db_object::perform('SELECT id, mime...', Array, 'Select from set...', 10, NULL, false, NULL) #16 /var/www/localhost/classes/file/class.etrip_file.php(18): etrip_db_object::get_row('SELECT id, mime...', Array, 'Select from set...', 10) #17 /var/www/localhost/classes/etrip/class.etrip_object.php(27): etrip_file->load(126572) #18 /var/www/localhost/classes/file/class.etrip_file.php(14): etrip_object->__construct(Object(PgSql\Connection), 126572) #19 /var/www/localhost/webapp/file.php(56): etrip_file->__construct(Object(PgSql\Connection), 126572) #20 {main} Next Revolt\EventLoop\UncaughtThrowable: Uncaught AssertionError thrown in event loop callback Amp\ByteStream\ReadableResourceStream::Amp\ByteStream\{closure} defined in /var/www/localhost/vendor/amphp/byte-stream/src/ReadableResourceStream.php:96; use Revolt\EventLoop::setErrorHandler() to gracefully handle such exceptions: Trying to read from a previously fclose()'d resource. Do NOT manually fclose() resources the loop still has a reference to. in /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/UncaughtThrowable.php:13 Stack trace: #0 /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(405): Revolt\EventLoop\UncaughtThrowable::throwingCallback(Object(Closure), Object(AssertionError)) #1 /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php(127): Revolt\EventLoop\Internal\AbstractDriver::Revolt\EventLoop\Internal\{closure}() #2 /var/www/localhost/vendor/amphp/amp/src/Future.php(251): Revolt\EventLoop\Internal\DriverSuspension->suspend() #3 /var/www/localhost/vendor/amphp/redis/src/Connection/ReconnectingRedisLink.php(47): Amp\Future->await() #4 /var/www/localhost/vendor/amphp/redis/src/RedisClient.php(791): Amp\Redis\Connection\ReconnectingRedisLink->execute('evalsha', Array) #5 /var/www/localhost/vendor/tripsolutions/elogger-ng/src/Utils/LogBus/RedisLogBus.php(40): Amp\Redis\RedisClient->eval(' local key =...', Array, Array) #6 /var/www/localhost/classes/logger/class.etrip_logger.php(152): TripSolutions\ELoggerNG\Utils\LogBus\RedisLogBus->sendLogs(Array) #7 /var/www/localhost/classes/logger/class.etrip_logger.php(61): etrip_logger::toEloggerNg('Select from set...', 'a:2:{i:0;s:61:"...', 'db', 10) #8 /var/www/localhost/classes/etrip/class.etrip_db_object.php(146): etrip_logger::log('Select from set...', 'a:2:{i:0;s:61:"...', 'db', 10) #9 /var/www/localhost/classes/etrip/class.etrip_db_object.php(350): etrip_db_object::perform('SELECT id, mime...', Array, 'Select from set...', 10, NULL, false, NULL) #10 /var/www/localhost/classes/file/class.etrip_file.php(18): etrip_db_object::get_row('SELECT id, mime...', Array, 'Select from set...', 10) #11 /var/www/localhost/classes/etrip/class.etrip_object.php(27): etrip_file->load(126572) #12 /var/www/localhost/classes/file/class.etrip_file.php(14): etrip_object->__construct(Object(PgSql\Connection), 126572) #13 /var/www/localhost/webapp/file.php(56): etrip_file->__construct(Object(PgSql\Connection), 126572) #14 {main} thrown in /var/www/localhost/vendor/revolt/event-loop/src/EventLoop/UncaughtThrowable.php on line 13