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

用户注册出现500 错误 #21

Closed
ZBrettonYe opened this issue May 25, 2019 · 3 comments
Closed

用户注册出现500 错误 #21

ZBrettonYe opened this issue May 25, 2019 · 3 comments

Comments

@ZBrettonYe
Copy link

ZBrettonYe commented May 25, 2019

[2019-05-25 11:11:14] request.INFO: Matched route "register". {"route":"register","route_parameters":{"_controller":"Yeskn\\MainBundle\\Controller\\AuthController::regAction","_route":"register"},"request_uri":"xxxx.com/register?%2Fregister","method":"POST"} [] [2019-05-25 11:11:14] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2019-05-25 11:11:15] php.WARNING: Warning: file_put_contents(/www/wwwroot/xxxx.com/web/upload/avatar/b09f668648031c5d3ad461ae5c9cde22.png): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): Warning: file_put_contents(/www/wwwroot/xxxx.com/web/upload/avatar/b09f668648031c5d3ad461ae5c9cde22.png): failed to open stream: No such file or directory at /www/wwwroot/xxxx.com/src/Yeskn/MainBundle/Services/RandomAvatarService.php:33)"} [] [2019-05-25 11:11:15] request.CRITICAL: Uncaught PHP Exception Intervention\Image\Exception\NotReadableException: "Image source not readable" at /www/wwwroot/xxxx.com/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php line 345 {"exception":"[object] (Intervention\\Image\\Exception\\NotReadableException(code: 0): Image source not readable at /www/wwwroot/xxxx.com/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:345)"} []

上面是log里面的报错

看起来是要给用户头像,可是根部文件 好像并没有 头像文件

@jjsty1e
Copy link
Member

jjsty1e commented May 25, 2019

注册会自动分配一个头像,可能是没有web/upload/avatar/这个文件夹,或者web用户没有这个目录的写入权限吧,尝试创建这个文件夹或者修改一下这个文件夹的权限呢

@jjsty1e
Copy link
Member

jjsty1e commented May 25, 2019

安装文档:https://vmoex-docs.yeskn.com/#/install

@ZBrettonYe
Copy link
Author

解决了, 是因为web/upload/avatar/ 没有这个文件夹

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