-
Notifications
You must be signed in to change notification settings - Fork 64
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
error in logs, expects array gets string #115
Comments
Can you please execute the following query on your database, to provide a bit more details? SELECT `subject`
FROM `oc_activity`
WHERE `subjectparams` NOT LIKE '%}]'
AND `subjectparams` NOT LIKE '[{%'
AND `app` = 'files'
GROUP BY `subject` |
Seems to be related to nextcloud/server#3344 just want to make sure it's only the same entries. |
Ok, database operations are not my forte, and I don't know what you are looking for, so see if this is what you wanted me to do:
|
Thats good, thanks! |
Can you make the following change and see if that fixes your issue? |
Note, my 11.0.1 installation (database / config file) was updated from OC8.2.2 to OC8.2.9 then NC9.something then NC10.0.3 then NC11.0.1 |
I can try it later today, thanks... |
Ok, I patched my file (by hand!) looking at the diff in github, I think I did it correctly, but maybe for next time please tell me how to get a copy of the complete file with your pull request incorporated. Unfortunately the result is not what we hoped for. Upon loading the Activity page in the web interface, I now get this error, repeated:
|
need to patch another file also, I guess??? |
Can you try to put the following files into |
Works perfectly now, thank you! |
Steps to reproduce
Not sure, view Activity in Nextcloud web interface might be required
Expected behaviour
No errors generated in logs
Actual behaviour
repeating log entries of:
{"reqId":"WJN8MMfkBQuqbm1itlhfCQAAAAo","remoteAddr":"myremoteIP","app":"PHP","message":"reset() expects parameter 1 to be array, string given at \/var\/www\/html\/nextcloud\/apps\/files\/lib\/Activity\/Provider.php#250","level":3,"time":"2017-02-02T18:36:35+00:00","method":"GET","url":"\/nextcloud\/index.php\/apps\/activity\/api\/v2\/activity\/by?format=json&previews=true&since=0","user":"admin","version":"11.0.1.2"}
{"reqId":"WJN8MMfkBQuqbm1itlhfCQAAAAo","remoteAddr":"myremoteIP","app":"PHP","message":"key() expects parameter 1 to be array, string given at \/var\/www\/html\/nextcloud\/apps\/files\/lib\/Activity\/Provider.php#251","level":3,"time":"2017-02-02T18:36:35+00:00","method":"GET","url":"\/nextcloud\/index.php\/apps\/activity\/api\/v2\/activity\/by?format=json&previews=true&since=0","user":"admin","version":"11.0.1.2"}
Server configuration
Operating system:
Centos 7
Web server:
Apache
Database:
Maria
PHP version:
5.6
Nextcloud version: (see Nextcloud admin page)
11.0.1
Where did you install Nextcloud from:
ZIP from Nextcloud web downloads
Signing status:
"No errors have been found."
List of activated apps:
Enabled:
Disabled:
The content of config/config.php:
prefer not to post unless needed
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
Browser:
Firefox 51.0.1
Operating system:
OS X 10.12.3
The text was updated successfully, but these errors were encountered: