3

EDIT: SOLVED. It wasn't a problem with the tos.html or layout.html or home.html files or the folder structure. It was an nginx problem, which has been fixed. Thank you all for the replies and helping out!

  1. The tos.html file is present in the /home/app/throat/app/templates/ folder. I checked the layout.html file and it's referenced correctly as <a href="{{url_for('tos')}}">ToS</a>. Any other files that I need to look for?

For the layout.html file in /home/app/throat/app/html/shared/ the reference is <a href="@{url_for('tos')}">ToS</a>. The codes/hrefs seem to be correct. I've pulled my hair long enough so just giving it a go on this sub if one of you might have an answer.

  1. As for the homepage sidebar where you have the Hot, Top, and New links, the Top link also gives a 404 Not Found error. The Hot and New links work just fine. Are there any particular files that I need to look and what might be wrong?
**EDIT:** SOLVED. It wasn't a problem with the **tos.html** or **layout.html** or **home.html** files or the folder structure. It was an nginx problem, which has been fixed. Thank you all for the replies and helping out! 1. The **tos.html** file is present in the **/home/app/throat/app/templates/** folder. I checked the **layout.html** file and it's referenced correctly as **<a href="{{url_for('tos')}}">ToS</a>**. Any other files that I need to look for? For the **layout.html** file in **/home/app/throat/app/html/shared/** the reference is **<a href="@{url_for('tos')}">ToS</a>**. The codes/hrefs seem to be correct. I've pulled my hair long enough so just giving it a go on this sub if one of you might have an answer. 2. As for the homepage sidebar where you have the **Hot, Top, and New** links, the **Top** link also gives a **404 Not Found** error. The **Hot** and **New** links work just fine. Are there any particular files that I need to look and what might be wrong?

7 comments

[–] E-werd 1 points (+1|-0) Edited

I’m not in a position where I can sit at my desk and spin up an instance, but regarding the Top sort... do you have posts in your instance right now at all? It shouldn’t matter, but I’m just feeling for possibilities.

As for the TOS link... can you verify that the template indeed exists? It should be under /home/app/throat/app/templates/tos.html

Edit: Within the past week the top Hot sort was broken and fixed when we added support for postgresql, make sure you do a ‘git pull’ to get the updates.

Edit2: That was the Hot sort that broke, not the top.

[–] curious [OP] 0 points (+0|-0)

Alright. There was no problem with the files/file structure at all. It was an nginx problem. Thank you for trying to help you!

Cheers!

[–] curious [OP] 0 points (+0|-0) Edited

Hey. Thanks for the reply.

regarding the Top sort... do you have posts in your instance right now at all? It shouldn’t matter, but I’m just feeling for possibilities.

Yes there are about 20 posts on the site with random post votes ranging from 4 to 8.

  • The tos.html template file does exist and that's why I've been pulling my hair over it :( See ScreenShot.

  • I've made a lot of customization to my site, could you (if you have time) point me to any particular file or line of code where I need to make the changes?

[–] E-werd 1 points (+1|-0)

Well, I can confirm that the ToS link works in the current git version of Throat. Same goes for the Top sort. So I guess that brings us to...

I've made a lot of customization to my site, could you (if you have time) point me to any particular file or line of code where I need to make the changes?

We'll need to know what customizations you made and where. Not sure what to tell you without that info.

[–] curious [OP] 0 points (+0|-0)

On comparing, here's the difference between my version of layout.html and the current version of layout.html of throat.

Location of layout.html being the one in /home/app/throat/app/html/shared

https://i.imgur.com/OxYRMUX.png

[–] curious [OP] 0 points (+0|-0)

By customization, I mean just changes in the 'text' e.g. adding a 'random' link at the header or changing the texts or tinkering with the themes (CSS) and that's about is.

Also, when I go inside a sub's click the HOT, NEW, TOP e.g https://mysite.co/s/news/hot etc, all the three buttons/links work. It's only in the Home Page that I'm having a problem. Could the culprit be the layout.html file in /home/app/throat/app/html/shared ? Asking here directly since my site live so just taking precautions :D

[–] xyzzy 0 points (+0|-0)

The ToS one is to hold you legally responsible, so you can be sued for everything going on on the site. The other ones you can ignore.