{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/gallery/issues/106","repository_url":"https://api.github.com/repos/nextcloud/gallery","labels_url":"https://api.github.com/repos/nextcloud/gallery/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/gallery/issues/106/comments","events_url":"https://api.github.com/repos/nextcloud/gallery/issues/106/events","html_url":"https://github.com/nextcloud/gallery/issues/106","id":174946004,"number":106,"title":"App stops working if enable_previews is set to false","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nextcloud/gallery/labels/coder%20wanted","name":"coder wanted","color":"bfe5bf"},{"url":"https://api.github.com/repos/nextcloud/gallery/labels/enhancement","name":"enhancement","color":"02e10c"},{"url":"https://api.github.com/repos/nextcloud/gallery/labels/in%20progress","name":"in progress","color":"FF3399"},{"url":"https://api.github.com/repos/nextcloud/gallery/labels/junior%20job","name":"junior job","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-04T12:15:29Z","updated_at":"2016-09-04T12:15:31Z","closed_at":null,"body":"_From @sualko on January 5, 2016 12:44_\n\nAlso the image full size preview in the file viewer does not work as normally.\r\n\r\n### Steps to reproduce\r\n1. Set 'enable_previews' to false in config.php\r\n2. Go to gallery app or switch to gallery app in file viewer\r\n\r\n### Expected behaviour\r\nShow pictures\r\n\r\n### Actual behaviour\r\nNothing is shown. <code>/index.php/apps/gallery/files/list?location=&mediatypes=&features=&etag</code> returns <code>{\"files\":[],\"albuminfo\":{\"path\":\"\",\"fileid\":2,\"permissions\":31,\"etag\":\"568a7f3370702\"},\"locationhaschanged\":false}</code>.\r\n\r\n### Server configuration\r\n**Operating system**: Ubuntu 12.04\r\n\r\n**Web server:** Apache 2.4\r\n\r\n**Database:** MariaDB 5.5.47\r\n\r\n**PHP version:** 5.5\r\n\r\n**ownCloud version:** 8.2.1.4\r\n\r\n**Updated from an older ownCloud or fresh install:** Updated\r\n\r\n**List of activated apps:**\r\n  - activity: 2.1.3\r\n  - calendar: 0.8.1\r\n  - contacts: 0.5.0.0\r\n  - direct_menu: 0.5\r\n  - documents: 0.11.0\r\n  - files: 1.2.0\r\n  - files_external: 0.3.0\r\n  - files_pdfviewer: 0.7\r\n  - files_sharing: 0.7.0\r\n  - files_texteditor: 2.0\r\n  - files_trashbin: 0.7.0\r\n  - gallery: 14.2.0\r\n  - ojsxc: 2.1.5\r\n  - piwik: 0.1.0\r\n  - templateeditor: 0.1\r\n  - updater: 0.6\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n{\r\n    \"system\": {\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"datadirectory\": \"\\/var\\/www\\/wolke.herberth.eu\\/data\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"8.2.1.4\",\r\n        \"dbname\": \"REMOVED\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"installed\": true,\r\n        \"instanceid\": \"50acf6ecd6f31\",\r\n        \"loglevel\": 3,\r\n        \"maintenance\": false,\r\n        \"blacklisted_files\": [\r\n            \".htaccess\",\r\n            \"php.ini\"\r\n        ],\r\n        \"forcessl\": true,\r\n        \"session_lifetime\": 3600,\r\n        \"theme\": \"\",\r\n        \"trusted_domains\": [\r\n        ],\r\n        \"mail_from_address\": \"wolke\",\r\n        \"mail_smtpmode\": \"php\",\r\n        \"mail_domain\": \"REMOVED\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"debug\": true,\r\n        \"trashbin_retention_obligation\": \"auto\",\r\n        \"filelocking.enabled\": \"true\",\r\n        \"memcache.locking\": \"\\\\OC\\\\Memcache\\\\Redis\",\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\Redis\",\r\n        \"redis\": {\r\n            \"host\": \"\\/var\\/run\\/redis\\/redis.sock\",\r\n            \"port\": 0,\r\n            \"timeout\": 0\r\n        },\r\n        \"enable_previews\": false\r\n    },\r\n    \"apps\": {\r\n        \"activity\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"2.1.3\",\r\n            \"types\": \"filesystem\"\r\n        },\r\n        \"admin_dependencies_chk\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.02\",\r\n            \"ocsid\": \"166041\",\r\n            \"types\": \"\"\r\n        },\r\n        \"admin_migrate\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.1\"\r\n        },\r\n        \"appframework\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"1.0\",\r\n            \"types\": \"\"\r\n        },\r\n        \"backgroundjob\": {\r\n            \"lastjob\": \"3\"\r\n        },\r\n        \"bookmarks\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.4\",\r\n            \"ocsid\": \"168710\",\r\n            \"types\": \"\"\r\n        },\r\n        \"calendar\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.8.1\",\r\n            \"ocsid\": \"168707\",\r\n            \"types\": \"\"\r\n        },\r\n        \"contacts\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.5.0.0\",\r\n            \"ocsid\": \"168708\",\r\n            \"types\": \"\"\r\n        },\r\n        \"core\": {\r\n            \"backgroundjobs_mode\": \"cron\",\r\n            \"backgroundjobs_step\": \"regular_tasks\",\r\n            \"backgroundjobs_task\": \"OC_Cache_FileGlobal-gc\",\r\n            \"global_cache_gc_lastrun\": \"1437729302\",\r\n            \"installedat\": \"1353512663.3967\",\r\n            \"lastcron\": \"1451996103\",\r\n            \"lastupdateResult\": \"{\\\"version\\\":{},\\\"versionstring\\\":{},\\\"url\\\":{},\\\"web\\\":{}}\",\r\n            \"lastupdatedat\": \"1451995248\",\r\n            \"public_caldav\": \"calendar\\/share.php\",\r\n            \"public_calendar\": \"calendar\\/share.php\",\r\n            \"public_documents\": \"documents\\/public.php\",\r\n            \"public_files\": \"files_sharing\\/public.php\",\r\n            \"public_gallery\": \"gallery\\/public.php\",\r\n            \"public_shorty_qrcode\": \"shorty\\/qrcode.php\",\r\n            \"public_shorty_query\": \"shorty\\/query.php\",\r\n            \"public_shorty_relay\": \"shorty\\/relay.php\",\r\n            \"public_webdav\": \"files_sharing\\/publicwebdav.php\",\r\n            \"remote_ampache\": \"media\\/remote.php\",\r\n            \"remote_caldav\": \"calendar\\/appinfo\\/remote.php\",\r\n            \"remote_calendar\": \"calendar\\/appinfo\\/remote.php\",\r\n            \"remote_carddav\": \"contacts\\/appinfo\\/remote.php\",\r\n            \"remote_contacts\": \"contacts\\/appinfo\\/remote.php\",\r\n            \"remote_contactthumbnail\": \"contacts\\/thumbnail.php\",\r\n            \"remote_core.css\": \"\\/core\\/minimizer.php\",\r\n            \"remote_core.js\": \"\\/core\\/minimizer.php\",\r\n            \"remote_files\": \"files\\/appinfo\\/remote.php\",\r\n            \"remote_filesync\": \"files\\/appinfo\\/filesync.php\",\r\n            \"remote_webdav\": \"files\\/appinfo\\/remote.php\",\r\n            \"repairlegacystoragesdone\": \"yes\",\r\n            \"shareapi_allow_mail_notification\": \"yes\",\r\n            \"shareapi_allow_public_notification\": \"yes\",\r\n            \"shareapi_default_expire_date\": \"yes\",\r\n            \"shareapi_expire_after_n_days\": \"21\"\r\n        },\r\n        \"direct_menu\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.5\",\r\n            \"ocsid\": \"169148\",\r\n            \"types\": \"\"\r\n        },\r\n        \"documents\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.11.0\",\r\n            \"ocsid\": \"168711\",\r\n            \"types\": \"\",\r\n            \"unstable\": \"false\"\r\n        },\r\n        \"files\": {\r\n            \"backgroundwatcher_previous_file\": \"580\",\r\n            \"backgroundwatcher_previous_folder\": \"16470\",\r\n            \"default_quota\": \"none\",\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"1.2.0\",\r\n            \"mountconfigmtime\": \"1355946610\",\r\n            \"types\": \"filesystem\"\r\n        },\r\n        \"files_external\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.3.0\",\r\n            \"ocsid\": \"166048\",\r\n            \"types\": \"filesystem\"\r\n        },\r\n        \"files_imageviewer\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"1.0\"\r\n        },\r\n        \"files_imageviewer2\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"1.0\",\r\n            \"types\": \"\"\r\n        },\r\n        \"files_mv\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.6.0\",\r\n            \"ocsid\": \"150271\",\r\n            \"types\": \"filesystem\"\r\n        },\r\n        \"files_odfviewer\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.1\"\r\n        },\r\n        \"files_pdfviewer\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.7\",\r\n            \"ocsid\": \"166049\",\r\n            \"types\": \"\"\r\n        },\r\n        \"files_quicksearch\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.1.1\",\r\n            \"types\": \"\"\r\n        },\r\n        \"files_sharing\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.7.0\",\r\n            \"types\": \"filesystem\"\r\n        },\r\n        \"files_texteditor\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"2.0\",\r\n            \"ocsid\": \"166051\",\r\n            \"types\": \"\"\r\n        },\r\n        \"files_trashbin\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.7.0\",\r\n            \"types\": \"filesystem\"\r\n        },\r\n        \"files_tree\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.6.0\",\r\n            \"types\": \"\"\r\n        },\r\n        \"files_versions\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"1.0.2\",\r\n            \"types\": \"filesystem\"\r\n        },\r\n        \"firstrunwizard\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"1.0\",\r\n            \"types\": \"\"\r\n        },\r\n        \"gallery\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"14.2.0\",\r\n            \"types\": \"\"\r\n        },\r\n        \"galleryplus\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"14.3.0\",\r\n            \"ocsid\": \"169116\",\r\n            \"types\": \"\"\r\n        },\r\n        \"mail\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.1.3\",\r\n            \"ocsid\": \"169914\",\r\n            \"types\": \"\"\r\n        },\r\n        \"media\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.4.3\"\r\n        },\r\n        \"news\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"8.2\",\r\n            \"types\": \"\"\r\n        },\r\n        \"ojsxc\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"2.1.5\",\r\n            \"ocsid\": \"162257\",\r\n            \"types\": \"\",\r\n        },\r\n        \"piwik\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.1.0\",\r\n            \"internal\": \"yes\",\r\n            \"piwik\": \"REMOVED\",\r\n            \"types\": \"\"\r\n        },\r\n        \"shorty\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.3.27\",\r\n            \"ocsid\": \"150401\",\r\n            \"types\": \"internet,bookmark\"\r\n        },\r\n        \"tasks\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.1\",\r\n            \"types\": \"\"\r\n        },\r\n        \"templateeditor\": {\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.1\",\r\n            \"types\": \"\"\r\n        },\r\n        \"updater\": {\r\n            \"1a9dcc9ec5b895fa47a3c328e07105f8\": \"\",\r\n            \"9ce4c2c49357a02b73ae0a2db2ed55ad\": \"1\",\r\n            \"enabled\": \"yes\",\r\n            \"installed_version\": \"0.6\",\r\n            \"types\": \"\"\r\n        },\r\n        \"user_external\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.1\",\r\n            \"types\": \"authentication,prelogin\"\r\n        },\r\n        \"user_migrate\": {\r\n            \"enabled\": \"no\",\r\n            \"installed_version\": \"0.1\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n**Are you using external storage, if yes which one:** no\r\n\r\n**Are you using encryption:** no\r\n\r\n**Are you using an external user-backend, if yes which one:** no\r\n\r\n### Client configuration\r\n**Browser:** Opera 33.0 \r\n\r\n**Operating system:** Ubuntu 14.04\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29601493-app-stops-working-if-enable_previews-is-set-to-false?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>\n\n_Copied from original issue: owncloud/gallery#488_"},"comment":{"url":"https://api.github.com/repos/nextcloud/gallery/issues/comments/244600087","html_url":"https://github.com/nextcloud/gallery/issues/106#issuecomment-244600087","issue_url":"https://api.github.com/repos/nextcloud/gallery/issues/106","id":244600087,"user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T12:15:31Z","updated_at":"2016-09-04T12:15:31Z","body":"I agree that the doc should be improved and I've opened a ticket there: https://github.com/owncloud/documentation/issues/1982\r\n\r\n> Do you have any advise, how I could easily disable file previews, but still use the gallery app?\r\n\r\nUnfortunately, no. Gallery will not have its own engine, for as long as one is provided in `core`. "}}
{"actor":{"display_login":"oparoz"}}