YesknStudio / vmoex-framework

一个开源的二次元向的社区程序。
https://vmoex.yeskn.com
MIT License
253 stars 71 forks source link

用户注册出现500 错误 #21

Closed ZBrettonYe closed 5 years ago

ZBrettonYe commented 5 years ago

[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 commented 5 years ago

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

jjsty1e commented 5 years ago

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

ZBrettonYe commented 5 years ago

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