Welcome Guest, Not a member yet? Register   Sign In
Interface "CI_Session_driver_interface" not found
#1

Hi,
After upgrading to php 8.1, we had the following message: 
Message: Return type of CI_Session_database_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice Filename: drivers/Session_database_driver.php

I tried using the  #[\ReturnTypeWillChange] attribute in system\libraries\Session\drivers\Session_database_driver.php, but it didn't help.  I tried reverting the file and got the error: 
An uncaught Exception was encountered
Type: Error
Message: Interface "CI_Session_driver_interface" not found
Filename: /users/v/m/vmc/vmcdevel/system/libraries/Session/drivers/Session_database_driver.php
Line Number: 50



Any ideas for troubleshooting?   I re-downloaded that system file but still am getting the same error.  Not sure what I did!
Reply
#2

I re-uploaded the entire /system/libraries/ folder and that solved both issues!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB