Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

7.8K
Views
Mensaje: El tipo de retorno de CI_Session_files_driver::open($save_path, $name) debe ser compatible con

Recibí este error después de instalar una nueva versión de xampp (php8). y clone mi proyecto codeigniter.

 Message: Return type of CI_Session_files_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

Nombre de archivo: controladores/Session_files_driver.php

Número de línea: 132

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Para cualquier otra persona que encuentre este error, también lo experimenté después de actualizar a PHP 8.1. La única forma que pude encontrar para "arreglarlo" fue agregando #[\ReturnTypeWillChange] antes de las funciones open , read , write , close , destroy y gc en /system/libraries/Session/drivers/Session_files_driver.php . Por ejemplo:

 #[\ReturnTypeWillChange] public function open($save_path, $name) { ...
over 4 years ago · Santiago Trujillo Report

0

Experimenté este error después de volver a instalar el servidor XAMPP. He solucionado este problema agregando

#[\ReturnTypeWillChange]

para todos los métodos ( open, read, write, close, destroy and gc ) en Session_files_driver.php file . El archivo se puede encontrar en la carpeta del proyecto system/libaries/Session/drivers/Session_files_driver.php

 #[\ReturnTypeWillChange] public function open($save_path, $name) { ... } #[\ReturnTypeWillChange] public function read($session_id) { ... } #[\ReturnTypeWillChange] public function write($session_id, $session_data) { ... } #[\ReturnTypeWillChange] public function close() { ... } #[\ReturnTypeWillChange] public function destroy($session_id) { ... } #[\ReturnTypeWillChange] public function gc($maxlifetime) { ... }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!