'enablePrettyUrl' => true,

when ‘enablePrettyUrl’ => true, i got the following error

PHP Warning – yii\base\ErrorException

filemtime(): stat failed for /var/www/html/yiiapp/frontend/runtime/cache/83/8301292eb993d3ff19f0b1cfe988b789.bin

    1. in /var/www/html/yiiapp/vendor/yiisoft/yii2/caching/FileCache.php

What’s the file system / OS? Do you have permissions to write cache files?

hi samdark

am using ubuntu 18
yes i have write permission on frontend/runtime/cache folder

@samdark fixed dear , it was a permission issue , my bad

thanks for you help

1 Like