SuttaCentral: bug reports

Have you tried ctrl+shift+r?

Can you tell us your browser (Chrome/Edge/Firrefox/etc) and operating system (Windows/Mac/Linux)?

Thanks @Beaver @Snowbird

Since the homepage loads slowly on mobile phones, I modified the font loading strategy. When the homepage is opened, the default system font is used, and the custom font is loaded only when the user clicks the navigation menu.

So if you go directly to the sutta page, the custom font has not been loaded yet, so the default font is used.

I have made a modification to only execute this loading strategy on the mobile side.

4 Likes

Just to confirm that fonts work beautifully now. :slight_smile:

2 Likes

Hyperlinks to a specific segment of a sutta on discourse doesn’t take me to the segment anymore. Same if I search for something on suttacentral and click on the segment. It just takes me to the beginning of the sutta. I don’t know if it works fine on a computer and this has something to do with the default font on a phone.

So if I click AN 5.132:4.3 on discourse or if I search for «Possessing these five qualities Sāriputta rightly» on suttacentral and click on the 4.3 segment it takes me to the beginning of the sutta instead of the segment.

2 Likes

Thanks, could you tell me what environment and browser it is? There is no problem on PC and Android browser, but I can reproduce this problem on Safari on iPhone.

1 Like

iPhone 16e
iOS 18.5
Safari

Edit: It works for me now, thanks @HongDa!
Edit 2: It looks like it works if I have activated «Main» under «References». But if I turn that off, it stops working again.

1 Like

Thanks for you feedback :heart:

I will make some changes to try to fix the problem completely.

1 Like

The Pali word lookup stops working if I go to another sutta. To get it to work again I have to click «none» under «Activate Pali word lookup» and then click on «English» again. The same thing happens with the Chinese word lookup, I have to click «none» and then on Â«æ±‰èŻ­ → English» again.

1 Like

It never hurts to tell us exactly what page you have the problem on, even if it seems to happen on all page. It’s also great to remind us exactly what your browser and OS are. And if you are on Safari, make sure you are on the latest version.

I mention this because I can’t recreate this problem on my FF/Windows system.

1 Like

If I clear my cookies and activate side by side or line by line and Pali lookup the first sutta always works. I tried DN 1 now, it worked. I changed to DN 2, and then it stopped working. I had to click «None» and then on «English» again to get it to work on DN 2. If I go back to DN 1 or go to any other sutta it stops working and I have to click «None» and then on «English» again.

I had said it two post earlier so I didn’t think it would be necessary, but it’s:

I think it’s just something with iOS and safari after the newest SuttaCentral update since HongDa was able to replicate another problem I’m having with hyperlinks to segments taking me to the start of a sutta instead of the segment after the update.

1 Like

Thanks! I think it’s a good policy to treat different bugs as independent problems until proven otherwise. It may very well end up it’s all iOS/Safari related. Thanks, as always, for the time you take to report bugs. It’s a huge help.

2 Likes

Yes, I’ve tried hard refreshing with C-S-r. My default user-agent is Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0. The annotations are fine when viewed initially, but mousing-over any breaks that annotation in particular. It also happens in Chromium 135.0.7049.84 (my local Chromium install for verifying these kinds of things).

1 Like

Hi @HongDa - The latest push seems to have broken Bu Np 24? The page is loading blank for me and the API is giving “Internal Server Error”

1 Like

Thanks @Khemarato.bhikkhu , I have reloaded the data.

The data loading code refactored by @Jhanarato works fine in the production environment. :+1:

4 Likes

Thanks for the quick fix :blush:

3 Likes

Good to know. Here to help if anything goes Kaboom!

It shouldn’t though. I’ve got a pretty decent suite of tests now and a good understanding of what the code should do.

2 Likes

Hi @cyan I have tried to fix this problem, please try again when you have time.

2 Likes

Hi @Beaver I have made some modifications to Safari and it now looks normal on my iPhone. you can try it when you have time.

2 Likes

Weird bug with SA884 as a parallel to AN3.58 and AN3.59


When shown as a parallel to other texts (AN3.58 and AN3.59), it shows up as an unrounded square, holds the title of the collection it’s in, and can’t be clicked on/doesn’t lead to SA884.

When looking at SA884 or SA885, they both say they’re parallels to AN3.58 and AN3.59, but only SA884 shows as a parallel when looking at those texts, so that is probably related


3 Likes

I am having a Pali word lookup bug. I made a short screen capture video below showing what happens. You can see how the Pali word lookup works at the beginning, but after I use the “V” keyboard shortcut to switch views, it stops working. Refreshing the page temporarily fixes the issue until I use the “V” keyboard shortcut again.

I’m on Windows 11. I can replicate the bug in Chrome and Edge in both regular or incognito mode, and I tried clearing site data. There is no bug in Firefox.

3 Likes