noumo / easyii-shop

Easyiicms simple shop with examples of all modules
96 stars 61 forks source link

/app/views/site/index.php at line 57 Error #6

Open LeonidIvanov opened 8 years ago

LeonidIvanov commented 8 years ago

Hello! After installing easyii-shop appeared this problem. Admin panel works great (at least look like) but the front end crashes with fatal error. ` Error PHP Fatal Error – yii\base\ErrorException Call to a member function thumb() on a non-object

1. in /var/www/gyrosmart/gyrosmart.com.ua/app/views/site/index.php at line 57

<hr/>

<div class="text-center">
    <h2>Last article from category #1</h2>
    <br/>
    <div class="row text-left">
        <?php $article = Article::last(1, ['category_id' => 1]); ?>
        <div class="col-md-2">

line 57: <?= Html::img($article->thumb(160, 120)) ?>

title, ['articles/view', 'slug' => $article->slug]) ?>
short ?>
    </div>
</div>
2. yii\base\ErrorHandler::handleFatalError()

Apache

Yii Framework/2.0.5-dev

Fatal error: Uncaught exception 'yii\base\ErrorException' with message 'Unknown: open(/var/www/gyrosmart/tmp/sess_365e2eaffdf722c8cefce983d02ac10c, O_RDWR) failed: No such file or directory (2)' in Unknown:0 Stack trace: #0 [internal function]: yii\base\ErrorHandler->handleError(2, 'Unknown: open(/...', 'Unknown', 0, Array) #1 {main} thrown in Unknown on line 0 `

noumo commented 8 years ago

try to install this version http://easyiicms.com/uploads/files/new.zip

LeonidIvanov commented 8 years ago

Looks like it works! Thanks!