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 November 10th 2014, 6:05 pm

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 : 102
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray November 10th 2014, 7:10 pm

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 : 51464
Reputation : 3519
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 November 10th 2014, 7:13 pm

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

Posts : 102
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray November 10th 2014, 7:23 pm

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 : 51464
Reputation : 3519
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 November 10th 2014, 7:27 pm

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 : 102
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray November 10th 2014, 7:28 pm

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 : 51464
Reputation : 3519
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 November 10th 2014, 7:40 pm

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 : 102
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray November 10th 2014, 8:13 pm

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 : 51464
Reputation : 3519
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 November 10th 2014, 9:16 pm

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

Posts : 102
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray November 10th 2014, 9:25 pm

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 : 51464
Reputation : 3519
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 November 10th 2014, 9:27 pm

NO
avatar
MarcoNecroX
Forumember

Posts : 102
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by SLGray November 10th 2014, 10:31 pm

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 : 51464
Reputation : 3519
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 November 11th 2014, 12:07 am

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 : 13246
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 November 11th 2014, 12:45 am

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 : 102
Reputation : 3
Language : English

Back to top Go down

In progress Re: Unknown JS Slowing Site

Post by Ange Tuteur November 11th 2014, 12:59 am

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 : 13246
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 November 11th 2014, 1:07 am

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 : 102
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