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.

Merging messages i get request limit exceeded

4 posters

Go down

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
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

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

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

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 ?
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

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
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

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 ?
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

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;
}
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

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

Solved => Archived
Base
Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

Back to top

- Similar topics

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