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

Undefined offset: 2 #6335

Closed
mikshepard opened this issue Sep 1, 2017 · 3 comments
Closed

Undefined offset: 2 #6335

mikshepard opened this issue Sep 1, 2017 · 3 comments

Comments

@mikshepard
Copy link

mikshepard commented Sep 1, 2017

Steps to reproduce

  1. Create External Storage mount (using "Local" mount in my case)
  2. Set "Folder name" mountpoint to root "/"
  3. Access External Storage folder in Nextcloud

Actual behaviour

Folder contents can be viewed as expected, but logs show error with every access:

Undefined offset: 2 at /var/www/nextcloud/apps/files_external/lib/Lib/Api.php#42

Here is commit for using root as the mountpoint of an External Storage, if it helps.

Server configuration

Operating system:
Debian Jessie

Web server:
Apache 2.4.10

Database:
MySQL 5.7.19

PHP version:
PHP 5.7.19

Nextcloud version: (see Nextcloud admin page)
Nextcloud 12.0.2

Updated from an older Nextcloud/ownCloud or fresh install:
Updated

Where did you install Nextcloud from:
Source tarball

Are you using external storage, if yes which one: local/smb/sftp/...
Local

Are you using encryption: yes/no
No

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP

Client configuration

Browser:
Opera/Firefox/Vivaldi

Operating system:
Windows 7

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"ZMOJj7hsiolJ3Wochbdo","level":3,"time":"2017-09-01T10:16:09-05:00","remoteAddr":"X.X.X.X","user":"admin","app":"PHP","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"Undefined offset: 2 at \/var\/www\/nextcloud\/apps\/files_external\/lib\/Lib\/Api.php#42","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36 Vivaldi\/1.93.947.3","version":"12.0.2.0"}"
@mikshepard mikshepard changed the title [Filse_External] Undefined offset: 2 errors in log [Files_External] Undefined offset: 2 errors in log Sep 1, 2017
@mikshepard mikshepard changed the title [Files_External] Undefined offset: 2 errors in log [Files_External] "Undefined offset: 2" errors in log Sep 1, 2017
@MorrisJobke
Copy link
Member

cc @icewind1991

@MorrisJobke MorrisJobke changed the title [Files_External] "Undefined offset: 2" errors in log Undefined offset: 2 Sep 1, 2017
@icewind1991
Copy link
Member

@mikshepard can you verify if #6574 fixes the problem for you

@MorrisJobke MorrisJobke added this to the Nextcloud 13 milestone Sep 20, 2017
@mikshepard
Copy link
Author

Yes, applied the patch 24 hours ago, logs are clean. This seems to have resolved the issue. Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants