-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unable to run CLI command afer upgrade plugin to newest version on Kaos 6a #17
Comments
I found this is related to this new addition in latest update: e125188 Do I need to do any adjustments on my side? Couldn't find anything in the docs |
I have exactly the same problem. It comes after I have initialized. Is there a solution? |
I have commented out the auth_setup(); line as I think, based on the commit description, this change does not affect me. After that it works back again. But still waiting for the confirmation from the author . |
Assuming this is running on Kaos, the issue is caused by these lines: As you can see the array_change_key_case method is called on the return of getallheaders(). That method only makes sense in HTTP context, not on the command line. Consequently, that method should not exist on CLI and this is the case for me (PHP 8.3). What PHP versions are you running? |
@splitbrain |
Also on this specific version the function should not exist:
Maybe you're running the CGI version instead of the CLI variant? I'm not sure if that's even possible, but I don't see why the method should exist on command line. Can you please run the following and report the full output here?
|
Issue Description
Hi, I just upgraded the AI Chat plugin to latest version. After this, CLI stopped working with the following error
Any ideas how to fix this?
The text was updated successfully, but these errors were encountered: