appfront切换语言正常,apphtml5切换时报错:
Invalid Configuration – yii\base\InvalidConfigException
The directory is not writable by the Web process: /www/web/fecshop/apphtml5/web/fr/assets
检查了文件夹权限:
drwxr-xr-x 9 root root 4096 Feb 26 11:38 appfront
drwxr-xr-x 9 root root 4096 Feb 26 11:38 apphtml5
请问是什么原因
重复念10遍
The directory is not writable by the Web process: /www/web/fecshop/apphtml5/web/fr/assets
文件夹不可写,在docker compose中解决的办法:
先进入php的docker容器:
docker-compose exec php bash
执行:
chmod 777 -R /www/web/fecshop/apphtml5/web/fr/assets
即可。
@freetiger #2楼 如果你添加新的语言,你需要设置一下文件路径可写。
fecshop默认就搞了cn fr两个语言,在./init
初始化的时候会设置文件可写,apphtml5这个漏了,已经添加,你自己设置一下可写就好,
fecshop 如何新增一门语言,并相应的添加一个store,将store设置成该语言