In preparation for Literacy Demo, created a new user in the admin and attempted to use the "become this user" feature and got the error below. When I logged out and logged in as the user I did not get an error and was able to create a team successfully. However, the missions were not displayed in the navigation (I'll log another issue for that)
PHP Notice – yii\base\ErrorException
Trying to get property of non-object
in /srv/www/dev.humhub.m00.com.br/protected/modules/missions/widgets/views/evocoins_review.php at line 65
56575859606162636465666768697071727374
in /srv/www/dev.humhub.m00.com.br/protected/modules/missions/widgets/views/evocoins_review.php at line 65 – yii\base\ErrorHandler::handleError(8, 'Trying to get property of non-ob...', '/srv/www/dev.humhub.m00.com.br/p...', 65, ...)
59606162636465666768697071
= Yii::t('MissionsModule.base', 'Earn Evocoins by reviewing evidence.') ?>
= $wallet->amount ?>
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...')
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...', [])
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...', [], humhub\modules\missions\widgets\EvocoinsReview)
in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Widget.php at line 191 – yii\base\View::render('evocoins_review', [], humhub\modules\missions\widgets\EvocoinsReview)
in /srv/www/dev.humhub.m00.com.br/protected/modules/missions/widgets/EvocoinsReview.php at line 18 – yii\base\Widget::render('evocoins_review', [])
121314151617181920212223
/**
@inheritdoc
*/
public function run()
{
return $this->render('evocoins_review', []);
}
}
?>
in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Widget.php at line 98 – humhub\modules\missions\widgets\EvocoinsReview::run()
in /srv/www/dev.humhub.m00.com.br/protected/humhub/widgets/BaseStack.php at line 92 – yii\base\Widget::widget([])
86878889909192939495969798 $i = 0;
foreach ($this->getWidgets() as $widget) {
$i++;
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...')
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...', ['showProfilePostForm' => '1'])
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...', ['showProfilePostForm' => '1'], humhub\modules\dashboard\controllers\DashboardController)
in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Controller.php at line 377 – yii\base\View::render('index', ['showProfilePostForm' => '1'], humhub\modules\dashboard\controllers\DashboardController)
in /srv/www/dev.humhub.m00.com.br/protected/humhub/modules/dashboard/controllers/DashboardController.php at line 53 – yii\base\Controller::render('index', ['showProfilePostForm' => '1'])
47484950515253545556575859 */
public function actionIndex()
{
if (Yii::$app->user->isGuest) {
return $this->render('index_guest', array());
} else {
return $this->render('index', array('showProfilePostForm' => Setting::Get('showProfilePostForm', 'dashboard')));
}
}
/*
Update user settings for hiding share panel on dashboard
*/
in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([humhub\modules\dashboard\controllers\DashboardController, 'actionIndex'], [])
in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Controller.php at line 154 – yii\base\InlineAction::runWithParams(['r' => ''])
in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/base/Module.php at line 454 – yii\base\Controller::runAction('', ['r' => ''])
in /srv/www/dev.humhub.m00.com.br/protected/vendor/yiisoft/yii2/web/Application.php at line 84 – yii\base\Module::runAction('', ['r' => ''])
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)
in /srv/www/dev.humhub.m00.com.br/index.php at line 25 – yii\base\Application::run()
19202122232425 require(DIR . '/protected/humhub/config/web.php'),
(is_readable(DIR . '/protected/config/dynamic.php')) ? require(DIR . '/protected/config/dynamic.php') : [],
require(DIR . '/protected/config/common.php'),
require(DIR . '/protected/config/web.php')
);
(new humhub\components\Application($config))->run();
$_GET = [
'r' => '',
];
In preparation for Literacy Demo, created a new user in the admin and attempted to use the "become this user" feature and got the error below. When I logged out and logged in as the user I did not get an error and was able to create a team successfully. However, the missions were not displayed in the navigation (I'll log another issue for that)
PHP Notice – yii\base\ErrorException
Trying to get property of non-object
in /srv/www/dev.humhub.m00.com.br/protected/modules/missions/widgets/views/evocoins_review.php at line 65 56575859606162636465666768697071727374
= Yii::t('MissionsModule.base', 'Earn Evocoins by reviewing evidence.') ?>
= $wallet->amount ?>
in /srv/www/dev.humhub.m00.com.br/protected/modules/missions/widgets/views/evocoins_review.php at line 65 – yii\base\ErrorHandler::handleError(8, 'Trying to get property of non-ob...', '/srv/www/dev.humhub.m00.com.br/p...', 65, ...) 59606162636465666768697071
= Yii::t('MissionsModule.base', 'Earn Evocoins by reviewing evidence.') ?>
= $wallet->amount ?>
}
?>
in /srv/www/dev.humhub.m00.com.br/protected/humhub/widgets/BaseStack.php at line 92 – yii\base\Widget::widget([]) 86878889909192939495969798 $i = 0; foreach ($this->getWidgets() as $widget) { $i++;
in /srv/www/dev.humhub.m00.com.br/themes/EvokeDark/views/dashboard/dashboard/index.php at line 46 – yii\base\Widget::widget(['widgets' => [['humhub\modules\activity\widgets...', ['streamAction' => '/dashboard/dashboard/stream'], ['sortOrder' => 150, 0 => ['label' => 'yay']]]]]) 4041424344454647484950
in /srv/www/dev.humhub.m00.com.br/protected/humhub/modules/dashboard/controllers/DashboardController.php at line 53 – yii\base\Controller::render('index', ['showProfilePostForm' => '1']) 47484950515253545556575859 */ public function actionIndex() { if (Yii::$app->user->isGuest) { return $this->render('index_guest', array()); } else { return $this->render('index', array('showProfilePostForm' => Setting::Get('showProfilePostForm', 'dashboard'))); } }
/*
(new humhub\components\Application($config))->run(); $_GET = [ 'r' => '', ];
$_COOKIE = [ 'fs_uid' => 'www.fullstory.com
21CH0
5629499534213120:5629499534213120', '_csrf' => '4290cfceed6b01626c6944bce794e4f01459c1040d725ed6105e435c8fc93eeaa:2:{i:0;s:5:"_csrf";i:1;s:32:"o3Zf2TrMuG4zi0EscHlkDeDPYKkKz07q";}', 'pm_space-members-panel' => 'expanded', 'language' => '9af3597d700b1e74cb505508460e6f1f74ffdf917785b0817ba7ed34f85c4562a:2:{i:0;s:8:"language";i:1;s:2:"en";}', '_gat' => '1', '_ga' => 'GA1.3.521622355.1477168563', 'PHPSESSID' => 'je91295gk9fvfelaii2bduj5q1', '_identity' => '59ae5cccac10c04bf5e1113b038afbe1d9553e85c93d4bef0e9d3699a3270fe1a:2:{i:0;s:9:"_identity";i:1;s:51:"[48,"73ec8dfe-93f3-406d-a15f-b86151b8bbff",2592000]";}', ];$_SESSION = [ 'flash' => [], 'id' => 250, ]; Yii Framework 2017-01-30, 14:20:11
Have to use the Create Wallets function in the admin before the "become this user" feature.