The issue
upload img 500 Internal Server Error
Flarum information
TianMa:~:# cd /www/wwwroot/love
TianMa:love:# php flarum info
Flarum core 1.6.2
PHP version: 8.0.26
MySQL version: 10.1.47-MariaDB
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, ctype, curl, dom, filter, ftp, gd, gettext, hash, iconv, intl, json, mbstring, SPL, session, pcntl, standard, PDO, mysqlnd, pdo_sqlite, bz2, posix, Reflection, pdo_mysql, shmop, SimpleXML, soap, sockets, sodium, mysqli, sysvsem, tokenizer, xml, xmlreader, xmlwriter, zip, fileinfo, redis, exif, memcache, imap, Phar, Zend OPcache
+--------------------------------+---------+--------+
| Flarum Extensions | | |
+--------------------------------+---------+--------+
| ID | Version | Commit |
+--------------------------------+---------+--------+
| flarum-flags | v1.6.1 | |
| flarum-approval | v1.6.1 | |
| flarum-tags | v1.6.1 | |
| flarum-suspend | v1.6.1 | |
| the-turk-diff | 1.1.2 | |
| justoverclock-edit-posts | 0.1.1 | |
| fof-upload | 1.2.3 | |
| fof-byobu | 1.1.8 | |
| fof-best-answer | 1.2.4 | |
| flarum-subscriptions | v1.6.1 | |
| flarum-sticky | v1.6.1 | |
| flarum-statistics | v1.6.1 | |
| flarum-nicknames | v1.6.1 | |
| flarum-mentions | v1.6.1 | |
| flarum-markdown | v1.6.1 | |
| flarum-lock | v1.6.1 | |
| flarum-likes | v1.6.1 | |
| flarum-lang-english | v1.6.0 | |
| flarum-lang-chinese-simplified | v1.3.0 | |
| flarum-emoji | v1.6.1 | |
| flarum-bbcode | v1.6.0 | |
| afrux-asirem | v0.1.7 | |
+--------------------------------+---------+--------+
Base URL: http://192.168.3.30
Installation path: /www/wwwroot/love
Queue driver: sync
Session driver: file
Mail driver: smtp
Debug mode: ON
and the logs:
[2022-12-29 18:52:02] flarum.ERROR: FoF\Upload\Exceptions\InvalidUploadException: No tmp folder for uploading files. in /www/wwwroot/love/vendor/fof/upload/src/Repositories/FileRepository.php:164
Stack trace:
#0 /www/wwwroot/love/vendor/fof/upload/src/Repositories/FileRepository.php(112): FoF\Upload\Repositories\FileRepository->handleUploadError()
#1 /www/wwwroot/love/vendor/fof/upload/src/Commands/UploadHandler.php(100): FoF\Upload\Repositories\FileRepository->moveUploadedFileToTemp()
#2 [internal function]: FoF\Upload\Commands\UploadHandler->FoF\Upload\Commands{closure}()
#3 /www/wwwroot/love/vendor/illuminate/collections/Collection.php(695): array_map()
#4 /www/wwwroot/love/vendor/fof/upload/src/Commands/UploadHandler.php(192): Illuminate\Support\Collection->map()
#5 /www/wwwroot/love/vendor/illuminate/bus/Dispatcher.php(122): FoF\Upload\Commands\UploadHandler->handle()
#6 /www/wwwroot/love/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#7 /www/wwwroot/love/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#8 /www/wwwroot/love/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#9 /www/wwwroot/love/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#10 /www/wwwroot/love/vendor/fof/upload/src/Api/Controllers/UploadController.php(52): Illuminate\Bus\Dispatcher->dispatch()
#11 /www/wwwroot/love/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(116): FoF\Upload\Api\Controllers\UploadController->data()
#12 /www/wwwroot/love/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle()
#13 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}()
#14 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ExecuteRoute->process()
#15 /www/wwwroot/love/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#16 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\ThrottleApi->process()
#17 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#18 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CheckCsrfToken->process()
#19 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
#20 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
#21 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#22 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
#23 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#24 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#25 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#26 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()
#27 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#28 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()
#29 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#30 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()
#31 /www/wwwroot/love/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#32 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\FakeHttpMethods->process()
#33 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#34 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ParseJsonBody->process()
#35 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#36 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()
#37 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#38 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\InjectActorReference->process()
#39 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#40 /www/wwwroot/love/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#41 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\RequestHandler->process()
#42 /www/wwwroot/love/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#43 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePathRouter->process()
#44 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#45 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Laminas\Stratigility\Middleware\OriginalMessages->process()
#46 /www/wwwroot/love/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#47 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePath->process()
#48 /www/wwwroot/love/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#49 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ProcessIp->process()
#50 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#51 /www/wwwroot/love/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()
#52 /www/wwwroot/love/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#53 /www/wwwroot/love/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#54 /www/wwwroot/love/public/index.php(26): Flarum\Http\Server->listen()
#55 {main}