[FIXED] Photos shows top menu but no content - but only for a single user!

I made the mistake of removing photos and enabling memories, only to realise that for album functionality, photos was still needed. I re-enabled it, but photos doesn’t work now - I have the top menu bar, but no content showing. annoyingly, this only seems to affect me (the admin).

I see nothing in the nextcloud.log or audit.log that seems to be related to photos, and the F12 console similarly doesn’t show anything.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Linuserver.io version 32.0.0-ls396
  • Operating system and version (e.g., Ubuntu 24.04):
    • Alpine image, in Docker on Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • nginx-1.28.0-r3
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx proxy manager v2.12.3
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • after disabling, then re-enabling photos
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • LSIO image, with additional containers from the AIO manually deployed
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

The Photos top menu shows, but no other content, only a blank page. viewing the photos folder in files mode works as expected. no helpful logs are created.

Steps to replicate it (hint: details matter!):

  1. Login to Nextcloud as me! (other users work as expected)

  2. Click on Photos app icon on dashboard

  3. Top menu renders, but no content is displayed.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

nextcloud.log was emptied before replicating the problem, 
and nothing is written to the log during the session.

Web Browser

Console tab while refreshing (reloading) and reproducing the problem:
(Network tab has nothing relevant?)

VM285:1  Uncaught SyntaxError: Unexpected token '‘', "‘[“/Photos"... is not valid JSON
    at JSON.parse (<anonymous>)
    at state (userConfig.ts:57:30)
    at new ge (vuex.esm.js:154:50)
    at Ge.register (vuex.esm.js:247:19)
    at vuex.esm.js:258:14
    at vuex.esm.js:123:52
    at Array.forEach (<anonymous>)
    at st (vuex.esm.js:123:20)
    at Ge.register (vuex.esm.js:257:5)
    at new Ge (vuex.esm.js:218:8)
state @ userConfig.ts:57
ge @ vuex.esm.js:154
Ge.register @ vuex.esm.js:247
(anonymous) @ vuex.esm.js:258
(anonymous) @ vuex.esm.js:123
st @ vuex.esm.js:123
Ge.register @ vuex.esm.js:257
Ge @ vuex.esm.js:218
se @ vuex.esm.js:394
(anonymous) @ index.ts:76

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

/var/log/nginx is empty...

Configuration

Nextcloud

The output of occ config:list system:

{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.*mydomain*.co.uk",
            "192.168.110.6",
            "192.168.200.28"
        ],
        "dbtype": "pgsql",
        "version": "32.0.0.13",
        "overwrite.cli.url": "https:\/\/192.168.110.6:443",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "default_phone_region": "GB",
        "allow_local_remote_servers": true,
        "loglevel": 3,
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "maintenance": false,
        "maintenance_window_start": 1,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": true,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "app_install_overwrite": [
            "maps",
            "files_3dmodelviewer",
            "fulltextsearch",
            "fulltextsearch_elasticsearch",
            "files_fulltextsearch",
            "files_fulltextsearch_tesseract",
            "epubviewer"
        ],
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "enabledPreviewProviders": [
            "OC\\Preview\\Image",
            "OC\\Preview\\Movie"
        ],
        "memories.gis_type": 2
    }
}

Apps

The output of occ app:list :

Enabled:

* activity: 5.0.0-dev.0
* admin_audit: 1.22.0
* app_api: 32.0.0
* bruteforcesettings: 5.0.0-dev.0
* calendar: 6.0.1
* circles: 32.0.0
* cloud_federation_api: 1.16.0
* comments: 1.22.0
* contacts: 8.0.3
* contactsinteraction: 1.13.1
* dashboard: 7.12.0
* dav: 1.34.2
* deck: 1.16.0
* epubviewer: 1.8.1
* federatedfilesharing: 1.22.0
* federation: 1.22.0
* files: 2.4.0
* files_downloadlimit: 5.0.0-dev.0
* files_external: 1.24.0
* files_fulltextsearch: 31.0.0
* files_fulltextsearch_tesseract: 27.0.1
* files_pdfviewer: 5.0.0-dev.0
* files_reminders: 1.5.0
* files_sharing: 1.24.0
* files_trashbin: 1.22.0
* files_versions: 1.25.0
* firstrunwizard: 5.0.0-dev.0
* fulltextsearch: 31.0.0
* fulltextsearch_elasticsearch: 31.0.0
* groupfolders: 20.1.1
* logreader: 5.0.0-dev.0
* lookup_server_connector: 1.20.0
* mail: 5.5.7
* maps: 1.6.0
* memories: 7.7.0
* nextcloud_announcements: 4.0.0-dev.0
* notes: 4.12.3
* notifications: 5.0.0-dev.0
* oauth2: 1.20.0
* password_policy: 4.0.0-dev.0
* photos: 5.0.0-dev.1
* previewgenerator: 5.10.0
* privacy: 4.0.0-dev.0
* profile: 1.1.0
* provisioning_api: 1.22.0
* recognize: 10.0.4
* recommendations: 5.0.0-dev.0
* related_resources: 3.0.0-dev.0
* richdocuments: 9.0.0
* serverinfo: 4.0.0-dev.0
* settings: 1.15.1
* sharebymail: 1.22.0
* spreed: 22.0.0
* support: 4.0.0-dev.0
* survey_client: 4.0.0-dev.0
* systemtags: 1.22.0
* text: 6.0.0-dev.0
* theming: 2.7.0
* twofactor_backupcodes: 1.21.0
* updatenotification: 1.22.0
* user_status: 1.12.0
* viewer: 5.0.0-dev.0
* weather_status: 1.12.0
* webhook_listeners: 1.3.0
* workflowengine: 2.14.0

Disabled:

* duplicatefinder: 1.7.3 (installed 1.7.3)
* encryption: 2.20.0
* files_3dmodelviewer: 0.0.15 (installed 0.0.15)
* suspicious_login: 10.0.0-dev.0
* twofactor_nextcloud_notification: 6.0.0-dev.0
* twofactor_totp: 14.0.0
* user_ldap: 1.23.0

For anyone coming along after me..

I resolved this by comparing the photos settings between a working user and a non-working account;

not working;

occ user:setting notworkingusername photos

  • photos:
    • photosLocation: [“/Our Photos”]
    • photosSourceFolders: ‘[“/Photos”,“/InstantUpload/Camera”]’
  • settings:
    • display_name: username

working;

occ user:setting workingusername photos

  • photos:
    • photosSourceFolders: [“/Photos”,“/Our Photos”]
  • settings:
    • display_name: username

I removed the odd looking photosSourceFolders setting with;

occ user:setting notworkingusername photos photosSourceFolders --delete

this resolved the issue, and I was able to add the correct folders back into the (now default) photos settings.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.