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, 4: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, 3:28 pm; edited 1 time in total
TheCrow
TheCrow
Manager
Manager

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by SLGray September 2nd 2014, 6: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 : 51453
Reputation : 3519
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, 7: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 : 13246
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, 8: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?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur September 2nd 2014, 10:21 pm

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 : 13246
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, 7:32 am

When i click a button i get this...
TheCrow
TheCrow
Manager
Manager

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur September 3rd 2014, 7: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 : 13246
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, 7:51 am

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

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur September 3rd 2014, 8: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 : 13246
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 7th 2014, 11:05 pm

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

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur September 7th 2014, 11:13 pm

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 : 13246
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 7th 2014, 11:18 pm

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

Javascript (avarar recent topic):
TheCrow
TheCrow
Manager
Manager

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur September 7th 2014, 11:52 pm

What is the purpose of this script; what does it modify ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
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, 9:38 am

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

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur September 8th 2014, 11:49 am

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 : 13246
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, 3:27 pm

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

Male Posts : 6896
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

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

Solved => Archived
Base
Base
Forumaster

Male Posts : 10386
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