Welcome Guest, Not a member yet? Register   Sign In
Code igniter 4.8 session file handler
#1

Hi gentle guys I have an app, that was working fine on 4.6/7 after the update to 4.8 I get these errors

if want to post a new article
firstly, it redirects to the LiteSpeed server with 403 forbidden

under my article form, it shows this message

Code:
Fatal error: Uncaught ErrorException: touch(): Unable to create file writable/session/ci_sessionfk9nm1m0vr6pdlrpdvbmbqide675jlml because No such file or directory in /home/firstchoiche1/public_html/system/Session/Handlers/FileHandler.php:192 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler() #1 /home/firstchoiche1/public_html/system/Session/Handlers/FileHandler.php(192): touch() #2 [internal function]: CodeIgniter\Session\Handlers\FileHandler->write() #3 [internal function]: session_write_close() #4 {main} thrown in /home/firstchoiche1/public_html/system/Session/Handlers/FileHandler.php on line 192

and I have gone check to log file and see this issue :
Code:
INFO - 2022-01-27 14:44:17 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.

where am I wrong? after updating to CI 4.8
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#2

(01-27-2022, 05:01 AM)luckmoshy Wrote: Fatal error: Uncaught ErrorException: touch(): Unable to create file writable/session/ci_sessionfk9nm1m0vr6pdlrpdvbmbqide675jlml because No such file or directory

Do you have writable/session/ directory?

And do you mean CodeIgniter 4.1.8, not 4.8?
Reply
#3

(This post was last modified: 01-27-2022, 10:24 PM by luckmoshy.)

(01-27-2022, 09:08 PM)kenjis Wrote:
(01-27-2022, 05:01 AM)luckmoshy Wrote: Fatal error: Uncaught ErrorException: touch(): Unable to create file writable/session/ci_sessionfk9nm1m0vr6pdlrpdvbmbqide675jlml because No such file or directory

Do you have writable/session/ directory?

And do you mean CodeIgniter 4.1.8, not 4.8?

Yes Kenji I have put it as writable/session but in 4.1.6/ work fine in 4.1.8 I see this issue
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#4

It is strange.
There is no changes in Session from v4.1.6 to v4.1.8

$ git diff v4.1.6...v4.1.8 system/Session/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB