简体   繁体   中英

CodeIgniter Database Session Error

When I try to execute any controller of my CodeIgniter project i receive this error:

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 D:\Git\crud-farm\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 tried to replace CodeIgniter system files but it didn't work. The problem appears in all projects

Problem solved by restarting Apache.

I attach the url which saved me: http://forum.codeigniter.com/thread-64763.html

In my case i did the following

Restart apache

That's it!

The files in system should not be modified. My files were modified somehow and were throwing error. I resolved my problem as below.

  1. Download fresh codeigniter and extract files
  2. copy system files from fresh codeigniter into your project and overwrite the whole system folder.

This should fix your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM