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.

Scripts aren't loaded

4 posters

Go down

In progress Scripts aren't loaded

Post by darki May 4th 2015, 4:45 pm

Hello,

www.schiggysboard.com
phpbb3

I've got problems with cookies and auto login for a few months. Today I got the problem that the toolbar does not appear and the admin cp does appear without layout (look at screenshot below).
Scripts aren't loaded 846yu8sm

I installed the folowing script:
Code:
function addEvent(event, target, f) {
  if(typeof target.addEventListener === "function" && typeof f === "function") {
    target.addEventListener(event, f);
  } else if(typeof target.attachEvent === "function" && typeof f === "function") {
    target.attachEvent("on" + event, f);
  } else {
    throw new Error("Could not add event to selected target.");
  }
}

After that I got the following error meesages by pressing STRG + Shift + K (in Firefox):
ReferenceError: Toolbar is not defined www.schiggysboard.com:86:0
ReferenceError: my_getcookie is not defined www.schiggysboard.com:305:0
ReferenceError: insertChatBoxPopup is not defined www.schiggysboard.com:397:0
ReferenceError: fa_endpage is not defined www.schiggysboard.com:406:0
ReferenceError: cookieChoices is not defined www.schiggysboard.com:401:16

Does anyone has an idea what the problem is and what I can do against that?
Thanks in advance.
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 4th 2015, 8:45 pm

So when you remove that JavaScript, the errors disappear?

I do not see a screenshot.


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 4th 2015, 8:56 pm

So the problem with acp and toolbar were caused by DNS. I deleted the DNS cache, now it's working fine. Smile

But the other problem (auto-login) is still there, of course for all users. This problem is there for a few months. I asked some people with knowledge - they told me whether it's caused by forumotion or by an installed script.
Do you have an idea?

PS: Even if it doesn't matter now, the screenshot can be seen below the hint in brackets to this screen. Also, the javascript has no connections to the problems. It was installed for cookies (because of the problem with auto-login).


Last edited by darki on May 4th 2015, 9:01 pm; edited 1 time in total
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 4th 2015, 8:59 pm

Your forum is already using cookies.


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 4th 2015, 9:03 pm

Yes, but nevertheless the problem with auto-login is there. Very Happy
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 4th 2015, 9:03 pm

What exactly is the issue?


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 4th 2015, 9:09 pm

The problem is that the users (including me) have to login again after some hours (sometimes: days), although we chose "automatically login".
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 4th 2015, 9:19 pm

When you close your browsers, most of them clear your history and cache.  I would not want accounts to be logged in for days.


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 4th 2015, 9:25 pm

Yeah, but my users want that. Razz
Way back in 2014 (amd previously) the problem didn't exist.
It has nothing to do with clearing cache and history by closing the browser, the users (including me) only have the problem in my forum.
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 4th 2015, 9:28 pm

This option can only be set to 60.

Time in minutes before a member is considered "Offline" :


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 4th 2015, 9:35 pm

Has this option connection to the problem?
Why should users not be logged out due to this option?
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by Ange Tuteur May 4th 2015, 11:51 pm

Hi @darki,

I'm assuming it's because the function is missing a semi-colon on it's closing bracket. I notice this happens whenever I declare a function without a semi-colon in JS management. It seems to occur, because forumotion automatically minifies our scripts to save space.

I believe in no way it should affect your administration panel, mainly because those scripts cannot directly modify the administration pages. It could be a problem with your cache which I highly recommend that you clear. As for the code, replace it with this and you should be good :
Code:
function addEvent(event, target, f) {
  if(typeof target.addEventListener === "function" && typeof f === "function") {
    target.addEventListener(event, f);
  } else if(typeof target.attachEvent === "function" && typeof f === "function") {
    target.attachEvent("on" + event, f);
  } else {
    throw new Error("Could not add event to selected target.");
  }
};
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: Scripts aren't loaded

Post by darki May 5th 2015, 1:36 pm

As I told some posts above, I have already cleared the DNS cache which was the solution for the problems toolbar and acp. Wink

Also, the script were for the cookies and to get error messages (to recognize the reason of the problems). Because of the fact that I got the error nessages above, I would say the script worked. Smile

My actual problem is that the users (including me) have to login again after some hours (sometimes: days), although we chose "automatically login". Regardless of whether you or other staff don't want to be logged in for days, I hope to get an answer from you.
An other support told me that the reason are maybe defect cookies or a script. So I told my users to clear their cookies, now I wait for a result from them. But if that's not the reason, how I will find cleverly the script which is causing the problem?

Thanks in advance!
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 6th 2015, 5:57 am

Was this working before?  I do not believe that you can stay logged in for days.


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 6th 2015, 8:47 am

Yes, of course, otherwise I would not have asked.
Normally, Users are logged in for a month. Then they will be logged out for security reason (other support told me).


Last edited by darki on May 6th 2015, 12:21 pm; edited 1 time in total
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by brandon_g May 6th 2015, 12:20 pm

Do the users having the problem ever use different devices or browsers to view the forum?


-Brandon


Scripts aren't loaded Brando10
Remember to mark your topic Scripts aren't loaded Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Scripts aren't loaded Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 6th 2015, 12:22 pm

Yes, no matter what device oder browser..
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 6th 2015, 8:04 pm

darki wrote:Yes, of course, otherwise I would not have asked.
Normally, Users are logged in for a month. Then they will be logged out for security reason (other support told me).
What other support?


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 6th 2015, 8:11 pm

German ... told me the following (I translated it into english):

A note yet: At the beginning of the month Auto-login cookie expires for security reasons. That means, early in the month, all users must log in again.
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 6th 2015, 8:17 pm

Have you tried on the official French support forum?


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 6th 2015, 8:23 pm

No, why? Are they able to help?
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by SLGray May 6th 2015, 8:24 pm

The company that owns Forumotion is in France.


Scripts aren't loaded 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 : 51576
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Scripts aren't loaded

Post by brandon_g May 6th 2015, 8:53 pm

darki wrote:Yes, no matter what device oder browser..

Well if they use different devices then they would need re login for each device and set a the remmeber me, same goes for browsers, if I were to login into my (or any) forum on my cell phone and hit remmeber me, then went on my pc or tablet, it would not remmeber that I logged in on my cellphone because the cookie was stored ONLY on my cell. So I would have to relogin again on my pc or tablet, also using different browser often has the thing, cookies are stored BY the browser and ONLY on the browser, so only THAT browser will 'remmeber' that you logged ib. Any other browser would not.

So try telling your users to use the same device and browser consistently when viewing your forum to avoid such problems.

Regards,
-Brandon
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Scripts aren't loaded

Post by darki May 6th 2015, 8:58 pm

No, that doesn't matter. Once the auto-login worked fine, the problem hadn't been there.
Also, it is actually so, that sometimes auto-login is working fine. Then we, my users and me, can user different devices/ browser without problems.

I hope you can understand me..
avatar
darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

Back to top

- Similar topics

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