• Resources
  • Free Flarum hosting on an expert platform by FreeFlarum.com

SKevo I think Flarum should allow configuration on how it treats cache busting. Because honestly there's hardly any reason to delete files and make a user rebuild it on request.. This sounds nice for small communities but is a torment on highly scalable, volatile communities. Although I did fix this on our saas, the code required is a bit too complex to share publicly (overriding compilers etc).

I'll see if something can be done about it.

my site is not loading and shows:
Something went wrong while loading this page.

i already fixed it up but it is still noch working 🙁

    creepypastalive Yolo ah, indeed... That's because disk usage is at 100 % 🙈

    I will have to archive inactive forums, and bring back our status monitor.

    Edit: Monitor created, should've done that right after migration. Sorry for that

    Most forums are accessible now, but creepypastalive's forum CSS doesn't display correctly. There is probably an error message in the console, but I can't check that right now. I will sync all forums after the cleanup is done and then I'll check your forum. As for Yolo 's, I don't know your forum name, but it might be accessible now(?)

    Edit 2: When I included Cache Assets extension, I updated all extensions to latest version. There seemed to be a conflict with that:

    flarum.ERROR: TypeError: array_merge(): Argument #2 must be of type array, int given in /app/vendor/wikimedia/less.php/lib/Less/Parser.php:585
    Stack trace:
    #0 /app/vendor/wikimedia/less.php/lib/Less/Parser.php(585): array_merge()
    #1 /app/vendor/wikimedia/less.php/lib/Less/Parser.php(470): Less_Parser->_parse()
    #2 /app/vendor/flarum/core/src/Frontend/Compiler/LessCompiler.php(106): Less_Parser->parseFile()
    #3 /app/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php(137): Flarum\Frontend\Compiler\LessCompiler->compile()
    #4 /app/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php(75): Flarum\Frontend\Compiler\RevisionCompiler->save()
    #5 /app/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php(110): Flarum\Frontend\Compiler\RevisionCompiler->commit()
    #6 /app/vendor/flarum/core/src/Frontend/Content/Assets.php(79): Flarum\Frontend\Compiler\RevisionCompiler->getUrl()
    #7 [internal function]: Flarum\Frontend\Content\Assets->Flarum\Frontend\Content\{closure}()
    #8 /app/vendor/flarum/core/src/Frontend/Content/Assets.php(78): array_map()
    #9 /app/vendor/flarum/core/src/Frontend/Content/Assets.php(56): Flarum\Frontend\Content\Assets->getUrls()
    #10 /app/vendor/fof/nightmode/src/Content/Assets.php(30): Flarum\Frontend\Content\Assets->__invoke()
    #11 /app/vendor/flarum/core/src/Frontend/Frontend.php(62): FoF\NightMode\Content\Assets->__invoke()
    #12 /app/vendor/flarum/core/src/Frontend/Frontend.php(54): Flarum\Frontend\Frontend->populate()
    #13 /app/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document()
    #14 /app/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Frontend\Controller->handle()
    #15 /app/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
    #16 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process()
    #17 /app/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php(21): Laminas\Stratigility\Next->handle()
    #18 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ContentTypeOptionsHeader->process()
    #19 /app/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php(30): Laminas\Stratigility\Next->handle()
    #20 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ReferrerPolicyHeader->process()
    #21 /app/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php(30): Laminas\Stratigility\Next->handle()
    #22 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\FlarumPromotionHeader->process()
    #23 /app/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle()
    #24 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ShareErrorsFromSession->process()
    #25 /app/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle()
    #26 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CheckCsrfToken->process()
    #27 /app/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
    #28 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process()
    #29 /app/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
    #30 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process()
    #31 /app/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
    #32 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithSession->process()
    #33 /app/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
    #34 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process()
    #35 /app/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
    #36 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process()
    #37 /app/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle()
    #38 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CollectGarbage->process()
    #39 /app/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
    #40 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process()
    #41 /app/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
    #42 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process()
    #43 /app/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
    #44 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process()
    #45 /app/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
    #46 /app/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
    #47 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process()
    #48 /app/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
    #49 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process()
    #50 /app/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
    #51 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process()
    #52 /app/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
    #53 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process()
    #54 /app/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
    #55 /app/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process()
    #56 /app/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
    #57 /app/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process()
    #58 /app/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
    #59 /app/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
    #60 /app/public/index.php(22): Flarum\Http\Server->listen()
    #61 {main}

    I have reverted the extension update to the second recent (which was 21 days ago). This made the error disappear on my test forum, and your forum seems to be normal now creepypastalive.

    I tried to find out what exactly caused the error, but I wasn't successful. It didn't seem that wikimedia/less.php nor flarum/core have updated (they were already at latest version), so it wasn't a result of some code change that introduced incompatibility between these two. But that's what's been causing the CSS of your forum to break. It could've even been a result of me tampering with PHP extenders for Flarum that I don't understand very well. I'll leave the logs there anyways, maybe someone might know more as of what went wrong...

    just before the break happened, i tried to create a landing page, using the extention, maybe that caused the problem?

      creepypastalive that's very unlikely, since it was a global issue. I think that it happened because I either changed the extenders, or updated extensions and some of them aren't compatible with each other due to code change

      Unfortunately I can't access the admin panel, I just get the message
      "An error occurred while trying to load this page."

      https://coffeetime.freeflarum.com/

      Forums been a little flaky today, but I imagine that was because of the disk usage.

        DavecUK "An error occurred while trying to load this page."

        at your website i see this message: Update Flarum Enter your database password to update Flarum. Before you proceed, you should back up your database. If you have any trouble, get help on the Flarum website.

        DavecUK Forums been a little flaky today, but I imagine that was because of the disk usage.

        yes, absolutly..

          tom23 at your website i see this message: Update Flarum Enter your database password to update Flarum. Before you proceed, you should back up your database. If you have any trouble, get help on the Flarum website.

          I am aware of that. I currently can't update all extensions, because there are conflicts between some of them and third party libraries. I will report error messages that were logged to its developers tomorrow. It's likely a conflict with some library (for example: iluminate's code changed and causes conflicts). FF stays at Flarum 1.3.1 for the time being.

          DavecUK was anything logged in the console? If not, and the error is still present, may I please create a temporary admin account at your forum to debug this?

            Hello, my forum is also not loading. Do we need to just wait it out or is there something we need to do? Thanks

              SKevo thx for the quick response. now we have this message: Flarum encountered a boot error. Details have been logged to the Flarum log file.

                SKevo

                Not for me. I'm getting the following in the log:

                [2022-06-13 19:13:39] flarum.ERROR: Swift_TransportException: Connection could not be established with host primary.freeflarum.com :stream_socket_client(): Unable to connect to primary.freeflarum.com:25 (Connection timed out) in /app/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261
                Stack trace:

                  SKevo DavecUK was anything logged in the console? If not, and the error is still present, may I please create a temporary admin account at your forum to debug this?

                  I didn't see anything obvious in the console. There was this, which might be related to not being able to access the admin panel.

                  [2022-06-22 10:50:54] flarum.ERROR: PDOException: SQLSTATE[HY000] [2002] Connection refused in /app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40

                  You are welcome to create a temporary admin account and try to resolve as I still cannot access the admin panel.

                  I get the "An error occurred while trying to load this page." message.

                    DavecUK I didn't see anything obvious in the console. There was this, which might be related to not being able to access the admin panel.

                    [2022-06-22 10:50:54] flarum.ERROR: PDOException: SQLSTATE[HY000] [2002] Connection refused in /app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40

                    Thank you. Yes, I saw that - restarting MariaDB fixed that.

                    DavecUK You are welcome to create a temporary admin account and try to resolve as I still cannot access the admin panel.

                    I get the "An error occurred while trying to load this page." message.

                    Thanks, will check

                    DavecUK it seems to be that error message that I have encountered today:

                    flarum.ERROR: TypeError: array_merge(): Argument #2 must be of type array, int given in /app/vendor/wikimedia/less.php/lib/Less/Parser.php:585
                    Stack trace:
                    #0 /app/vendor/wikimedia/less.php/lib/Less/Parser.php(585): array_merge()
                    #1 /app/vendor/wikimedia/less.php/lib/Less/Parser.php(470): Less_Parser->_parse()
                    #2 /app/vendor/flarum/core/src/Frontend/Compiler/LessCompiler.php(106): Less_Parser->parseFile()
                    #3 /app/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php(137): Flarum\Frontend\Compiler\LessCompiler->compile()
                    #4 /app/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php(75): Flarum\Frontend\Compiler\RevisionCompiler->save()
                    #5 /app/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php(110): Flarum\Frontend\Compiler\RevisionCompiler->commit()
                    #6 /app/vendor/flarum/core/src/Frontend/Content/Assets.php(79): Flarum\Frontend\Compiler\RevisionCompiler->getUrl()
                    #7 [internal function]: Flarum\Frontend\Content\Assets->Flarum\Frontend\Content\{closure}()
                    #8 /app/vendor/flarum/core/src/Frontend/Content/Assets.php(78): array_map()#9 /app/vendor/flarum/core/src/Frontend/Content/Assets.php(56): Flarum\Frontend\Content\Assets->getUrls()
                    #10 /app/vendor/flarum/core/src/Frontend/Frontend.php(62): Flarum\Frontend\Content\Assets->__invoke()

                    I am not sure what might be causing it. I tried recursively updating the permissions for folders, but that didn't help. All extensions were rolled back, and forum was synced multiple times (so DB migrate and cache cleared). My best guess is that maybe .gitignore files weren't rolled back, which results in mixed content of "old" and "new" (since I reverted it from our GitHub). I'll check if that's the case, and let you know of updates

                    Edit: yeah, it was that - storage/less was ignored, so it had less from the future. Now, admin panel should be accessible - can you check that, please?

                      SKevo I can access the admin panel now. I think server side you must still have some resource issues, but I imagine that will ripple through the system overnight.

                      Thanks

                        DavecUK I think server side you must still have some resource issues, but I imagine that will ripple through the system overnight.

                        Hopefully. I am clearing lesscache for all forums now, which should finally solve the issue for everyone.

                        Also, feel free to remove my SKevo account now that it was resolved.

                        Hello, my forum is run into a error when loading up and is make mess. I sync from settings but still broken yet.

                        I cannot get access to admin panel.

                        Okay there a bug with asirem. But my forum is fine after the reset.

                          wolfshards I cannot get access to admin panel.

                          This is related to the issue above. It should be resolved overnight/in cca. 5 hours