littlemodesty 我在阿里云服务器上安装好了Flarum,安装了一些插件并设置了SMTP。而后当我测试用户注册的时候,却出现了下图所示的情况: 但用户实际上是注册了的,邮件也发出去了,这种情况该怎么解决呢? 我的环境是PHP7.2 ,MySQL 5.6,Nginx。网站地址:地址
littlemodesty Golden 我开启了DEBUG模式,出现了题为”200“的错误提示: POST https://discuss.littlemodesty.com/register <br /> <b>Warning</b>: scandir(/www/wwwroot/discuss.littlemodesty.com/vendor/fof/pretty-mail/src/../../../public/assets/): failed to open dir: No such file or directory in <b>/www/wwwroot/discuss.littlemodesty.com/vendor/fof/pretty-mail/src/Mailer.php</b> on line <b>44</b><br /> <br /> <b>Warning</b>: scandir(): (errno 2): No such file or directory in <b>/www/wwwroot/discuss.littlemodesty.com/vendor/fof/pretty-mail/src/Mailer.php</b> on line <b>44</b><br /> <br /> <b>Warning</b>: preg_grep() expects parameter 2 to be array, boolean given in <b>/www/wwwroot/discuss.littlemodesty.com/vendor/fof/pretty-mail/src/Mailer.php</b> on line <b>44</b><br /> <br /> <b>Fatal error</b>: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /www/wwwroot/discuss.littlemodesty.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /www/wwwroot/discuss.littlemodesty.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /www/wwwroot/discuss.littlemodesty.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /www/wwwroot/discuss.littlemodesty.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Flarum\Api\JsonApiResponse)) #3 /www/wwwroot/discuss.littlemodesty.com/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /www/wwwroot/discuss.littlemodesty.com/publ in <b>/www/wwwroot/discuss.littlemodesty.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>24</b><br /> 是邮件插件出现了问题吗?
lithromantic POST https://bbs.lithromantic.cn/register ReflectionException: Class Flarum\User\UserValidator does not exist in file /www/wwwroot/Forum/vendor/illuminate/container/Container.php on line 838 Caused by ParseError: syntax error, unexpected ‘username’ (T_STRING), expecting ‘]’ in file /www/wwwroot/Forum/vendor/flarum/core/src/User/UserValidator.php on line 71 Stack trace: ReflectionException->() /www/wwwroot/Forum/vendor/illuminate/container/Container.php:838 ParseError->() /www/wwwroot/Forum/vendor/flarum/core/src/User/UserValidator.php:71 Composer\Autoload\includeFile() /www/wwwroot/Forum/vendor/composer/ClassLoader.php:322 Composer\Autoload\ClassLoader->loadClass() [internal]:0 spl_autoload_call() [internal]:0 ReflectionParameter->getClass() /www/wwwroot/Forum/vendor/illuminate/container/Container.php:838 Illuminate\Container\Container->resolveDependencies() /www/wwwroot/Forum/vendor/illuminate/container/Container.php:807 Illuminate\Container\Container->build() /www/wwwroot/Forum/vendor/illuminate/container/Container.php:658 Illuminate\Container\Container->resolve() /www/wwwroot/Forum/vendor/illuminate/container/Container.php:609 Illuminate\Container\Container->make() /www/wwwroot/Forum/vendor/flarum/core/src/Foundation/Application.php:521 Flarum\Foundation\Application->make() /www/wwwroot/Forum/vendor/flarum/core/src/Bus/Dispatcher.php:21 Flarum\Bus\Dispatcher->getCommandHandler() /www/wwwroot/Forum/vendor/illuminate/bus/Dispatcher.php:88 Illuminate\Bus\Dispatcher->dispatchNow() /www/wwwroot/Forum/vendor/illuminate/bus/Dispatcher.php:76 Illuminate\Bus\Dispatcher->dispatch() /www/wwwroot/Forum/vendor/flarum/core/src/Api/Controller/CreateUserController.php:45 Flarum\Api\Controller\CreateUserController->data() /www/wwwroot/Forum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php:96 Flarum\Api\Controller\AbstractSerializeController->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php:22 Flarum\Api\Controller\AbstractCreateController->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Api/Client.php:72 Flarum\Api\Client->send() /www/wwwroot/Forum/vendor/flarum/core/src/Forum/Controller/RegisterController.php:58 Flarum\Forum\Controller\RegisterController->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/RouteHandlerFactory.php:38 Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php:65 Flarum\Http\Middleware\DispatchRoute->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/fof/terms/src/Middlewares/RegisterMiddleware.php:54 FoF\Terms\Middlewares\RegisterMiddleware->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php:57 Flarum\Http\Middleware\ShareErrorsFromSession->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/SetLocale.php:50 Flarum\Http\Middleware\SetLocale->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php:45 Flarum\Http\Middleware\CheckCsrfToken->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php:32 Flarum\Http\Middleware\AuthenticateWithSession->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php:51 Flarum\Http\Middleware\RememberFromCookie->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/StartSession.php:61 Flarum\Http\Middleware\StartSession->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php:46 Flarum\Http\Middleware\CollectGarbage->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php:28 Flarum\Http\Middleware\ParseJsonBody->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php:57 Flarum\Http\Middleware\HandleErrors->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:84 Laminas\Stratigility\MiddlewarePipe->process() /www/wwwroot/Forum/vendor/middlewares/request-handler/src/RequestHandler.php:84 Middlewares\RequestHandler->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/middlewares/base-path-router/src/BasePathRouter.php:97 Middlewares\BasePathRouter->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php:42 Laminas\Stratigility\Middleware\OriginalMessages->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/middlewares/base-path/src/BasePath.php:53 Middlewares\BasePath->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/Next.php:61 Laminas\Stratigility\Next->handle() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:84 Laminas\Stratigility\MiddlewarePipe->process() /www/wwwroot/Forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:73 Laminas\Stratigility\MiddlewarePipe->handle() /www/wwwroot/Forum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php:96 Laminas\HttpHandlerRunner\RequestHandlerRunner->run() /www/wwwroot/Forum/vendor/flarum/core/src/Http/Server.php:42 Flarum\Http\Server->listen() /www/wwwroot/Forum/public/index.php:26
lithromantic 大佬,我的论坛在一次性开启几十个插件后发现不能注册了,按照您上面说的,我在那个文件夹里把那个改成TRUE后,出现了一个500的链接,以上是链接内显示的内容。我尝试把谷歌验证,密码显示的插件都关闭了也不行,按照您上面说的,我把pretty-mail这个插件卸载了并且清理了缓存,但还是不行🙏。 希望大佬能帮我看一下,这确实不太好意思,但我已经尝试了很多次,真的不知道是哪里出问题了😭