codeigniter 4.1.8 - Session: Initialization under CLI aborted. |
Hi,
I get this error "Session: Initialization under CLI aborted." in a log file, when I try to call a controller (php public/index.php tools) via cli in CI development environment. I want to allow a cronjob to call a specific route to save some data in mysql. This is the example I used: https://codeigniter.com/user_guide/cli/c...ello-world After debugging for a while, I changed CI_ENVIRONMENT = development to CI_ENVIRONMENT = testing in the .env file and it worked. I was able to call the route via cli. Why is calling a route via cli only allowed in testing mode? Is this a bug or is this the way it should work? I am new to codeigniter. I hope someone can explain it. Thanks. Greetings, magu |
Messages In This Thread |
codeigniter 4.1.8 - Session: Initialization under CLI aborted. - by magu - 02-11-2022, 07:21 AM
RE: codeigniter 4.1.8 - Session: Initialization under CLI aborted. - by paulbalandan - 02-11-2022, 08:15 PM
RE: codeigniter 4.1.8 - Session: Initialization under CLI aborted. - by engel - 11-30-2023, 04:14 AM
RE: codeigniter 4.1.8 - Session: Initialization under CLI aborted. - by Gary - 01-24-2024, 03:02 PM
|