Skip to content
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

Correct PHP version to prevent log error warnings (access array offset) #42

Closed
rmeissn opened this issue Sep 4, 2020 · 3 comments
Closed

Comments

@rmeissn
Copy link

rmeissn commented Sep 4, 2020

I have a lot of "Trying to access array offset on value ..." in my Nextcloud logs, marked as level "Error". I searched Github a lot and and it seems to be some kind of Nextcloud ~bug when using PHP >7,2 (maybe only >7.3, not sure yet). See nextcloud/server#19010 (comment)

These "Trying to access array offset on value ..." are vary annoying as these messages spam the log file a lot. It seems to be some kind of upstream issue, that the developers won't fix in the near future - at least I interpreted their comments in this way.

It might be better to use PHP 7.2 oder 7.3 for your images, instead of 7.4, in order to get rid of these messages until a upstream fix is in place.

@hoellen
Copy link
Owner

hoellen commented Sep 18, 2020

Do the errors have negative effects? I would rather see the errors fixed upstream. The coming version Nextcloud 20 will require PHP 7.3+

@rmeissn
Copy link
Author

rmeissn commented Sep 18, 2020

Aside from quite large log files, that must be filtered from these kind of error messages, there are no negative effects.

@rmeissn
Copy link
Author

rmeissn commented Oct 12, 2020

The commit 5f65a6a fixes the excessive logging behaviour for NC 19

@rmeissn rmeissn closed this as completed Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants