Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP5.6不行么...? #20

Closed
mojie126 opened this issue Aug 29, 2018 · 10 comments
Closed

PHP5.6不行么...? #20

mojie126 opened this issue Aug 29, 2018 · 10 comments

Comments

@mojie126
Copy link

提示Argument 1 passed to Illuminate\Cookie\Middleware\EncryptCookies::encrypt() must be an instance of Symfony\Component\HffpFoundation\Respose, array given, called in xxx EncryptCookies.php on line 59 and defined

@lxerxa
Copy link
Owner

lxerxa commented Aug 29, 2018

没问题的,是按照wiki安装的的吗?

@mojie126
Copy link
Author

是按照文档操作的...mongo是4.0的有问题么...?

@lxerxa
Copy link
Owner

lxerxa commented Aug 29, 2018

最好版本一致,那个mongo php驱动兼容性不太好用。是ubuntu?centos?

@mojie126
Copy link
Author

CentOS 7.4
但是这个看起来是cookie或session的原因,貌似还跟数据库没关系的时候发生的问题吧...?

@lxerxa
Copy link
Owner

lxerxa commented Aug 29, 2018

这是log里的,api接口返回什么?

@mojie126
Copy link
Author

给个接口uri...?

@lxerxa
Copy link
Owner

lxerxa commented Aug 29, 2018

不是,是通过浏览器看看ajax请求返回code是多少?

@mojie126
Copy link
Author

ecode:-99999
emsg:就是上面那些...

@lxerxa
Copy link
Owner

lxerxa commented Aug 29, 2018

应该是mongo驱动问题,以前其他人也有过类似问题,错误信息不准确。

@mojie126
Copy link
Author

mojie126 commented Aug 30, 2018

修改config/database.php里关于mongodb的options里的db
db->database即可...

mongodb/laravel-mongodb#772 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants