[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)"} []
[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里面的报错
看起来是要给用户头像,可是根部文件 好像并没有 头像文件