We have created a community site on self hosted platform and it worked perfectly but after we changed some portion in theme the site had become very strange, content is not showing up and the header is repeating atleast 10 times in a single page have attached the screenshot below. The portal looks fine but when we login the content is not shown.
Please see and suggest some steps to get the community portal working again.
These are the logs at /logs ,what can be done for this?
We have tried rebuilding the container but that didn’t worked, some of the admin account is working fine but for my admin account the error still prevails.
It does not support modern JS syntaxes, and therefore breaks Discourse’s code before it reaches the browser.
So I’m afraid there’s nothing we can do on the Discourse side to fix this. Cloudflare’s Auto Minify feature is broken and no longer supported
The general advice is that minification should be done ‘at build time’ instead. That’s what we do at Discourse, and it might already be the case for your main website as well.
Here’s a discussion about the feature’s deprecation on Cloudflare’s own community:
Hey,
We disable ‘Auto Minify’ & also Clean Cache but it still same issue also showing this error : Uncaught (in promise) Error: There is no route named admin
The root cause is the errors further up, which say things like
Unexpected identifier ‘#s’
Your assets are still showing as minified. If you’ve definitely disabled the auto-minify feature, and you’ve totally purged the cache, then I’d suggest getting in touch with cloudflare support to see why it’s still messing with the assets: