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

    Merging messages i get request limit exceeded

    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Merging messages i get request limit exceeded

    Post by TheCrow September 2nd 2014, 6:30 pm

    Hello,

    Today i tried merging two posts and i got the limit exceeded out of nowhere. I didn't get this over a long time after the updates i made but now it won't allow me to merge any posts. Please help me!

    Thanks for your time,

    MrMind.


    Last edited by MrMind on September 8th 2014, 5:28 pm; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Merging messages i get request limit exceeded

    Post by SLGray September 2nd 2014, 8:25 pm

    Try clearing your browser's cache history.



    Merging messages i get request limit exceeded Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Merging messages i get request limit exceeded

    Post by Ange Tuteur September 2nd 2014, 9:32 pm

    Hello MrMind,

    Do you use any scripts which utilize the jQuery load() method ? The only way you'll see this message is if you're sending too many requests to the server. Using the load() method loosely will increase your chances of reaching the request limit.

    By loosely I mean using load() while the page is loading and not caching the results.
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Merging messages i get request limit exceeded

    Post by TheCrow September 2nd 2014, 10:43 pm

    I know about these two commands. The load() and the get(). I searched my javascripts and i have 2 javascripts that conclude the command load() just once each. Should i delete them?



    Merging messages i get request limit exceeded Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Merging messages i get request limit exceeded

    Post by Ange Tuteur September 3rd 2014, 12:21 am

    It depends when they are triggered. Do they load the specified URL when the page loads, or on an event such as Click ?
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Merging messages i get request limit exceeded

    Post by TheCrow September 3rd 2014, 9:32 am

    When i click a button i get this...



    Merging messages i get request limit exceeded Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Merging messages i get request limit exceeded

    Post by Ange Tuteur September 3rd 2014, 9:43 am

    Try disabling your JavaScripts temporarily to see if it's the cause.

    Administration panel > Modules > JavaScript codes management

    Enable javascript code management : no, and save
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Merging messages i get request limit exceeded

    Post by TheCrow September 3rd 2014, 9:51 am

    I did that and i didn't get that message. Sad



    Merging messages i get request limit exceeded Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Merging messages i get request limit exceeded

    Post by Ange Tuteur September 3rd 2014, 10:01 am

    If that's the case you should try rooting out the cause. To do that :

    1. ) Re-enable javascript management
    2. ) Edit a script and untick it from all pages ( nothing should be ticked ), save
    3. ) Test to see if that script was the cause

    Repeat step 2 & 3 until you've found the script causing it.
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Merging messages i get request limit exceeded

    Post by TheCrow September 8th 2014, 1:05 am

    When i find that script i must delete it or can i do something to make it work without the load() command?



    Merging messages i get request limit exceeded Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Merging messages i get request limit exceeded

    Post by Ange Tuteur September 8th 2014, 1:13 am

    It depends how it's used. If it's a little bit of HTML being loaded it can certainly be cached.

    If you're using load() there is no other way to load data from another page, so unfortunately you'll have to stick with AJAX.
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Merging messages i get request limit exceeded

    Post by TheCrow September 8th 2014, 1:18 am

    This is the only one i have with the load command. It has it just once.

    Javascript (avarar recent topic):



    Merging messages i get request limit exceeded Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Merging messages i get request limit exceeded

    Post by Ange Tuteur September 8th 2014, 1:52 am

    What is the purpose of this script; what does it modify ?
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Merging messages i get request limit exceeded

    Post by TheCrow September 8th 2014, 11:38 am

    It adds the avatar in the recent topic widget.
    Merging messages i get request limit exceeded R8Nut8l



    Merging messages i get request limit exceeded Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Merging messages i get request limit exceeded

    Post by Ange Tuteur September 8th 2014, 1:49 pm

    There's the problem, you're sending 6 requests to load a members avatar every time you go to another page.

    See if this is better, it should cache the data :
    Administration Panel > Modules > JavaScript Codes management > Create a new script

    Title : Your choice
    Placement : Wherever the widget displays
    Code:
    $(function(){
     Â   
     Â      if(!window.localStorage) return;
     Â   
     Â      // Avatar por defecto
     Â       var default_avatar= 'http://2img.net/i/fa/invision/pp-blank-thumb.png';
     Â   
     Â      // Tiempo de cache, aqui 24 h * 60 m * 60 s * 1000 ms entonces un día
     Â       var caching_time= 24*60*60*1000;
     Â   
     Â      // Tiempo de cache de un error, ici 60 s * 1000 ms entonces un minuto
     Â       var caching_error= 60*1000;
     Â   
     Â      var set_avatar= function(id) {
     Â           $('.mini_ava2.member'+id).html('<img src="'+get_avatar(id)+'" />');
     Â       };
     Â   
     Â      var get_avatar= function(id) {
     Â           if(localStorage.getItem('t_ava'+id) < +new Date - caching_time || (localStorage.getItem('d_ava'+id)==default_avatar && localStorage.getItem('t_ava'+id) < +new Date - caching_error))
     Â           {
     Â               localStorage.setItem('d_ava'+id, default_avatar);
     Â               $.get('/u'+id, function (d){
     Â                   localStorage.setItem('t_ava'+id,+new Date);
     Â                   localStorage.setItem('d_ava'+id, $('#profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img',d).first().attr('src')||default_avatar);
     Â                   set_avatar(id);
     Â               });
     Â           }
     Â           return localStorage.getItem('d_ava'+id);
     Â       };
     Â   
     Â      var to_replace= {};
     Â   
     Â   $('.module.main:has(a[href^="/t"]) a[href^="/u"]').each(function(){
     Â           to_replace[$(this).attr('href').substr(2)]= 1;
     Â           $(this).before('<span class="mini_ava2 member'+$(this).attr('href').substr(2)+'"></span>');
     Â       });
     Â   
     Â      for(i in to_replace)
     Â       {
     Â           set_avatar(i);
     Â       };
     Â   
     Â  });

    And CSS :
    Display > Colors > CSS stylesheet
    Code:
    .mini_ava2 > img {
     Â   height: 20px;
     Â   margin-right: 5px;
     Â   width: 20px;
    }
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Merging messages i get request limit exceeded

    Post by TheCrow September 8th 2014, 5:27 pm

    Excellent! That makes my forum a lot faster than it was! Thanks so so much!
    Problem SOLVED!!! I love you :rose:



    Merging messages i get request limit exceeded Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Base
    Base
    Forumaster


    Male Posts : 10383
    Reputation : 1695
    Language : English and French
    Location : United Kingdom, England

    Solved Re: Merging messages i get request limit exceeded

    Post by Base September 8th 2014, 6:32 pm

    Solved => Archived

      Current date/time is November 11th 2024, 5:31 pm