0

I have some problems with CodeIgniter, this error is from system file and I don't know how to fix it.

    Fatal error: Class CI_Session_files_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read) in E:\Xampp\htdocs\Yachi\system\libraries\Session\drivers\Session_files_driver.php on line 49
    A PHP Error was encountered

    Severity: Error

    Message: Class CI_Session_files_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read)

    Filename: drivers/Session_files_driver.php

    Line Number: 49

    Backtrace:

I read some articles about this, but it doesn't help to find out the answer. Thanks.

Tai Le
  • 493
  • 1
  • 4
  • 14

1 Answers1

3

The bug seems about windows+php7. Not for CI

Restarting apache server can be a temporary solution. But you should repeat it every time crash happen.

I recommend to use linux enviornment or Downgrade php version to 5.x until it solve.

Related links I found:

PHP 7, Symfony 3: Fatal error 1 abstract method and must therefore be declared abstract or implement the remaining methods

https://www.drupal.org/node/2711155

https://community.apachefriends.org/viewtopic.php?p=250966&sid=96ef58aaeb7fe142a7dcdfd506a8683f