7

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

7
  • did you change any system files? Commented Mar 24, 2016 at 20:46
  • With what are you trying to replace them exactly? Commented Mar 24, 2016 at 21:12
  • i dont change anything in system files. I replace system files to other news and doesnt change. Commented Mar 24, 2016 at 21:14
  • so did you upgrade from CI 2.0 to 3.0? Commented Mar 24, 2016 at 21:15
  • ... and where do you get these new replacements from? Commented Mar 24, 2016 at 21:17

3 Answers 3

19

Problem solved by restarting Apache.

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

Sign up to request clarification or add additional context in comments.

2 Comments

I have this problem too. Restarted my apache do the work, but this solution is temporary until that "mysterious" fatal error happen again.
Really Don't know why this appeared but restarting apache solved the prob.
2

In my case i did the following

Restart apache

That's it!

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.