EvokeNet / humhub

A global network of social innovators
http://evokenet.org
5 stars 3 forks source link

Literacy branch showing error when Agent attempts to Tag Evidence #601

Open slacey opened 7 years ago

slacey commented 7 years ago

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:

  1. 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
  2. yii\base\ErrorHandler::handleError(2, 'mkdir(): No such file or directo...', '/var/www/html/protected/humhub/m...', 179, ...)

  3. 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;

    }

    /**

  4. in /var/www/html/protected/humhub/modules/file/models/File.php at line 240 – humhub\modules\file\models\File::getPath() 234235236237238239240241242243244245246 /

    $suffix = preg_replace("/[^a-z0-9_]/i", "", $suffix);
    
    $file = ($suffix == '') ? 'file' : $suffix;
    return $this->getPath() . DIRECTORY_SEPARATOR . $file;

    }

    public function getMimeBaseType() { if ($this->mime_type != "") { list($baseType, $subType) = explode('/', $this->mime_type);

  5. 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;

    $originalFilename = $this->getStoredFilePath();
    $previewFilename = $this->getStoredFilePath($suffix);
    
    // already generated
    if (is_file($previewFilename)) {
        return $this->getUrl($suffix);
    }
  6. 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=''>

                </a>
            <?php endforeach;?>
        </div>
        <?php endif;?>
    
        <div style="font-size:9pt">
  7. in /var/www/html/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/var/www/html/protected/modules/...')

  8. 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', ...])

  9. 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)

  10. 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)

  11. 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();

  12. humhub\modules\missions\controllers\ReviewController::actionIndex()

  13. in /var/www/html/protected/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([humhub\modules\missions\controllers\ReviewController, 'actionIndex'], [])

  14. 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...'])

  15. 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...'])

  16. 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...'])

  17. in /var/www/html/protected/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest(humhub\components\Request)

  18. 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