The discussion revolves around the issue of the site logo and icons breaking on a Discourse community setup in a subfolder configuration. Amit_yadav reports that the logo breaks after a few days, showing a 404 error, and Gravatar stops working. david suggests checking the /logs for errors and available disk space. After troubleshooting, Amit_yadav discovers that uploading a logo results in a blank page, and david recommends checking the rails console for the logo URL.
Amit_yadav finds that the logo URL points to a correct location, but the image is not accessible. david suggests deleting the upload record from the database and uploading again. After this, the logo uploads successfully, but other logo and icons fail to upload, showing a MissingFile error.
Amit_yadav discovers that the issue is due to the incorrect folder structure, with Discourse installed at /var/www/thetechbasket.com/discourse/ instead of /var/discourse/. Stephen points out that the guide followed by Amit_yadav does not recommend installing Discourse in a subfolder, and codinghorror states that there is no SEO difference between subfolders and subdomains.
Amit_yadav decides to stick with the subfolder setup, despite the technical challenges, and Stephen advises considering seeking professional help due to the complexity of the setup.
Your work on discourse is great,
Just need small help,
After running discourse for few days I am having trouble with setting logo, as it breaks after few days (404 error in console),
All images in post working fine,
I can not upload again any logo,
Delete, reset and upload again doesn’t work,
at the same time Gravatar also stopped working,
I am not using cdn to serve images,
discourse is setup on subfolder using this post Serve Discourse from a subfolder (path prefix) instead of a subdomain
This suggests there is an issue bigger than just site logos. Are you seeing any errors in /logs? What kind of server are you running Discourse on? Do you have available disk space?
Deprecation notice: The flags webhook is deprecated. Please use reviewable instead.
At /var/www/discourse/config/initializers/012-web_hook_events.rb:82:in `block (2 levels) in <top (required)>`
6 Errno::ECONNREFUSED (Failed to open TCP connection to www.thetechbasket.com:443 (Connection refused - connect(2) for "www.thetechbasket.com" port 443)) /usr/local/lib/ruby/2.6.0/net/http.rb:949:in rescue in block in connect'
Have you done anything which might have deleted files from your server? (Normally they would be under /var/discourse/shared/standalone/uploads/default).
Anyway, to try and recover, you can delete the upload record from the database and upload again. So in this case, run Upload.find(10).destroy! from the rails console.
Actually you already know why everyone wants to have community on subdirectory instead of subdomain,
subdomain is treated as separate site in SERP and we don’t want to manage two sites,
I think for now I am going to stick to subdirectory,
A broken Discourse installation, having deviated from the install guide
Gaps in your technical knowledge in implementing the subfolder install.
Google make it quite clear that subfolders and subdomains are treated equally - as your don’t currently have the expertise to install this you probably need to consider making a post in the Marketplace.
And bear in mind that complications do arise with subfolders and updates - you’re going to need to retain someone to help you maintain it down the line.