Owncloud preview fails to preview JPG files

Steps to reproduce

Click any JPG image from owncloud web interface.

Expected behaviour

A preview of the image file should appear

Actual behaviour

The preview window opens but stays black and this error message is displayed: “Error! Could not generate a preview of this file.”

Server configuration

Operating system: CentOS 7

Web server: Apache/2.4.6 (CentOS)

Database: mariadb 5.5.56-2

PHP version: PHP 5.6.37

ownCloud version: 10.0.9.5

Updated from an older ownCloud or fresh install: Updated from Owncloud 9

Where did you install ownCloud from: CentOS CE-Stable Repo

Signing status (ownCloud 9.0 and above):

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- user_pwauth
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\MissingSignatureException
		- Signature data not found.
- gallery
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\MissingSignatureException
		- Signature data not found.

Raw output
==========
Array
(
    [user_pwauth] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\MissingSignatureException
                    [message] => Signature data not found.
                )

        )

    [gallery] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\MissingSignatureException
                    [message] => Signature data not found.
                )

        )

)

The content of config/config.php:

{
    "system": {
        "instanceid": "oc0euw2n5qpt",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED SENSITIVE VALUE***",
            "192.168.0.2"
        ],
        "datadirectory": "\/var\/www\/html\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbtype": "mysql",
        "version": "10.0.9.5",
        "dbname": "owncloud",
        "dbhost": "127.0.0.1",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "enable_previews": true,
        "updatechecker": false,
        "theme": "",
        "loglevel": 0,
        "allow_user_to_change_display_name": true,
        "maintenance": false,
        "singleuser": false,
        "appcodechecker": false
    }
}

List of activated apps:

Enabled:
  - activity: 2.3.6
  - calendar: 1.5.7
  - comments: 0.3.0
  - configreport: 0.1.1
  - dav: 0.3.2
  - federatedfilesharing: 0.3.1
  - files: 1.5.1
  - files_external: 0.7.1
  - files_pdfviewer: 0.8.2
  - files_sharing: 0.10.1
  - files_texteditor: 2.2.1
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - gallery: 16.0.2
  - notifications: 0.3.4
  - provisioning_api: 0.5.0
  - rainloop: 5.0.5
  - systemtags: 0.3.0
  - templateeditor: 0.3
  - updatenotification: 0.2.1
  - user_pwauth: 2.4.8
Disabled:
  - encryption
  - external
  - federation
  - market
  - user_external

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

Are you using encryption: No

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

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser: Error Occurs with all browsers Firefox/Chrome/Edge/IE

Operating system: Error Occurs with all OS’s Windows/Linux

Logs

Web server error log

[Tue Sep 11 13:53:36.136336 2018] [authz_core:error] [pid 29600] [client 47.201.253.68:57576] AH01630: client denied by server configuration: /var/www/html/owncloud/data/htaccesstest.txt
[Tue Sep 11 13:55:06.154085 2018] [:error] [pid 29619] [client 47.201.253.68:57603] PHP Fatal error:  Call to a member function getMimetype() on string in /var/www/html/owncloud/lib/private/Preview.php on line 260
[Tue Sep 11 13:55:40.404847 2018] [authz_core:error] [pid 29487] [client 47.201.253.68:57616] AH01630: client denied by server configuration: /var/www/html/owncloud/data/htaccesstest.txt
[Tue Sep 11 14:39:17.581490 2018] [:error] [pid 6567] [client 192.168.0.1:52430] PHP Fatal error:  Call to a member function getMimetype() on string in /var/www/html/owncloud/lib/private/Preview.php on line 260
[Tue Sep 11 15:10:00.630858 2018] [:error] [pid 13322] [client 47.201.253.68:58517] PHP Fatal error:  Call to a member function getMimetype() on string in /var/www/html/owncloud/lib/private/Preview.php on line 260

ownCloud log (data/owncloud.log)

