{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/16113","labels_url":"https://api.github.com/repos/owncloud/core/issues/16113/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/16113/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/16113/events","html_url":"https://github.com/owncloud/core/issues/16113","id":73583741,"number":16113,"title":"Cannot enable or disable apps having redis cache active","user":{"login":"jvillafanez","id":1477829,"avatar_url":"https://avatars.githubusercontent.com/u/1477829?v=3","gravatar_id":"","url":"https://api.github.com/users/jvillafanez","html_url":"https://github.com/jvillafanez","followers_url":"https://api.github.com/users/jvillafanez/followers","following_url":"https://api.github.com/users/jvillafanez/following{/other_user}","gists_url":"https://api.github.com/users/jvillafanez/gists{/gist_id}","starred_url":"https://api.github.com/users/jvillafanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvillafanez/subscriptions","organizations_url":"https://api.github.com/users/jvillafanez/orgs","repos_url":"https://api.github.com/users/jvillafanez/repos","events_url":"https://api.github.com/users/jvillafanez/events{/privacy}","received_events_url":"https://api.github.com/users/jvillafanez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/settings:apps","name":"settings:apps","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev2-high","name":"sev2-high","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/31","html_url":"https://github.com/owncloud/core/milestones/8.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/31/labels","id":912160,"number":31,"title":"8.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":86,"closed_issues":1296,"state":"open","created_at":"2014-12-22T12:04:01Z","updated_at":"2015-06-02T11:51:45Z","due_on":"2015-04-02T22:00:00Z","closed_at":null},"comments":8,"created_at":"2015-05-06T10:28:42Z","updated_at":"2015-06-02T12:07:43Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Setup and configure a redis server (installed php5-redis, redis-server, and redis-tools from ubuntu repos; default configuration)\r\n2. Configure ownCloud to use redis\r\n\r\n    ```\r\n     'memcache.local' => '\\OC\\Memcache\\redis',\r\n  'redis' => array(\r\n        'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'\r\n        'port' => 6379,\r\n        'timeout' => 0.0,\r\n        'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.\r\n  ),\r\n\r\n    ```\r\n\r\n3. Disable an enabled app\r\n\r\n### Expected behaviour\r\nApp is disabled correctly\r\n\r\n### Actual behaviour\r\nErrors are thrown. The CLI also crashes with the same error.\r\n\r\n### Server configuration\r\n**Operating system**: ubuntu 14.04\r\n\r\n**Web server:** apache 2.4.7\r\n\r\n**Database:** mysql\r\n\r\n**PHP version:** 5.5.9\r\n\r\n**ownCloud version:** OC 8.1 alpha 3\r\n\r\n**Updated from an older ownCloud or fresh install:** fresh install\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\n[Wed May 06 12:19:27.697092 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP   3. OC\\\\Route\\\\Router->match() /home/jvillafanez/src/owncloud/owncloud2/lib/base.php:858, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n[Wed May 06 12:19:27.697142 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP   4. call_user_func() /home/jvillafanez/src/owncloud/owncloud2/lib/private/route/router.php:272, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n[Wed May 06 12:19:27.697176 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP   5. __lambda_func() /home/jvillafanez/src/owncloud/owncloud2/lib/private/route/router.php:272, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n[Wed May 06 12:19:27.697211 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP   6. require_once() /home/jvillafanez/src/owncloud/owncloud2/lib/private/route/route.php(153) : runtime-created function:1, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n[Wed May 06 12:19:27.697256 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP   7. OC_App::disable() /home/jvillafanez/src/owncloud/owncloud2/settings/ajax/disableapp.php:34, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n[Wed May 06 12:19:27.697299 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP   8. OC\\\\App\\\\AppManager->disableApp() /home/jvillafanez/src/owncloud/owncloud2/lib/private/app.php:357, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n[Wed May 06 12:19:27.697343 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP   9. OC\\\\App\\\\AppManager->clearAppsCache() /home/jvillafanez/src/owncloud/owncloud2/lib/private/app/appmanager.php:200, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n[Wed May 06 12:19:27.697387 2015] [:error] [pid 12475] [client 10.40.30.21:57928] PHP  10. OC\\\\Memcache\\\\Redis->clear() /home/jvillafanez/src/owncloud/owncloud2/lib/private/app/appmanager.php:208, referer: http://10.40.30.21:8120/index.php/settings/apps\r\n\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n{\"reqId\":\"kDNpZBjWan50YOa3MfmJ\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"Undefined class constant 'OPT_SCAN' at \\/home\\/jvillafanez\\/src\\/owncloud\\/owncloud2\\/lib\\/private\\/memcache\\/redis.php#105\",\"level\":3,\"time\":\"2015-05-06T10:17:16+00:00\"}\r\n{\"reqId\":\"E5lxaDKGR49NPXrY7\\/kN\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"Undefined class constant 'OPT_SCAN' at \\/home\\/jvillafanez\\/src\\/owncloud\\/owncloud2\\/lib\\/private\\/memcache\\/redis.php#105\",\"level\":3,\"time\":\"2015-05-06T10:18:59+00:00\"}\r\n{\"reqId\":\"mmy08xkXUHo847TU2zOH\",\"remoteAddr\":\"10.40.30.21\",\"app\":\"PHP\",\"message\":\"Undefined class constant 'OPT_SCAN' at \\/home\\/jvillafanez\\/src\\/owncloud\\/owncloud2\\/lib\\/private\\/memcache\\/redis.php#105\",\"level\":3,\"time\":\"2015-05-06T10:19:27+00:00\"}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/107930657","html_url":"https://github.com/owncloud/core/issues/16113#issuecomment-107930657","issue_url":"https://api.github.com/repos/owncloud/core/issues/16113","id":107930657,"user":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T12:07:43Z","updated_at":"2015-06-02T12:07:43Z","body":"@nickvergessen can you please add a version check for redis? Code is kind of identical as with apcu - THX"}}