error install
Opened this issue · 0 comments
`PHP Strict Warning – yii\base\ErrorException
call_user_func() expects parameter 1 to be a valid callback, non-static method humhub\modules\album\Module::onProfileMenuInit() should not be called statically
- in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Event.php at line 188
179180181182183184185186187188189190191192193194195196 }
$class = get_class($class);
} else {
$class = ltrim($class, '');
}
do {
if (!empty(self::$_events[$name][$class])) {
foreach (self::$_events[$name][$class] as $handler) {
$event->data = $handler[1];
call_user_func($handler[0], $event);
if ($event->handled) {
return;
}
}
}
} while (($class = get_parent_class($class)) !== false);
}
} - yii\base\ErrorHandler::handleError(2048, 'call_user_func() expects paramet...', '/home/facedogs/public_html/prote...', 188, ...)
- in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Event.php at line 188 – call_user_func(['humhub\modules\album\Module', 'onProfileMenuInit'], yii\base\Event)
- in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Component.php at line 549 – yii\base\Event::trigger(humhub\modules\user\widgets\ProfileMenu, 'init', null)
- in /home/facedogs/public_html/protected/humhub/widgets/BaseMenu.php at line 51 – yii\base\Component::trigger('init')
45464748495051525354555657 public function init()
{
$this->addItemGroup(array(
'id' => '',
'label' => ''
));
$this->trigger(self::EVENT_INIT);
return parent::init();
}
/**
* Adds new Item to the menu
*
-
in /home/facedogs/public_html/protected/humhub/modules/user/widgets/ProfileMenu.php at line 53 – humhub\widgets\BaseMenu::init()
47484950515253545556575859 'url' => $this->user->createUrl('//user/profile/about'),
'sortOrder' => 300,
'isActive' => (Yii::$app->controller->id == "profile" && Yii::$app->controller->action->id == "about"),
));
//}parent::init();
}
public function run()
{
if (Yii::$app->user->isGuest && $this->user->visibility != User::VISIBILITY_ALL) {
return; -
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Object.php at line 107 – humhub\modules\user\widgets\ProfileMenu::init()
-
yii\base\Object::__construct(['user' => humhub\modules\user\models\User])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/di/Container.php at line 372 – ReflectionClass::newInstanceArgs([['user' => humhub\modules\user\models\User]])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/di/Container.php at line 151 – yii\di\Container::build('humhub\modules\user\widgets\Prof...', [], ['user' => humhub\modules\user\models\User])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/BaseYii.php at line 344 – yii\di\Container::get('humhub\modules\user\widgets\Prof...', [], ['user' => humhub\modules\user\models\User])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Widget.php at line 97 – yii\BaseYii::createObject(['user' => humhub\modules\user\models\User, 'class' => 'humhub\modules\user\widgets\Prof...'])
-
in /home/facedogs/public_html/protected/humhub/modules/user/views/profile/_layout.php at line 12 – yii\base\Widget::widget(['user' => humhub\modules\user\models\User])
6789101112131415161718
$user]); ?>
$this->context->user]); ?><?php if (isset($this->context->hideSidebar) && $this->context->hideSidebar) : ?> <div class="col-md-10 layout-content-container"> <?php echo $content; ?> </div>
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/home/facedogs/public_html/prote...')
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\base\View::renderPhpFile('/home/facedogs/public_html/prote...', ['content' => ' <div class="panel panel-default...'])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/View.php at line 149 – yii\base\View::renderFile('/home/facedogs/public_html/prote...', ['content' => ' <div class="panel panel-default...'], null)
-
in /home/facedogs/public_html/protected/humhub/views/layouts/main.php at line 118 – yii\base\View::render('@humhub/modules/user/views/profi...', ['content' => ' <div class="panel panel-default...'])
112113114115116117118119120121122123124<?php echo \humhub\modules\tour\widgets\Tour::widget(); ?> <!-- start: show content (and check, if exists a sublayout --> <?php if (isset($this->context->subLayout) && $this->context->subLayout != "") : ?> <?php echo $this->render($this->context->subLayout, array('content' => $content)); ?> <?php else: ?> <?php echo $content; ?> <?php endif; ?> <!-- end: show content --> <!-- start: Modal (every lightbox will/should use this construct to show content)-->
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/home/facedogs/public_html/prote...')
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\base\View::renderPhpFile('/home/facedogs/public_html/prote...', ['content' => ' <div class="panel panel-default...'])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Controller.php at line 386 – yii\base\View::renderFile('/home/facedogs/public_html/prote...', ['content' => ' <div class="panel panel-default...'], humhub\modules\user\controllers\ProfileController)
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Controller.php at line 372 – yii\base\Controller::renderContent(' <div class="panel panel-default...')
-
in /home/facedogs/public_html/protected/humhub/modules/user/controllers/ProfileController.php at line 56 – yii\base\Controller::render('index', ['user' => humhub\modules\user\models\User])
50515253545556575859606162
/**
*
*/
public function actionIndex()
{
return $this->render('index', ['user' => $this->contentContainer]);
}/**
*
*/
public function actionAbout() -
humhub\modules\user\controllers\ProfileController::actionIndex()
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([humhub\modules\user\controllers\ProfileController, 'actionIndex'], [])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Controller.php at line 151 – yii\base\InlineAction::runWithParams(['r' => 'user/profile', 'uguid' => '825ffaa9-bd24-474c-9f41-b3911a8c...'])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Module.php at line 455 – yii\base\Controller::runAction('', ['r' => 'user/profile', 'uguid' => '825ffaa9-bd24-474c-9f41-b3911a8c...'])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/web/Application.php at line 84 – yii\base\Module::runAction('user/profile', ['r' => 'user/profile', 'uguid' => '825ffaa9-bd24-474c-9f41-b3911a8c...'])
-
in /home/facedogs/public_html/protected/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest(humhub\components\Request)
-
in /home/facedogs/public_html/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' => 'user/profile',
'uguid' => '825ffaa9-bd24-474c-9f41-b3911a8c400b',
];
$SERVER = [
'DOCUMENT_ROOT' => '/home/facedogs/public_html',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8',
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, sdch',
'HTTP_ACCEPT_LANGUAGE' => 'es-419,es;q=0.8',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_COOKIE' => 'PHPSESSID=2d90d801e09ac38ba14717728672ec1c; _csrf=f6ab5fe75ab84ef78a649d72090ae971bf6bb7db49d3efc158791b35487faa20a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22yrfrz82OGbaNECHuaLW8S2IPSVI1GLZR%22%3B%7D; pm_getting-started-panel=expanded; _identity=b2f43280b39d54883da5805bf6ab7cd62296448be1c9102d33a2d818899cf757a%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A50%3A%22%5B1%2C%22825ffaa9-bd24-474c-9f41-b3911a8c400b%22%2C2592000%5D%22%3B%7D',
'HTTP_HOST' => 'facedogs.net',
'HTTP_REFERER' => 'http://facedogs.net/index.php?r=admin%2Fmodule%2Flist',
'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36',
'PATH' => '/bin:/usr/bin',
'QUERY_STRING' => 'r=user%2Fprofile&uguid=825ffaa9-bd24-474c-9f41-b3911a8c400b',
'REDIRECT_STATUS' => '200',
'REMOTE_ADDR' => '181.49.79.29',
'REMOTE_PORT' => '15708',
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/index.php?r=user%2Fprofile&uguid=825ffaa9-bd24-474c-9f41-b3911a8c400b',
'SCRIPT_FILENAME' => '/home/facedogs/public_html/index.php',
'SCRIPT_NAME' => '/index.php',
'SERVER_ADDR' => '66.7.192.165',
'SERVER_ADMIN' => 'webmaster@facedogs.net',
'SERVER_NAME' => 'facedogs.net',
'SERVER_PORT' => '80',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_SIGNATURE' => '',
'SERVER_SOFTWARE' => 'Apache',
'UNIQUE_ID' => 'VsZMr0IHwKUAACQ3cIwAAAAS',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => 1455836335.901525020599365234375,
'REQUEST_TIME' => 1455836335,
'argv' => [
'r=user%2Fprofile&uguid=825ffaa9-bd24-474c-9f41-b3911a8c400b',
],
'argc' => 1,
];
$_COOKIE = [
'PHPSESSID' => '2d90d801e09ac38ba14717728672ec1c',
'_csrf' => 'f6ab5fe75ab84ef78a649d72090ae971bf6bb7db49d3efc158791b35487faa20a:2:{i:0;s:5:"_csrf";i:1;s:32:"yrfrz82OGbaNECHuaLW8S2IPSVI1GLZR";}',
'pm_getting-started-panel' => 'expanded',
'_identity' => 'b2f43280b39d54883da5805bf6ab7cd62296448be1c9102d33a2d818899cf757a:2:{i:0;s:9:"_identity";i:1;s:50:"[1,"825ffaa9-bd24-474c-9f41-b3911a8c400b",2592000]";}',
];
$_SESSION = [
'__flash' => [],
'__id' => 1,
];
$ENV = [
'DOCUMENT_ROOT' => '/home/facedogs/public_html',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8',
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, sdch',
'HTTP_ACCEPT_LANGUAGE' => 'es-419,es;q=0.8',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_COOKIE' => 'PHPSESSID=2d90d801e09ac38ba14717728672ec1c; _csrf=f6ab5fe75ab84ef78a649d72090ae971bf6bb7db49d3efc158791b35487faa20a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22yrfrz82OGbaNECHuaLW8S2IPSVI1GLZR%22%3B%7D; pm_getting-started-panel=expanded; _identity=b2f43280b39d54883da5805bf6ab7cd62296448be1c9102d33a2d818899cf757a%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A50%3A%22%5B1%2C%22825ffaa9-bd24-474c-9f41-b3911a8c400b%22%2C2592000%5D%22%3B%7D',
'HTTP_HOST' => 'facedogs.net',
'HTTP_REFERER' => 'http://facedogs.net/index.php?r=admin%2Fmodule%2Flist',
'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36',
'PATH' => '/bin:/usr/bin',
'QUERY_STRING' => 'r=user%2Fprofile&uguid=825ffaa9-bd24-474c-9f41-b3911a8c400b',
'REDIRECT_STATUS' => '200',
'REMOTE_ADDR' => '181.49.79.29',
'REMOTE_PORT' => '15708',
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/index.php?r=user%2Fprofile&uguid=825ffaa9-bd24-474c-9f41-b3911a8c400b',
'SCRIPT_FILENAME' => '/home/facedogs/public_html/index.php',
'SCRIPT_NAME' => '/index.php',
'SERVER_ADDR' => '66.7.192.165',
'SERVER_ADMIN' => 'webmaster@facedogs.net',
'SERVER_NAME' => 'facedogs.net',
'SERVER_PORT' => '80',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_SIGNATURE' => '',
'SERVER_SOFTWARE' => 'Apache',
'UNIQUE_ID' => 'VsZMr0IHwKUAACQ3cIwAAAAS',
];`