tflidd
January 13, 2018, 12:22pm
2
The original bug report was here:
opened 10:13AM - 03 Jun 17 UTC
closed 04:26PM - 02 Jan 18 UTC
Reported by several users/client-configurations on [help.nextcloud.com](https://… help.nextcloud.com/t/nc12-beta2-activity-error-php-undefined-offset-3-at-path-to-nextcloud-apps-activity-lib-fileshooks-php-620/12461?u=michaing).
### Steps to reproduce
1. Update to Nextcloud 12, any version since Beta 2
2. Upload files using desktop (>=2.3.0rc1) or android client (1.4.3 at least)
### Expected behaviour
No error messages should be shown in nextcloud log.
### Actual behaviour
Several identical error messages each minute show up in nextcloud log during upload process (single large AND many smaller files) while no actual misbehaviour was observed so far:
`Error PHP Undefined offset: 3 at /path/to/nextcloud/apps/activity/lib/FilesHooks.php#620`
### Server configuration
**Operating system**: Raspbian Jessie
**Web server:** Apache/2.4.25
**Database:** MariaDB 10.0.30
**PHP version:** mod_php 7.0.18-1
**Nextcloud version:** Nextcloud 12 Beta 2 until current 12.0.0.29 release
**Where did you install Nextcloud from:** download.nextcloud.com + web updater
**Signing status:** everything passed integrity check
**List of activated apps:**
```
- activity: 2.5.2
- calendar: 1.5.3
- contacts: 1.5.3
- dav: 1.3.0
- federatedfilesharing: 1.2.0
- files: 1.7.2
- files_downloadactivity: 1.1.1
- files_sharing: 1.4.0
- files_trashbin: 1.2.0
- files_versions: 1.5.0
- gallery: 17.0.0
- logreader: 2.0.0
- lookup_server_connector: 1.0.0
- nextcloud_announcements: 1.1
- notifications: 2.0.0
- oauth2: 1.0.5
- ownbackup: 17.5.0
- previewgenerator: 1.0.6
- provisioning_api: 1.2.0
- serverinfo: 1.2.0
- tasks: 0.9.5
- twofactor_backupcodes: 1.1.1
- updatenotification: 1.2.0
- workflowengine: 1.2.0
```
**Nextcloud configuration:**
```
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"my.domain.org"
],
"datadirectory": "\/mnt\/sda\/ncdata",
"overwrite.cli.url": "https:\/\/my.domain.org\/nextcloud",
"dbtype": "mysql",
"version": "12.0.0.29",
"memcache.local": "\\OC\\Memcache\\APCu",
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "\/var\/run\/redis\/redis.sock",
"port": 0,
"dbindex": 0,
"password": "***REMOVED SENSITIVE VALUE***",
"timeout": 1.5
},
"dbname": "nextcloud",
"dbhost": "localhost",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "...",
"loglevel": 2,
"trashbin_retention_obligation": "disabled",
"versions_retention_obligation": "disabled"
}
}
```
### Client configuration
**Operating system:** Windows 10 1073
- Error also shown on Android client
### Logs
#### Nextcloud log (data/nextcloud.log)
```
Error PHP Undefined offset: 3 at /path/to/nextcloud/apps/activity/lib/FilesHooks.php#620
```
The first fix didn’t work (or not for everybody), so there was recently a new fix:
nextcloud:stable12 ← nextcloud:226_12
opened 03:17PM - 09 Jan 18 UTC
which will be part of NC 12.0.5, the release candidate is already out for testing:
Edit: There is now RC2 - see Call for testing: Nextcloud 12.0.5 RC2 & 11.0.7 RC2
We just released the 12.0.5 RC1 & 11.0.7 RC1. You can find the changelog at the end of this post.
To make sure everything works as expected also in your environment, we’d greatly appreciate your help to test it.
While we expect the release to not eat any data and be stable, the usual disclaimer is still valid: Make sure to have backups before updating!
… once you have done that, grab the code from https://downlo…
If there are no serious problem, 12.0.5 should be released quickly (next week). If that’s not fast enough, you can either test the release candidate (don’t forget to make backups) or apply the fix manually.