The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Unknown JS Slowing Site

3 posters

Go down

In progress Unknown JS Slowing Site

Post by MarcoNecroX Mon 10 Nov 2014, 17:05

looks like a semi-infinite loops, there seems to be a script causing everyone to get page frozen almost everytime.

I have tried disabling custom templates and JS codes magament but there was no change. I disabled JS on firefox and the site was working perfectly. I am wondering if it's possible someone injected a code into the page, as I believe it wouldn't be the first time (my site got flagged as malware once because of something similar)

Thanks
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray Mon 10 Nov 2014, 18:10

It sounds like that could be the cause.

Have you added any codes to an announcement, in the homepage messages, or in a widget?


Unknown JS Slowing Site Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by MarcoNecroX Mon 10 Nov 2014, 18:13

Useful replies please, my forum is almost unusable currently.
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray Mon 10 Nov 2014, 18:23

Do you have HTML activated?  If you do, turn it off and see if your forum loads fine.


Unknown JS Slowing Site Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by MarcoNecroX Mon 10 Nov 2014, 18:27

MarcoNecroX wrote:looks like a semi-infinite loops, there seems to be a script causing everyone to get page frozen almost everytime.

I have tried disabling custom templates and JS codes magament but there was no change. I disabled JS on firefox and the site was working perfectly. I am wondering if it's possible someone injected a code into the page, as I believe it wouldn't be the first time (my site got flagged as malware once because of something similar)
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray Mon 10 Nov 2014, 18:28

I know what you posted, but do you have HTML activated?  If you do, then a member can add a code to their posts or signatures.


Unknown JS Slowing Site Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by MarcoNecroX Mon 10 Nov 2014, 18:40

I'm refering to the forum as a whole and there are no posts in the homepages / etc.


Don't want to be impolite but I'd appreciate a reply from someone with JS/advanced FM knowledge like Ange Tuteur. I'm actually a programmer and web-dev, this ping-pong isn't helping. If it was something I could fix myself, I would have solved this 2 minutes after seeing it. The reason why I am making this post is because this problem is something that isn't on my end, and I lack the tools / informations about forumotion's structures and mechanisms to solve it myself.

Hope you understand.
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray Mon 10 Nov 2014, 19:13

Could it be that you allow your members to post HTML, and one of them added a code to one of their post?


Unknown JS Slowing Site Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by MarcoNecroX Mon 10 Nov 2014, 20:16

Bro, please. I need serious replies.
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray Mon 10 Nov 2014, 20:25

Did you not post this? wrote:I have tried disabling custom templates and JS codes magament but there was no change. I disabled JS on firefox and the site was working perfectly. I am wondering if it's possible someone injected a code into the page, as I believe it wouldn't be the first time (my site got flagged as malware once because of something similar)
That is why I ask if you have HTML activated.


Unknown JS Slowing Site Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by MarcoNecroX Mon 10 Nov 2014, 20:27

NO
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray Mon 10 Nov 2014, 21:31

I just visited your forum, and it loaded fine for me.


Unknown JS Slowing Site Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by Ange Tuteur Mon 10 Nov 2014, 23:07

Hello MarcoNecroX,

Is this the forum in question ?
http://www.medianxl.com/forum

If so, does it happen in a specific area ? As I can navigate the forum without issue.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by MarcoNecroX Mon 10 Nov 2014, 23:45

Hello, it seems to be a problem releated to the chatbox. I can't confirm it's 100% that as temporaly disabling chatbox didn't seem to fix the issue entirely (although it helped).

This is a private message I received from an important forum member:

Quirinus wrote:edit: it freezes again when you enabled the chatbox, I guess it's that... qq

edit2: I think I found the source of the problem. I opened up the browser debugger and it gives an error from https://illiweb.com/rs3/77/frm/chatbox/chatbox7.js.
I think (but not 100% sure yet) it gets stuck when calling function ajax_refresh_chatbox(params), so it gets stuck on manual/auto refresh. not sure if it's the function itself or the content it returns that's causing the problem. I'll try to figure it out.

edit3: it was working for a while, but during that time, it was dying only when I opened http://www.medianxl.com/chatbox/index.forum?archives=1, but at least it displayed the chatbox contents. so it might be related to the archives too?

edit4: Disabled the Chatbox No-Kick js from AP > Modules > HTML & JAVASCRIPT > Javascript codes management > Javascript Codes from showing "In the home page" and "In the portal" and it worked unless you clicked on the "Archives" link in the chatbox. we gotta remove that link until we figure out what's wrong with it. currently your messages appear with a delay, probably because of the people using the archives link or some other reason...

edit5: ok it's not working again, seems the problem is in archives + something else. it gives errors for https://illiweb.com/rs3/77/frm/chatbox/chatbox7.js (and jquery.js, but that's bogus).

chatbox7.js beautified: http://pastebin.com/xqWNJihj
the problem is probably in "function ajax_refresh_chatbox(params, force)"...

The chatbox no-kick is what we discussed a few weeks earlier, here's the script in case you don't remember it:

Code:

setInterval(function(){ $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent='); }, 4500);
$(function() {
  var fa_chat = document.getElementById('frame_chatbox');
  fa_chat.data = '/chatbox/index.forum?archives=1';
});

So it seems to be a problem that has to do with chatbox archives mode (which I have enabled by default) although seems like not 100% entirely the reason. I can send you a user if you want to test although registering takes about a minute.

Usually the normal symphthoms of "the forum not working as expected" are a missing logo (first thing on top left corner, to the left of "Work in progress.."), as well as the social media (which are on the right of the header). As well as the new posts / no new posts / forum locked icons not appearing.

Thanks!
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by Ange Tuteur Mon 10 Nov 2014, 23:59

I've installed the script on my forum, but am not encountering the same issue. Just to make sure, have you cleared your browser cache recently ?

I do recall that the chat JS was on v6, so perhaps there was an update. I'll try to take a look on my test forum to see if I can recreate the problem.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by MarcoNecroX Tue 11 Nov 2014, 00:07

Hello;

This is a global problem affecting all members of the forum, not just me Smile

As for trying to recreate the problem, I'm not sure if that would work? Looks like I'm the first (and only) one to report this issue, so this might require some rather heavy forum activity, and the problem might not happen when there's only a few users browsing a forum.

Anyways, whatever can bring me to a solution works. I have a major game update release on saturday and I need things running smoothly.

Thank you for your help
avatar
MarcoNecroX
Forumember

Posts : 95
Reputation : 3
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum