Steps to Reproduce:
1) Log in as an Agent ( username Agent20 / password Agent20)
2) Attempt to navigate to Tag Evidence tab
3) error is displayed
ERROR:
in /var/www/html/protected/humhub/modules/file/models/File.php at line 179
170171172173174175176177178179180181182183184185186187188 */
public function getPath()
{
$path = Yii::getAlias('@webroot') .
DIRECTORY_SEPARATOR . "uploads" .
DIRECTORY_SEPARATOR . $this->folder_uploads .
DIRECTORY_SEPARATOR . $this->guid;
if (!is_dir($path)) {
mkdir($path);
}
return $path;
}
/**
Returns the Url of the File
@param string $suffix
yii\base\ErrorHandler::handleError(2, 'mkdir(): No such file or directo...', '/var/www/html/protected/humhub/m...', 179, ...)
in /var/www/html/protected/humhub/modules/file/models/File.php at line 179 – mkdir('/var/www/html/uploads/file/5b4b4...')
173174175176177178179180181182183184185 $path = Yii::getAlias('@webroot') .
DIRECTORY_SEPARATOR . "uploads" .
DIRECTORY_SEPARATOR . $this->folder_uploads .
DIRECTORY_SEPARATOR . $this->guid;
if (!is_dir($path)) {
mkdir($path);
}
return $path;
}
/**
in /var/www/html/protected/humhub/modules/file/models/File.php at line 240 – humhub\modules\file\models\File::getPath()
234235236237238239240241242243244245246 /
public function getMimeBaseType()
{
if ($this->mime_type != "") {
list($baseType, $subType) = explode('/', $this->mime_type);
in /var/www/html/protected/humhub/modules/file/models/File.php at line 267 – humhub\modules\file\models\File::getStoredFilePath()
261262263264265266267268269270271272273 }
public function getPreviewImageUrl($maxWidth = 1000, $maxHeight = 1000)
{
$suffix = 'pi_' . $maxWidth . "x" . $maxHeight;
in /var/www/html/protected/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([humhub\modules\missions\controllers\ReviewController, 'actionIndex'], [])
in /var/www/html/protected/vendor/yiisoft/yii2/base/Controller.php at line 154 – yii\base\InlineAction::runWithParams(['r' => 'missions/review/index', 'sguid' => 'a83fa401-6758-4eec-9974-a202e987...'])
in /var/www/html/protected/vendor/yiisoft/yii2/base/Module.php at line 454 – yii\base\Controller::runAction('index', ['r' => 'missions/review/index', 'sguid' => 'a83fa401-6758-4eec-9974-a202e987...'])
in /var/www/html/protected/vendor/yiisoft/yii2/web/Application.php at line 84 – yii\base\Module::runAction('missions/review/index', ['r' => 'missions/review/index', 'sguid' => 'a83fa401-6758-4eec-9974-a202e987...'])
in /var/www/html/protected/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest(humhub\components\Request)
in /var/www/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')
);
Steps to Reproduce: 1) Log in as an Agent ( username Agent20 / password Agent20) 2) Attempt to navigate to Tag Evidence tab 3) error is displayed
ERROR:
in /var/www/html/protected/humhub/modules/file/models/File.php at line 179 170171172173174175176177178179180181182183184185186187188 */ public function getPath() { $path = Yii::getAlias('@webroot') . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . $this->folder_uploads . DIRECTORY_SEPARATOR . $this->guid;
}
/**
yii\base\ErrorHandler::handleError(2, 'mkdir(): No such file or directo...', '/var/www/html/protected/humhub/m...', 179, ...)
in /var/www/html/protected/humhub/modules/file/models/File.php at line 179 – mkdir('/var/www/html/uploads/file/5b4b4...') 173174175176177178179180181182183184185 $path = Yii::getAlias('@webroot') . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . $this->folder_uploads . DIRECTORY_SEPARATOR . $this->guid;
}
/**
in /var/www/html/protected/humhub/modules/file/models/File.php at line 240 – humhub\modules\file\models\File::getPath() 234235236237238239240241242243244245246 /
}
public function getMimeBaseType() { if ($this->mime_type != "") { list($baseType, $subType) = explode('/', $this->mime_type);
in /var/www/html/protected/humhub/modules/file/models/File.php at line 267 – humhub\modules\file\models\File::getStoredFilePath() 261262263264265266267268269270271272273 }
public function getPreviewImageUrl($maxWidth = 1000, $maxHeight = 1000) { $suffix = 'pi_' . $maxWidth . "x" . $maxHeight;
in /var/www/html/protected/modules/missions/views/review/index.php at line 122 – humhub\modules\file\models\File::getPreviewImageUrl(200, 200) 116117118119120121122123124125126127128 <?php foreach ($files as $file): ?> <a data-toggle="lightbox" data-gallery="<?php if (count($files) > 1) { echo "gallery-" . $evidence->content->getUniqueId(); } ?>" href="<?php echo $file->getUrl(); ?>#.jpeg" data-footer=''>
in /var/www/html/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/var/www/html/protected/modules/...')
in /var/www/html/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\base\View::renderPhpFile('/var/www/html/protected/modules/...', ['contentContainer' => humhub\modules\space\models\Space, 'evidence' => app\modules\missions\models\Evidence, 'files' => [humhub\modules\file\models\File, humhub\modules\file\models\File], 'evidence_count' => '459', ...])
in /var/www/html/protected/vendor/yiisoft/yii2/base/View.php at line 149 – yii\base\View::renderFile('/var/www/html/protected/modules/...', ['contentContainer' => humhub\modules\space\models\Space, 'evidence' => app\modules\missions\models\Evidence, 'files' => [humhub\modules\file\models\File, humhub\modules\file\models\File], 'evidence_count' => '459', ...], humhub\modules\missions\controllers\ReviewController)
in /var/www/html/protected/vendor/yiisoft/yii2/base/Controller.php at line 377 – yii\base\View::render('index', ['contentContainer' => humhub\modules\space\models\Space, 'evidence' => app\modules\missions\models\Evidence, 'files' => [humhub\modules\file\models\File, humhub\modules\file\models\File], 'evidence_count' => '459', ...], humhub\modules\missions\controllers\ReviewController)
in /var/www/html/protected/modules/missions/controllers/ReviewController.php at line 179 – yii\base\Controller::render('index', ['contentContainer' => humhub\modules\space\models\Space, 'evidence' => app\modules\missions\models\Evidence, 'files' => [humhub\modules\file\models\File, humhub\modules\file\models\File], 'evidence_count' => '459', ...]) 173174175176177178179180181182183184185 'evidence_to_review_count' => $evidence_to_review_count, 'tags' => $tags, 'is_ally' => $is_ally, 'tagged_evidences' => $tagged_evidences, 'next_to_evocoin' => $next_to_evocoin, ) ); }
public function actionShow($id) { $user = Yii::$app->user->getIdentity();
humhub\modules\missions\controllers\ReviewController::actionIndex()
in /var/www/html/protected/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([humhub\modules\missions\controllers\ReviewController, 'actionIndex'], [])
in /var/www/html/protected/vendor/yiisoft/yii2/base/Controller.php at line 154 – yii\base\InlineAction::runWithParams(['r' => 'missions/review/index', 'sguid' => 'a83fa401-6758-4eec-9974-a202e987...'])
in /var/www/html/protected/vendor/yiisoft/yii2/base/Module.php at line 454 – yii\base\Controller::runAction('index', ['r' => 'missions/review/index', 'sguid' => 'a83fa401-6758-4eec-9974-a202e987...'])
in /var/www/html/protected/vendor/yiisoft/yii2/web/Application.php at line 84 – yii\base\Module::runAction('missions/review/index', ['r' => 'missions/review/index', 'sguid' => 'a83fa401-6758-4eec-9974-a202e987...'])
in /var/www/html/protected/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest(humhub\components\Request)
in /var/www/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' => 'missions/review/index', 'sguid' => 'a83fa401-6758-4eec-9974-a202e987fccd', ];
$_COOKIE = [ '_csrf' => 'ca147b734e7d13b40f43d7271fcfb80740f1c4309da0189bbd641b8f836c1d58a:2:{i:0;s:5:"_csrf";i:1;s:32:"x7JHSoVElicSCjDwQGqVCxpd6olZasSt";}', 'pm_user-spaces-panel' => 'expanded', 'pm_space-members-panel' => 'expanded', 'pm_groups-statistics-panel' => 'expanded', 'pm_new-spaces-panel' => 'expanded', 'PHPSESSID' => 'v494fvaomgqq48oqb59c1cqju6', 'pm_getting-started-panel' => 'expanded', 'pm_share-panel' => 'expanded', '_ga' => 'GA1.5.1629169735.1503594594', '_gid' => 'GA1.5.490638051.1507205073', '_identity' => 'e96bb7a3693904fbc786f8574e98edc4e0862f11978b3c605a636216be451697a:2:{i:0;s:9:"_identity";i:1;s:50:"[2,"da0b7b5b-2f92-44e7-b507-4f637070491b",2592000]";}', ];
$_SESSION = [ 'flash' => [], 'returnUrl' => '/index.php?r=admin%2Fuser%2Findex', '__id' => 33, ]; Yii Framework 2017-10-05, 14:11:25
Apache/2.4.18 (Ubuntu) Yii Framework/2.0.7