Images and Videos not showing in Media Viewer due to dependency on Share Files app

I had difficulty getting the new Media Viewer app to show images or videos on 10.3.2 and originally gave up thinking that I had messed up something when disabling gallery and files_videoplayer. So, when 10.4.1 came out, I tested it in two test systems to see if I could get files_mediaviewer to work.

After troubleshooting, I figured out that the issue was that I had previously disabled the Share Files app (since we use existing external file shares with permissions managed directly). On the working test system the Share Files app was enabled, and on the non-working test system it wasn’t.

This dependency seems strange to me since I didn’t see any sharing functionality in Media Viewer, but enabling it made Media Viewer work.

I’m posting this in case anyone else runs into this, or in case anyone knows why the Share Files app would be a dependency for Media Viewer.

Steps to reproduce

  1. Disable Share Files app
  2. Try to open a picture or video with Media Viewer app

Expected behaviour

Picture or video should open in app and be visible.

Actual behaviour

Shell of Media Viewer app opens, but no picture or video is visible.

Server configuration

Operating system: Ubuntu 18.04

Web server: Apache 2.4.29

Database: MySQL 5.7.29

PHP version: 7.2

ownCloud version: 10.3.2 and 10.4.1

Updated from an older ownCloud or fresh install: both

Where did you install ownCloud from: Package repository

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "\/var\/www\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbtype": "mysql",
        "version": "10.4.1.3",
        "dbname": "oc",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379
        },
        "ldapIgnoreNamingRules": false,
        "theme": "custom",
        "instanceid": "oc5go2jf83je",
        "maintenance": false,
        "loglevel": 2,
        "skeletondirectory": "",
        "updatechecker": false,
        "smb.logging.enable": true,
        "dav.chunk_base_dir": "\/tmp\/uploads",
        "preview_max_scale_factor": 1,
        "enabledPreviewProviders": {
            "0": "OC\\Preview\\PNG",
            "1": "OC\\Preview\\JPEG",
            "2": "OC\\Preview\\GIF",
            "11": "OC\\Preview\\Illustrator",
            "12": "OC\\Preview\\Postscript",
            "13": "OC\\Preview\\Photoshop",
            "14": "OC\\Preview\\TIFF"
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/apps-external",
                "url": "\/apps-external",
                "writable": true
            }
        ]
    }
}

List of activated apps:

Enabled:
  - configreport: 0.2.0
  - dav: 0.5.0
  - diagnostics: 0.1.4
  - federatedfilesharing: 0.5.0
  - files: 1.5.2
  - files_external: 0.7.1
  - files_mediaviewer: 1.0.2
  - files_pdfviewer: 0.11.1
  - files_sharing: 0.12.0
  - files_texteditor: 2.3.0
  - market: 0.5.0
  - notifications: 0.5.0
  - templateeditor: 0.4.0
  - updatenotification: 0.2.1
  - user_ldap: 0.15.1
Disabled:
  - comments
  - encryption
  - external
  - federation
  - files_textviewer
  - files_trashbin
  - files_versions
  - firstrunwizard
  - provisioning_api
  - systemtags
  - user_external

Are you using external storage, if yes which one: smb

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP

Client configuration

Browser: Chrome

Operating system: Windows 10

2 Likes

Hey,

i think you could post an issue at https://github.com/owncloud/files_mediaviewer/issues and ask the app developer if this dependency is correct and needs to be documented somewhere.

I have the same issue almost 5 years later. Did you find any solution?

The workaround was to enable the Share Files app. The issue is still open here: Images and Videos not showing in Media Viewer when Share Files app is disabled · Issue #240 · owncloud/files_mediaviewer · GitHub with no updates since 2020.

I haven’t managed owncloud for a few years now, though, so I don’t have recent context.

1 Like