A
A
alestro2016-07-11 20:39:57
PHP
alestro, 2016-07-11 20:39:57

Session throws fatal error, how to fix?

After several refreshes of the page, it gives the following:
Fatal error: Class DatabaseSessionHandler contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::open, SessionHandlerInterface::read) in DatabaseSessionHandler.php on line 4;
Before reboot everything works as it should. The session is written to the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2016-07-11
@Sanasol

It is written that the class does not fully implement the interface.
There are two missing functions in the DatabaseSessionHandler.
For whom the error messages came up with such detailed ones, no one reads anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question