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?