{"reqId":"W5gS-iO4QViuU6cMAFRyswAAAAU","level":0,"time":"2018-09-11T19:09:50+00:00","remoteAddr":"47.201.253.68","user":"--","app":"OC\\Authentication\\Token\\DefaultTokenProvider::getToken","method":"POST","url":"\/index.php\/login","message":"token 1205e783e6030421a3f04dfde7ce25d24d5f0859a7a706bdd13878cb02bf02f4c7c1159bf5ed63c060cc8f374af14692ad43f289809c2fb112be588e5ac59eec does not exist"}
{"reqId":"W5gS-iO4QViuU6cMAFRyswAAAAU","level":0,"time":"2018-09-11T19:09:50+00:00","remoteAddr":"47.201.253.68","user":"--","app":"OC\\User\\Session::validateToken","method":"POST","url":"\/index.php\/login","message":"token 1205e783e6030421a3f04dfde7ce25d24d5f0859a7a706bdd13878cb02bf02f4c7c1159bf5ed63c060cc8f374af14692ad43f289809c2fb112be588e5ac59eec, not found"}
{"reqId":"W5gS-iO4QViuU6cMAFRyswAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\Authentication\\Token\\DefaultTokenProvider::getToken","method":"POST","url":"\/index.php\/login","message":"token 1205e783e6030421a3f04dfde7ce25d24d5f0859a7a706bdd13878cb02bf02f4c7c1159bf5ed63c060cc8f374af14692ad43f289809c2fb112be588e5ac59eec does not exist"}
{"reqId":"W5gS-iO4QViuU6cMAFRyswAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\Authentication\\Token\\DefaultTokenProvider::generateToken","method":"POST","url":"\/index.php\/login","message":"generating token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b, uid krisb, loginName krisb, pwd set, name Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36, type temporary"}
{"reqId":"W5gS-yO4QViuU6cMAFRytAAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytAAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytAAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytQAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=5de1750d1525f0869597157f392f27a8","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytQAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=5de1750d1525f0869597157f392f27a8","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytQAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=5de1750d1525f0869597157f392f27a8","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytQAAAAU","level":0,"time":"2018-09-11T19:09:51+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=5de1750d1525f0869597157f392f27a8","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytgAAAAU","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/config?extramediatypes=1","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytgAAAAU","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/config?extramediatypes=1","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-yO4QViuU6cMAFRytgAAAAU","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/config?extramediatypes=1","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTAF@25c2ROjcQJt8y2wAAAAQ","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-2IqU7DrHuauW1PgCwAAAA0","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gS-2IqU7DrHuauW1PgCwAAAA0","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTAF@25c2ROjcQJt8y3AAAAAQ","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTAF@25c2ROjcQJt8y3AAAAAQ","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTAF@25c2ROjcQJt8y3AAAAAQ","level":0,"time":"2018-09-11T19:09:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBrucwGD2SYq5ia-x-QAAAA8","level":0,"time":"2018-09-11T19:09:58+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"PROPFIND","url":"\/remote.php\/webdav\/Photos","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBrucwGD2SYq5ia-x-gAAAA8","level":0,"time":"2018-09-11T19:09:58+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FPhotos","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBrucwGD2SYq5ia-x-gAAAA8","level":0,"time":"2018-09-11T19:09:58+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FPhotos","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBrucwGD2SYq5ia-x-gAAAA8","level":0,"time":"2018-09-11T19:09:58+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2FPhotos","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBtdyA3NRcieXATvGUAAAAAA","level":0,"time":"2018-09-11T19:09:58+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/remote.php\/dav\/files\/krisb\/Photos\/Squirrel.jpg?c=6ca8161bd399c14f2d1b698106e496f1&x=32&y=32&forceIcon=0&preview=1","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBqEs6kLYfemmDTdxnwAAAAI","level":0,"time":"2018-09-11T19:09:58+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/remote.php\/dav\/files\/krisb\/Photos\/Paris.jpg?c=9c11106f87bd279ef1dbc779a5a16a1b&x=32&y=32&forceIcon=0&preview=1","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBhgrKS-@ttiLRQbjvgAAAAk","level":0,"time":"2018-09-11T19:09:59+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/remote.php\/dav\/files\/krisb\/Photos\/San%20Francisco.jpg?c=f20ff710970a4f83dd7f857d95dd3523&x=32&y=32&forceIcon=0&preview=1","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBxgrKS-@ttiLRQbjvwAAAAk","level":0,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/slideshow","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBxgrKS-@ttiLRQbjvwAAAAk","level":0,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/slideshow","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTBxgrKS-@ttiLRQbjvwAAAAk","level":0,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/slideshow","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTCBgrKS-@ttiLRQbjwAAAAAk","level":0,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/40?width=2000&height=2000&c=9c11106f87bd279ef1dbc779a5a16a1b&requesttoken=TA1GAxAiQ1w3P0ZkHz8LTgBICB0DAFQaBlh9S2sdHTU%3D%3Ag95nDs%2Bdzi0VQXl9Y8CiYnctW44y1koCT1IxCSLHU7E%3D","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTCBgrKS-@ttiLRQbjwAAAAAk","level":0,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/40?width=2000&height=2000&c=9c11106f87bd279ef1dbc779a5a16a1b&requesttoken=TA1GAxAiQ1w3P0ZkHz8LTgBICB0DAFQaBlh9S2sdHTU%3D%3Ag95nDs%2Bdzi0VQXl9Y8CiYnctW44y1koCT1IxCSLHU7E%3D","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTCBgrKS-@ttiLRQbjwAAAAAk","level":0,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/40?width=2000&height=2000&c=9c11106f87bd279ef1dbc779a5a16a1b&requesttoken=TA1GAxAiQ1w3P0ZkHz8LTgBICB0DAFQaBlh9S2sdHTU%3D%3Ag95nDs%2Bdzi0VQXl9Y8CiYnctW44y1koCT1IxCSLHU7E%3D","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTCBgrKS-@ttiLRQbjwAAAAAk","level":3,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"PHP","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/40?width=2000&height=2000&c=9c11106f87bd279ef1dbc779a5a16a1b&requesttoken=TA1GAxAiQ1w3P0ZkHz8LTgBICB0DAFQaBlh9S2sdHTU%3D%3Ag95nDs%2Bdzi0VQXl9Y8CiYnctW44y1koCT1IxCSLHU7E%3D","message":"Argument 3 passed to OC\\Preview::__construct() must implement interface OCP\\Files\\Node, string given, called in \/var\/www\/html\/owncloud\/apps\/gallery\/preview\/preview.php on line 100 and defined at \/var\/www\/html\/owncloud\/lib\/private\/Preview.php#115"}
{"reqId":"W5gTCBgrKS-@ttiLRQbjwAAAAAk","level":3,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"PHP","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/40?width=2000&height=2000&c=9c11106f87bd279ef1dbc779a5a16a1b&requesttoken=TA1GAxAiQ1w3P0ZkHz8LTgBICB0DAFQaBlh9S2sdHTU%3D%3Ag95nDs%2Bdzi0VQXl9Y8CiYnctW44y1koCT1IxCSLHU7E%3D","message":"Argument 1 passed to OC\\Preview::setFile() must implement interface OCP\\Files\\Node, string given, called in \/var\/www\/html\/owncloud\/lib\/private\/Preview.php on line 135 and defined at \/var\/www\/html\/owncloud\/lib\/private\/Preview.php#257"}
{"reqId":"W5gTCBgrKS-@ttiLRQbjwAAAAAk","level":3,"time":"2018-09-11T19:10:00+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"PHP","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/40?width=2000&height=2000&c=9c11106f87bd279ef1dbc779a5a16a1b&requesttoken=TA1GAxAiQ1w3P0ZkHz8LTgBICB0DAFQaBlh9S2sdHTU%3D%3Ag95nDs%2Bdzi0VQXl9Y8CiYnctW44y1koCT1IxCSLHU7E%3D","message":"Call to a member function getMimetype() on string at \/var\/www\/html\/owncloud\/lib\/private\/Preview.php#260"}
{"reqId":"W5gTHW4AB6uV0O8k6ylTJgAAAAw","level":0,"time":"2018-09-11T19:10:22+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTHW4AB6uV0O8k6ylTJgAAAAw","level":0,"time":"2018-09-11T19:10:22+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTO24AB6uV0O8k6ylTKAAAAAw","level":0,"time":"2018-09-11T19:10:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTO24AB6uV0O8k6ylTKAAAAAw","level":0,"time":"2018-09-11T19:10:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\Authentication\\Token\\DefaultTokenProvider::updateTokenActivity","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"updating activity of token 68083 to 1536693052"}
{"reqId":"W5gTO24AB6uV0O8k6ylTKAAAAAw","level":0,"time":"2018-09-11T19:10:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTWW4AB6uV0O8k6ylTKgAAAAw","level":0,"time":"2018-09-11T19:11:22+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTWW4AB6uV0O8k6ylTKgAAAAw","level":0,"time":"2018-09-11T19:11:22+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTd6GzJ82Yx3Ddzx9DjgAAAAY","level":0,"time":"2018-09-11T19:11:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTd6GzJ82Yx3Ddzx9DjgAAAAY","level":0,"time":"2018-09-11T19:11:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTlSzh01gCG1@tqF9lJQAAABA","level":0,"time":"2018-09-11T19:12:22+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTlSzh01gCG1@tqF9lJQAAABA","level":0,"time":"2018-09-11T19:12:22+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\Authentication\\Token\\DefaultTokenProvider::updateTokenActivity","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"updating activity of token 68083 to 1536693142"}
{"reqId":"W5gTlSzh01gCG1@tqF9lJQAAABA","level":0,"time":"2018-09-11T19:12:22+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTs7sZBg@4s0JtTJlsvAAAAAQ","level":0,"time":"2018-09-11T19:12:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}
{"reqId":"W5gTs7sZBg@4s0JtTJlsvAAAAAQ","level":0,"time":"2018-09-11T19:12:52+00:00","remoteAddr":"47.201.253.68","user":"krisb","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"token 67cd33ba01e607f73e514738642e7738e507450ecdf704029bcb97901ce1052a6e4a53c363741512e13b5e6f831c4bad71548bb99b92266b1b4a2af44e19746b with token id 68083 found, validating"}

Browser log

jquery-migrate.min.js?v=5de1750d1525f0869597157f392f27a8:2 JQMIGRATE: Migrate is installed, version 1.4.0
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
js.js?v=5de1750d1525f0869597157f392f27a8:2296 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js?v=5de1750d1525f0869597157f392f27a8:2296
/index.php/apps/gallery/preview/40?width=2000&height=2000&c=9c11106f87bd279ef1dbc779a5a16a1b&requesttoken=TA1GAxAiQ1w3P0ZkHz8LTgBICB0DAFQaBlh9S2sdHTU%3D%3Ag95nDs%2Bdzi0VQXl9Y8CiYnctW44y1koCT1IxCSLHU7E%3D:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Hey,

maybe you could try to update the gallery app to the recent 16.1.0 release available at the marketplace? This seems to contain the following note in its changelog:

Fix to work properly with 10.0.9

1 Like

Thank you for the tip. When I noticed the gallery wasn’t working I grabbed the latest version from github and completely forgot to check the marketplace. So I downloaded the update from the marketplace and started to enable it but then I realized that it requires a full owncloud update to enable it with the associated backups of DB/Data/Etc. I can’t take the system down for that long right now but I will give it a try later tonight and report back. Again thank you!

After the update Gallery & Preview are working again thank you @tom42!

1 Like

Issue still present.

I installed OwnCloud 10.3.2 with Gallery 16.1.1 and the previews are not working.
As my primary use case is to have a shared cloud for photo exchange between photographers and editors, I would like to ask you if you can check this issue again?

I also tried Media Viewer 1.0.1 but it not helps.

Hey,

i think it could be better to do a new posting in a separate thread instead of posting in an already solved and aged thread because i think the chances are high that you have a completely different problem.

Make sure to provide more information on your issue and the environment ownCloud is running on by filling out the template showing up when creating a new thread.

Please open a new post for this issue

1 Like