nextcloud / gallery

DEPRECATED Gallery app was replaced by Photos
https://github.com/nextcloud/photos
GNU Affero General Public License v3.0
109 stars 58 forks source link

Issue loading gallery for directory #488

Closed skylord123 closed 4 years ago

skylord123 commented 5 years ago

Steps to reproduce

  1. Go to gallery and open my Photos directory

Expected behaviour

Gallery loads the directory

Actual behaviour

Fails to load. It just continues spinning over the directory and throws this error in the javascript console:

merged.js?v=fa8e296a-0:801 Uncaught TypeError: Cannot read property 'nodeid' of undefined
    at Object._mapFiles (merged.js?v=fa8e296a-0:801)
    at Object.$.getJSON.then.result (merged.js?v=fa8e296a-0:436)
    at Object.<anonymous> (core.js?v=fa8e296a-0:2)
    at j (core.js?v=fa8e296a-0:2)
    at Object.fireWith [as resolveWith] (core.js?v=fa8e296a-0:2)
    at x (core.js?v=fa8e296a-0:4)
    at XMLHttpRequest.<anonymous> (core.js?v=fa8e296a-0:4)

It seems to error because the directory for one of the images is wrong and isn't contained in the albums array. I actually did a console.log to see what file it was erroring on and it was a file that exists but the directory being sent to the client was wrong. It is supposed to be "/Photos/Google Photos/2010/01" but instead returns "Photos/Google 2010" which doesn't even exist. I checked the record in mysql and it was showing the correct directory so I am confused as to how this is happening. Wrapping that part of the loop in a try/catch statement that ignores it gets the directory to load correctly.

Server configuration

Operating system: Running docker container linuxserver/nextcloud (latest)

Web server: (see docker container) Database: mysql (with redis as cache) PHP version: (see docker container, I believe this is php 7) Nextcloud version: (see Nextcloud admin page) Latest (14) Updated from an older Nextcloud/ownCloud or fresh install: upgraded from 13 but had the same issue in that version as well as the previous upgrade from 12 before that. Where did you install Nextcloud from: docker container

Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` The current PHP memory limit is below the recommended value of 512MB. Enabled: - accessibility: 1.0.1 - activity: 2.7.0 - bruteforcesettings: 1.2.0 - cloud_federation_api: 0.0.1 - comments: 1.4.0 - dav: 1.6.0 - federatedfilesharing: 1.4.0 - federation: 1.4.0 - files: 1.9.0 - files_pdfviewer: 1.3.2 - files_sharing: 1.6.2 - files_texteditor: 2.6.0 - files_trashbin: 1.4.1 - files_versions: 1.7.1 - files_videoplayer: 1.3.0 - firstrunwizard: 2.3.0 - gallery: 18.1.0 - logreader: 2.0.0 - lookup_server_connector: 1.2.0 - nextcloud_announcements: 1.3.0 - notifications: 2.2.1 - oauth2: 1.2.1 - password_policy: 1.4.0 - previewgenerator: 2.0.0 - provisioning_api: 1.4.0 - serverinfo: 1.4.0 - sharebymail: 1.4.0 - support: 1.0.0 - survey_client: 1.2.0 - systemtags: 1.4.0 - theming: 1.5.0 - twofactor_backupcodes: 1.3.1 - updatenotification: 1.4.1 - workflowengine: 1.4.0 Disabled: - admin_audit - encryption - files_external - user_external - user_ldap ```

Nextcloud configuration:

Config report ``` The current PHP memory limit is below the recommended value of 512MB. { "system": { "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "datadirectory": "***REMOVED SENSITIVE VALUE***", "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "192.168.1.10:4433", "nextcloud.home.skylar.tech:443", "nextcloud.home.skylar.tech:443" ], "overwrite.cli.url": "https:\/\/192.168.1.10:4433", "dbtype": "mysql", "version": "14.0.4.2", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "preview_max_scale_factor": 10, "maintenance": false, "updater.secret": "***REMOVED SENSITIVE VALUE***", "theme": "", "loglevel": 2 } } ```

Are you using external storage, if yes which one: local/smb/sftp/... no Are you using encryption: yes/no no Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... no

Client configuration

Browser: chrome

Operating system: Ubuntu Gnome 16.04.5 LTS

Logs

Web server error log

Web server error log ``` Insert your webserver log here ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` ```

Browser log

Browser log ``` ```
skylord123 commented 5 years ago

Here is an image of the JS file erroring (and what line): screenshot from 2018-12-04 01-02-27

skylord123 commented 5 years ago

Thanks @MorrisJobke. I realized I posted this under the wrong repo yesterday and was going to fix it today.

MorrisJobke commented 5 years ago

cc @oparoz

skjnldsv commented 4 years ago

As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.