{"action":"opened","issue":{"url":"https://api.github.com/repos/EvokeNet/humhub/issues/86","repository_url":"https://api.github.com/repos/EvokeNet/humhub","labels_url":"https://api.github.com/repos/EvokeNet/humhub/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/EvokeNet/humhub/issues/86/comments","events_url":"https://api.github.com/repos/EvokeNet/humhub/issues/86/events","html_url":"https://github.com/EvokeNet/humhub/issues/86","id":169694756,"number":86,"title":"PHP error on search","user":{"login":"nathanverrill","id":273429,"avatar_url":"https://avatars.githubusercontent.com/u/273429?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanverrill","html_url":"https://github.com/nathanverrill","followers_url":"https://api.github.com/users/nathanverrill/followers","following_url":"https://api.github.com/users/nathanverrill/following{/other_user}","gists_url":"https://api.github.com/users/nathanverrill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanverrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanverrill/subscriptions","organizations_url":"https://api.github.com/users/nathanverrill/orgs","repos_url":"https://api.github.com/users/nathanverrill/repos","events_url":"https://api.github.com/users/nathanverrill/events{/privacy}","received_events_url":"https://api.github.com/users/nathanverrill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"JayantGandhi","id":4398613,"avatar_url":"https://avatars.githubusercontent.com/u/4398613?v=3","gravatar_id":"","url":"https://api.github.com/users/JayantGandhi","html_url":"https://github.com/JayantGandhi","followers_url":"https://api.github.com/users/JayantGandhi/followers","following_url":"https://api.github.com/users/JayantGandhi/following{/other_user}","gists_url":"https://api.github.com/users/JayantGandhi/gists{/gist_id}","starred_url":"https://api.github.com/users/JayantGandhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayantGandhi/subscriptions","organizations_url":"https://api.github.com/users/JayantGandhi/orgs","repos_url":"https://api.github.com/users/JayantGandhi/repos","events_url":"https://api.github.com/users/JayantGandhi/events{/privacy}","received_events_url":"https://api.github.com/users/JayantGandhi/received_events","type":"User","site_admin":false},"assignees":[{"login":"JayantGandhi","id":4398613,"avatar_url":"https://avatars.githubusercontent.com/u/4398613?v=3","gravatar_id":"","url":"https://api.github.com/users/JayantGandhi","html_url":"https://github.com/JayantGandhi","followers_url":"https://api.github.com/users/JayantGandhi/followers","following_url":"https://api.github.com/users/JayantGandhi/following{/other_user}","gists_url":"https://api.github.com/users/JayantGandhi/gists{/gist_id}","starred_url":"https://api.github.com/users/JayantGandhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayantGandhi/subscriptions","organizations_url":"https://api.github.com/users/JayantGandhi/orgs","repos_url":"https://api.github.com/users/JayantGandhi/repos","events_url":"https://api.github.com/users/JayantGandhi/events{/privacy}","received_events_url":"https://api.github.com/users/JayantGandhi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-08-05T20:55:35Z","updated_at":"2016-08-05T20:55:35Z","closed_at":null,"body":"Hit magnifying glass, enter Nathan Verrill as search phrase\r\n\r\nException – yii\\base\\Exception\r\n\r\nCould not determine container type!\r\n1. in /srv/www/dev.humhub.m00.com.br/protected/humhub/modules/content/models/Content.php at line 631\r\n622623624625626627628629630631632633634635636637638639640        if ($this->_container != null) {\r\n            return $this->_container;\r\n        }\r\n \r\n        if ($this->space_id != null) {\r\n            $container = $this->space;\r\n        } elseif ($this->user_id != null) {\r\n            $container = $this->user;\r\n        } else {\r\n            throw new Exception(\"Could not determine container type!\");\r\n        }\r\n \r\n        $this->_container = $container;\r\n \r\n        return $this->_container;\r\n    }\r\n \r\n    public function beforeValidate()\r\n    {\r\n2. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Component.php at line 130 – humhub\\modules\\content\\models\\Content::getContainer()\r\n3. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/db/BaseActiveRecord.php at line 247 – yii\\base\\Component::__get('container')\r\n4. in /srv/www/dev.humhub.m00.com.br/themes/Evoke/views/content/widgets/wallEntry.php at line 10 – yii\\db\\BaseActiveRecord::__get('container')\r\n45678910111213141516use humhub\\modules\\space\\models\\Space;\r\nuse humhub\\modules\\user\\models\\User;\r\nuse humhub\\modules\\content\\components\\ContentContainerController;\r\nuse app\\modules\\teams\\models\\Team;\r\n \r\n$user = $object->content->user;\r\n$container = $object->content->container;\r\n \r\n$team_id = Team::getUserTeam($user->id);\r\nif($team_id){\r\n    $team = Team::findOne($team_id);\r\n}else{\r\n    $team = null;\r\n5. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/srv/www/dev.humhub.m00.com.br/t...')\r\n6. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\\base\\View::renderPhpFile('/srv/www/dev.humhub.m00.com.br/t...', ['content' => ' <span id=\"post-content-60\" styl...', 'object' => humhub\\modules\\post\\models\\Post, 'wallEntryWidget' => humhub\\modules\\post\\widgets\\WallEntry])\r\n7. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/View.php at line 149 – yii\\base\\View::renderFile('/srv/www/dev.humhub.m00.com.br/p...', ['content' => ' <span id=\"post-content-60\" styl...', 'object' => humhub\\modules\\post\\models\\Post, 'wallEntryWidget' => humhub\\modules\\post\\widgets\\WallEntry], humhub\\modules\\post\\widgets\\WallEntry)\r\n8. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Widget.php at line 191 – yii\\base\\View::render('@humhub/modules/content/widgets/...', ['content' => ' <span id=\"post-content-60\" styl...', 'object' => humhub\\modules\\post\\models\\Post, 'wallEntryWidget' => humhub\\modules\\post\\widgets\\WallEntry], humhub\\modules\\post\\widgets\\WallEntry)\r\n9. in /srv/www/dev.humhub.m00.com.br/protected/humhub/modules/content/widgets/WallEntry.php at line 112 – yii\\base\\Widget::render('@humhub/modules/content/widgets/...', ['content' => ' <span id=\"post-content-60\" styl...', 'object' => humhub\\modules\\post\\models\\Post, 'wallEntryWidget' => humhub\\modules\\post\\widgets\\WallEntry])\r\n106107108109110111112113114115116117118        ob_implicit_flush(false);\r\n        try {\r\n            $out = $this->render($this->wallEntryLayout, [\r\n                'content' => $this->run(),\r\n                'object' => $this->contentObject,\r\n                'wallEntryWidget' => $this\r\n            ]);\r\n        } catch (\\Exception $e) {\r\n            ob_end_clean();\r\n            throw $e;\r\n        }\r\n \r\n        return ob_get_clean() . $out;\r\n10. in /srv/www/dev.humhub.m00.com.br/protected/humhub/modules/content/components/ContentActiveRecord.php at line 124 – humhub\\modules\\content\\widgets\\WallEntry::renderWallEntry()\r\n118119120121122123124125126127128129130     */\r\n    public function getWallOut($params = [])\r\n    {\r\n        $wallEntryWidget = $this->getWallEntryWidget();\r\n        if ($wallEntryWidget !== null) {\r\n            Yii::configure($wallEntryWidget, $params);\r\n            return $wallEntryWidget->renderWallEntry();\r\n        }\r\n        return \"\";\r\n    }\r\n \r\n    /**\r\n     * Returns the assigned wall entry widget instance\r\n11. in /srv/www/dev.humhub.m00.com.br/protected/humhub/modules/search/views/search/index.php at line 108 – humhub\\modules\\content\\components\\ContentActiveRecord::getWallOut()\r\n102103104105106107108109110111112113114                <div class=\"searchResults\">\r\n \r\n                    <?php if (count($results) > 0): ?>\r\n                        <?php foreach ($results as $result): ?>\r\n \r\n                            <?php if ($result instanceof ContentActiveRecord || $result instanceof ContentContainerActiveRecord) : ?>\r\n                                <?php echo $result->getWallOut(); ?>\r\n                            <?php else: ?>\r\n                                No Output for Class <?php echo get_class($result); ?>\r\n                            <?php endif; ?>\r\n                        <?php endforeach; ?>\r\n                    <?php else: ?>\r\n                        <p>Sorry nothing found :(</p>\r\n12. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/srv/www/dev.humhub.m00.com.br/p...')\r\n13. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\\base\\View::renderPhpFile('/srv/www/dev.humhub.m00.com.br/p...', ['scope' => 'all', 'keyword' => 'nathan verrill', 'results' => [humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, ...], 'pagination' => yii\\data\\Pagination, ...])\r\n14. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/View.php at line 149 – yii\\base\\View::renderFile('/srv/www/dev.humhub.m00.com.br/p...', ['scope' => 'all', 'keyword' => 'nathan verrill', 'results' => [humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, ...], 'pagination' => yii\\data\\Pagination, ...], humhub\\modules\\search\\controllers\\SearchController)\r\n15. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Controller.php at line 377 – yii\\base\\View::render('index', ['scope' => 'all', 'keyword' => 'nathan verrill', 'results' => [humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, ...], 'pagination' => yii\\data\\Pagination, ...], humhub\\modules\\search\\controllers\\SearchController)\r\n16. in /srv/www/dev.humhub.m00.com.br/protected/humhub/modules/search/controllers/SearchController.php at line 94 – yii\\base\\Controller::render('index', ['scope' => 'all', 'keyword' => 'nathan verrill', 'results' => [humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, humhub\\modules\\user\\models\\User, ...], 'pagination' => yii\\data\\Pagination, ...])\r\n888990919293949596979899100            'scope' => $scope,\r\n            'keyword' => $keyword,\r\n            'results' => $searchResultSet->getResultInstances(),\r\n            'pagination' => $pagination,\r\n            'totals' => $this->getTotals($keyword, $options),\r\n            'limitSpaceGuids' => $limitSpaceGuids\r\n        ));\r\n    }\r\n \r\n    /**\r\n     * JSON Search interface for Mentioning\r\n     */\r\n    public function actionMentioning()\r\n17. humhub\\modules\\search\\controllers\\SearchController::actionIndex()\r\n18. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([humhub\\modules\\search\\controllers\\SearchController, 'actionIndex'], [])\r\n19. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Controller.php at line 154 – yii\\base\\InlineAction::runWithParams(['r' => 'search/search/index', 'keyword' => 'nathan verrill', 'limitSpaceGuids' => ''])\r\n20. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Module.php at line 454 – yii\\base\\Controller::runAction('index', ['r' => 'search/search/index', 'keyword' => 'nathan verrill', 'limitSpaceGuids' => ''])\r\n21. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/web/Application.php at line 84 – yii\\base\\Module::runAction('search/search/index', ['r' => 'search/search/index', 'keyword' => 'nathan verrill', 'limitSpaceGuids' => ''])\r\n22. in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\\web\\Application::handleRequest(humhub\\components\\Request)\r\n23. in /srv/www/dev.humhub.m00.com.br/index.php at line 25 – yii\\base\\Application::run()\r\n19202122232425    require(__DIR__ . '/protected/humhub/config/web.php'),\r\n    (is_readable(__DIR__ . '/protected/config/dynamic.php')) ? require(__DIR__ . '/protected/config/dynamic.php') : [],\r\n    require(__DIR__ . '/protected/config/common.php'),\r\n    require(__DIR__ . '/protected/config/web.php')\r\n);\r\n \r\n(new humhub\\components\\Application($config))->run();\r\n $_GET = [\r\n    'r' => 'search/search/index',\r\n    'keyword' => 'nathan verrill',\r\n    'limitSpaceGuids' => '',\r\n];\r\n\r\n$_COOKIE = [\r\n    '_csrf' => '224aa7ee4562eee254472306dabb6ae07eb6b51a0e9f65c45e501c7ae2c9dd36a:2:{i:0;s:5:\"_csrf\";i:1;s:32:\"mUF5nHKv-RSsVkmIAWSAknfqFUDRKtCC\";}',\r\n    'pm_space-members-panel' => 'expanded',\r\n    'pm_user-tags-panel' => 'expanded',\r\n    'pm_user-spaces-panel' => 'expanded',\r\n    'pm_profile-following-panel' => 'expanded',\r\n    'language' => '21351261ae4d81ca3f5873a42e399a283387c65465209c43ef5571abea4dc6c1a:2:{i:0;s:8:\"language\";i:1;s:2:\"es\";}',\r\n    'PHPSESSID' => 'g67c2f4bf6mgnqq5i0dotca9g6',\r\n    '_identity' => '7c95287fe24b33885820e3e0f85daf9a51c76a7662295acd30b06f3d5bc371f0a:2:{i:0;s:9:\"_identity\";i:1;s:52:\"[181,\"5ca923e8-84f6-498f-9193-d638e8e36395\",2592000]\";}',\r\n];\r\n\r\n$_SESSION = [\r\n    '__flash' => [],\r\n    '__returnUrl' => '/index.php',\r\n    '__id' => 181,\r\n];\r\nYii Framework\r\n2016-08-05, 15:54:48\r\n\r\nApache\r\nYii Framework/2.0.7"}}
{"actor":{"display_login":"nathanverrill"}}