-
Notifications
You must be signed in to change notification settings - Fork 44
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
1014 errors in the logs since 3. Juli 2024, 18:46:13 Undefined array key #249
Comments
Please provide a full stacktrace from the logfile of that error. |
This comment was marked as outdated.
This comment was marked as outdated.
Error handling for this case if the array key is undefined, or figure out why the key is undefined and define it, maybe. |
You might figure that out, yes. As I said, since I can't reproduce it and without you providing a full stacktrace, its literally impossible for me to find the root cause of this error thrown in Nextcloud's code. You might want to report the error in nextcloud/server, too; no matter what the app does, nextcloud/server should properly handle a non-existing key. |
How can I provide a full stack trace? In loglevel 0, I get some more messages, but I don't know if it helps.
and
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! 👍 |
I just recently updated from NC 27 to 30 and started seeing this issue. Dug into it and found that in [nextcloud apps directory]/cms_pico/lib/Http/PicoPageResoponse.php in the constructor, there is an if statement:
I added an else to set the status to STATUS_OK:
This seems to have resolved the issue. |
Thanks @doftnet, reopening as bug now. However, please note that cms_pico isn't under active development right now and thus it's - as of now - unlikely that there's going to be a bugfix release (you can naturally still patch it yourself and keep using that self-patched version). |
I kinda figured that was the case. That if statement was added in my PR from 5 years ago so the least I could do is share a fix with the community. |
cms_pico
produces many errors innextcloud.log
, such as{"reqId":"KnV3So1DBNZHzppo8HZ9","level":3,"time":"2024-07-10T18:35:09+02:00","remoteAddr":"192.168.1.175","user":"<user>","app":"PHP","method":"GET","url":"/index.php/apps/cms_pico/pico_proxy/<site>/","message":"Undefined array key \"\" at /var/www/html/nextcloud/lib/private/AppFramework/Http.php#128","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.3.4","data":{"app":"PHP"}}
I'm running it with
php-8.2
. Does anybody know how this can be fixed? I assume it's not too complicated, but I'm not a php developer, unfortunately.Any help is much appreciated.
The text was updated successfully, but these errors were encountered: