-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session/Input and Crontab/CLI #1890
Comments
Which version were you & did you upgrade to? This is most likely because you replaced the index.php & now the development environment is set as development which will display all php errors on the page this includes notices & warnings. |
I don't recall what I was at 2.1.1 to whatever is most recent. I did not replace the index.php I only changed the system directory and the mimes.php file as per the instructions in the upgrade documenation from the version I was at the the new version. I was running development environment before and I am still running it now. It ONLY happens in the CLI, and not on a regular page. |
Yes, other people will experience this as well. See this forum thread: http://codeigniter.com/forums/viewthread/227672/#1034205 |
I auto-load sessions. Sessions calls the the function. Either the sessions lib should detect CLI and disable itself, or the function should be tolerant. I'll do a pull request, just let me know the direction. |
I guess I haven't made it clear enough, with linking forum threads and stuff ...
|
I started using CodeIgniter because it was supposed to be robust. Libraries should be robust to all environments, including CLI. But all of that is moot if its fixed. "Its fixed" is all that matters. |
So where is this "fix"? Can I apply a patch to my current 2.1.3? |
I would also like to know if I can manually patch this before the next release. |
Just replace |
@narfbg 👍 thanks! |
@narfbg ty |
@narfbg |
Having applied this patch I've noticed my ci_sessions table was populated with the ip_address 0.0.0.0. You must have This causes |
thanks for the tip @aderowbotham 👍 |
This is issue is resolved in current version of CodeIgniter-2.2.2 |
This issue still exists in CI 2.2.3, the error has moved to line 352. Looking at git history, I can't seem to find when the fix as described in #1890 (comment) was ever committed. Please re-open, the fix is trivial and known, so please apply it. Output:
|
* Path for autoload.php was wrong * CodeIgniter bug for CLI mode: bcit-ci/CodeIgniter#1890
I am running a serveral cronjobs on our intranet. Before I upgraded to the current release of CI I was running error free.
Now I am getting:
I know what the error means, and I can fix it myself, but I wanted to know if there is anyone else having this issue. It only happens when I run on the cli/cronjobs regular pages run fine.
The text was updated successfully, but these errors were encountered: