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.
The forum of the forums
4 posters

    Scripts aren't loaded

    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Scripts aren't loaded

    Post by darki Mon May 04, 2015 9:45 am

    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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Mon May 04, 2015 1: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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Mon May 04, 2015 1: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 Mon May 04, 2015 2:01 pm; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Mon May 04, 2015 1: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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Mon May 04, 2015 2:03 pm

    Yes, but nevertheless the problem with auto-login is there. Very Happy
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Mon May 04, 2015 2: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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Mon May 04, 2015 2:09 pm

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


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Mon May 04, 2015 2: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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Mon May 04, 2015 2: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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Mon May 04, 2015 2: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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Mon May 04, 2015 2:35 pm

    Has this option connection to the problem?
    Why should users not be logged out due to this option?
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    In progress Re: Scripts aren't loaded

    Post by Ange Tuteur Mon May 04, 2015 4: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.");
      }
    };
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Tue May 05, 2015 6:36 am

    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!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Tue May 05, 2015 10:57 pm

    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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Wed May 06, 2015 1: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 Wed May 06, 2015 5:21 am; edited 1 time in total
    brandon_g
    brandon_g
    Manager
    Manager


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

    In progress Re: Scripts aren't loaded

    Post by brandon_g Wed May 06, 2015 5:20 am

    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
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Wed May 06, 2015 5:22 am

    Yes, no matter what device oder browser..
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Wed May 06, 2015 1: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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Wed May 06, 2015 1: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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Wed May 06, 2015 1: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.
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Wed May 06, 2015 1:23 pm

    No, why? Are they able to help?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Scripts aren't loaded

    Post by SLGray Wed May 06, 2015 1: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.
    brandon_g
    brandon_g
    Manager
    Manager


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

    In progress Re: Scripts aren't loaded

    Post by brandon_g Wed May 06, 2015 1: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
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    In progress Re: Scripts aren't loaded

    Post by darki Wed May 06, 2015 1: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..

      Current date/time is Sun Sep 22, 2024 10:20 pm