FileSessionHandler Fatal Error


#1

I just started getting this message when trying to access my dashboard:
UserFrosting Application Error
Fatal error: Class Illuminate\Session\FileSessionHandler contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::close) in [root_dir]/app/vendor/illuminate/session/FileSessionHandler.php on line 10

I’m stumped because I am not actively calling this class in any of my code and there’s no further traceback provided (it doesn’t look like the usual debugging screen, just a plain white page with this text).

I did update to 4.2.1 recently from 4.2.0, but I think it may likely be a change in the hosting server. Anyone seen this before/have an idea of what I could check on my server?


#2

If you’re on 4.2.1, that’s a good start. Maybe try to update composer dependencies (composer update)? You can also check which version of illuminate/session you have installed using composer info.

This is not called by your code, because session is handled by the base UF system.


#3

I updated the dependencies and can see that illumniate/session is at v5.4.36. Still not sure what causes this behavior – it is very sporadic


#4

I’ve starting seeing these errors again, this time sporadically interspersed with this new error:

Fatal error: Class Pimple\Container contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ArrayAccess::offsetExists) in /var/wwwroot-dev/html/alumni/app/vendor/pimple/pimple/src/Pimple/Container.php on line 39

It is printed to my browser window and also in the apache php error log, but no additional error information. There’s no additional error output in the userfrosting logs.

Still trying to pinpoint what causes this issue – any suggestions about places to check would be appreciated!