Discourse math causing errors on site


#1

Hi,

How to check all the posts of a user from day 1?

I tried accessing this URL
https://example.com/u/user/activity/replies
(but this URL doesn’t show posts from day 1)


(Daniela) #2

It does.
But if the user has written thousands of posts you will pass 1 hour of your time scrolling the page to load all the posts up to the first.


#3

It doesn’t. Its not letting me scroll down till I reach posts from day 1. I’m able to scroll down till 20 posts or so.
You may check it yourself.

Steps:

  1. Find a user who has posted at least 1k posts.
  2. Then go to
    https://example.com/u/user/activity/replies
  3. Check if its letting you scroll down to posts from day 1.

NOTE:
I’m ready to spend 1 hour or even more than that scrolling down till I reach posts from day 1 - but its not letting me scroll that far.


(cpradio) #4

It seems to work here. I’m getting pages and pages of replies here on Meta. Do you see an errors in the Dev Console (press F12, then scroll down)?


#5

It lets me check here at meta.
But its not letting me do it in my site :frowning:


#6

This is what I see in the DEV console


(cpradio) #7

What plugins do you have installed?


#8

When I clicked on the link in the error log found in the developer console it took me to the code - and that code looked like code from the “mathjax plugin”. So, I disabled the plugin and then checked - and found that everything was working. After that I tried enabling it again, and found that - things are actually working now. So, all I had to do was : disable the mathjax plugin and enable it back. Yah :slight_smile:


(Daniela) #9

I did it here and on my forum. I confirm it works.
Maybe you have some third-party plugins that have broken something?

Try the safe-mode (disable all plugins).


#10

@Trash
It was due to the mathjax plugin.

I had to disable it - and then enable it back - to fix this issue.


(Daniela) #11

We all wrote a message at the same time :joy:


(Jeff Atwood) #12

This should not happen if you are using the official mathjax plugin that we ship cc @sam


(Sam Saffron) #13

Unclear on what mathjax plugin was used


#14

@sam
I used this mathjax plugin:

I was about to create a new topic under bug category.
Reason: It stopped working again.
(last time I had to disable and enable the mathjax plugin and I thought its fixed for ever. But I was wrong, it started doing the exact same thing again.)


(Sam Saffron) #17

Will have a look at this.


(Sam Saffron) #18

I don’t know what to do here, I can not repro.

Closing this now.


(Sam Saffron) #19

(Sam Saffron) #20

#23

Hi @sam

I’m including more details here

The plugin that is causing this issue

If I disable it, things work, If I enable it back, things stop working (details I’ve included below)

When this plugin is enabled,

Infinite scrolling at below places “works”

  1. the homepage
  2. /u/user-name/activity/topics
  3. /u/user-name/notifications

Infinite scrolling at below places “doesn’t work”

  1. /u/user-name/activity/replies
  2. /u/user-name/activity
  3. /u/user-name/activity/likes-given
  4. /u/user-name/activity/solved

How to repro this

  1. Install this plugin GitHub - discourse/discourse-math: Official MathJax support for Discourse
  2. Enable it.
  3. Press F5 to refresh the site
  4. Check the places “mentioned above” to notice that infinite scrolling doesn’t work there.
  5. Disable the plugin
  6. Press F5 to refresh the site
  7. After disabling, notice that, at the places “mentioned above” infinite scrolling now works fine.

Error from Chrome Console

Below error I took from the console (when the plugin was enabled, and when I was on a page where infinite scrolling doesn’t work - when I disabled the plugin, this error was no more there)


(Sam Saffron) #24

OK I will try again tomorrow.