callmez / yii2-wechat

基于Yii2实现的微信模块, 集成微信模拟器、多公众号管理、扩展开发接口,只需关注功能,微信开发的强劲引擎[停止开发, 仅供学习].
http://huajuan.me/yii2-wechat
MIT License
385 stars 195 forks source link

Exception 'yii\base\InvalidParamException' with message 'Invalid path alias: @web/storage' #10

Open jiafenggit opened 8 years ago

jiafenggit commented 8 years ago

Exception 'yii\base\InvalidParamException' with message 'Invalid path alias: @web/storage'

baizhiqiang commented 8 years ago

我也遇到了这个问题

rjmi004 commented 8 years ago

me too, how to fix this?

callmez commented 8 years ago

目前在做一个新应用. 将会把这个库的功能全部移植到新库中.....

buptyyf commented 8 years ago

也就是说这个问题还不能解决?我在文件里搜索了一下,并没有@web/storage这个东西,求解释啊!!

piercebn commented 8 years ago

可以临时把vendor\callmez\yii2-wechat\Bootstrap.php中的如下两行注释掉,这样可以保证数据库表初始化成功。 //isset(Yii::$aliases['@storage']) or Yii::setAlias('@storage', Yii::getAlias('@web/storage')); //isset(Yii::$aliases['@storageRoot']) or Yii::setAlias('@storageRoot', Yii::getAlias('@webroot/storage'));