The issue
I'm having a problem with my Flarum installation where I get the generic error: “Oops! Something went wrong. Please reload the page and try again.” when trying to access the forum.
The error occurs constantly and doesn't display any details on the screen. I've already tried clearing the cache, checking permissions, and basic settings, but the problem persists.
I would appreciate any help in identifying the cause. I can provide the contents of the storage/logs/flarum.log file if needed.
[2026-04-28T03:53:17.150744+00:00] flarum.ERROR: InvalidArgumentException: Invalid SVG: could not parse XML. in /home/megawarez.cc/public_html/vendor/ramon/avocado/src/Controller/UploadLogoSvgController.php:38
Stack trace:
#0 /home/megawarez.cc/public_html/vendor/ramon/avocado/src/Controller/UploadLogoSvgController.php(22): Ramon\Avocado\Controller\UploadLogoSvgController->sanitizeSvg()
#1 /home/megawarez.cc/public_html/vendor/flarum/core/src/Api/Controller/UploadImageController.php(64): Ramon\Avocado\Controller\UploadLogoSvgController->makeImage()
#2 /home/megawarez.cc/public_html/vendor/flarum/core/src/Http/RouteHandlerFactory.php(37): Flarum\Api\Controller\UploadImageController->handle()
#3 /home/megawarez.cc/public_html/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#4 /home/megawarez.cc/public_html/vendor/laminas/laminas-stratigility/src/Next.php(52): Flarum\Http\Middleware\ExecuteRoute->process()
#5 /home/megawarez.cc/public_html/vendor/fof/sitemap/src/Middleware/ApiRobotsHeader.php(29): Laminas\Stratigility\Next->handle()
#6 /home/megawarez.cc/public_html/vendor/laminas/laminas-stratigility/src/Next.php(52): FoF\Sitemap\Middleware\ApiRobotsHeader->process()
#7 /home/megawarez.cc/public_html/vendor/flarum/core/src/Http/Middleware/PopulateWithActor.php(27): Laminas\Stratigility\Next->handle()
#8 /home/megawarez.cc/public_html/vendor/laminas/laminas-stratigility/src/Next.php(52): Flarum\Http\Middleware\PopulateWithActor->process()
#9 /home/megawarez.cc/public_html/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(31): Laminas\Stratigility\Next->handle()
#10 /home/megawarez.cc/public_html/vendor/laminas/laminas-stratigility/src/Next.php(52): Flarum\Api\Middleware\ThrottleApi->process()
#11 /home/megawarez.cc/public_html/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(40): Laminas\Stratigility\Next->handle()