The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Merging messages i get request limit exceeded

View previous topic View next topic Go down

Solved Merging messages i get request limit exceeded

Post by Luffy on 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

Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

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

Try clearing your browser's cache history.


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


SLGray
Administrator
Administrator

Male Posts : 36673
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Luffy on 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?






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Luffy on September 3rd 2014, 9:32 am

When i click a button i get this...






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Luffy on September 3rd 2014, 9:51 am

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






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Luffy on 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?






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Luffy on 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):
Code:
jQuery(document).on('ready', function() {
jQuery('.avt_recent').prepend('<div class="avt-r"><div>');
jQuery('.avt_recent .avt-r').each(function () {
var profileUserURL = jQuery(this).parent().children('.recent_space').children('a:last').attr('href');
jQuery(this).html('<a href="' + profileUserURL + '" class="avt-r-enlace"><img src="http://r14.imgfast.net/users/1417/27/86/76/avatars/1-19.png" alt="No Avatar" /></a>');
jQuery(this).children('a').load(profileUserURL + ' .module:eq(0) img:eq(0)')
});
});






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

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

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

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Luffy on September 8th 2014, 11:38 am

It adds the avatar in the recent topic widget.






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Ange Tuteur on 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://illiweb.com/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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

Post by Luffy on 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:






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Merging messages i get request limit exceeded

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

Solved => Archived

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


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