-
AuthorPosts
-
September 26, 2014 at 3:55 pm #113438
lmndevelopment
ParticipantI keep getting disconnected or long load times due to the visual composer plugin spiking out my available resources. I recently even went and compressed all my videos down and deleted any unneeded content to free up space, as well as upgraded my resource level to well above my current mb usage. please help me resolve this issue so I can get back to working on my site! Thanks
September 26, 2014 at 4:16 pm #113461lmndevelopment
ParticipantI found a thread regarding the same issue and attempted to input the given codes which you said worked and I recieved this error: Parse error: syntax error, unexpected end of file in /home/mymicielo1/public_html/lmn/wp-content/themes/x-child-integrity-light/functions.php on line 2
after inputting this code:
<script type=”text/javascript”>
jQuery.ajaxSetup({
beforeSend : function(xhr, setting) {
if( setting.data == ‘action=wpb_single_image_src’ || setting.data == ‘action=heartbeat’) {
xhr.abort();
return false;
}
}
});
</script>
<?php}
});
Please help, bc now I cant even go back to work on anything
September 26, 2014 at 4:18 pm #113462Mrinal
MemberHI There,
Thanks for writing in!
May I know, Which hosting you’re using? And would you mind sharing your login info here as private reply? So we can take a closer look.
September 26, 2014 at 4:44 pm #113485lmndevelopment
ParticipantThis reply has been marked as private.September 26, 2014 at 5:05 pm #113495lmndevelopment
ParticipantThis reply has been marked as private.September 26, 2014 at 6:47 pm #113540Rad
ModeratorHi there,
Your copied code is not gonna work because it is not complete.
add_action('admin_head', function(){ $user_page = get_current_screen(); if( $user_page->post_type == 'post' || $user_page->post_type == 'page' ) { ?> <script type="text/javascript"> jQuery.ajaxSetup({ beforeSend : function(xhr, setting) { if( setting.data == 'action=wpb_single_image_src' || setting.data == 'action=heartbeat') { xhr.abort(); return false; } } }); </script> <?php } });
And you’re not gonna replace your child theme’s functions.php code. Just append that code at the very end of functions.php
functions.php should look like this.
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= add_action('admin_head', function(){ $user_page = get_current_screen(); if( $user_page->post_type == 'post' || $user_page->post_type == 'page' ) { ?> <script type="text/javascript"> jQuery.ajaxSetup({ beforeSend : function(xhr, setting) { if( setting.data == 'action=wpb_single_image_src' || setting.data == 'action=heartbeat') { xhr.abort(); return false; } } }); </script> <?php } });
Thanks.
September 26, 2014 at 7:54 pm #113558lmndevelopment
Participantmy website is back up if you could please look into resolving the visual composer eating up all my resources and losing connection especially when trying to work on my home page, thanks!
September 26, 2014 at 7:55 pm #113560lmndevelopment
ParticipantSeptember 27, 2014 at 6:25 am #113677Christopher
ModeratorHi there,
One of the reasons that I think you get that Visual Composer problem is that you use theme version 2.3 but have x-shortcode version 2.4
Please update the theme to the latest version:
http://theme.co/x/member/kb/updating-your-theme-and-plugins/
Thank you.
September 28, 2014 at 2:37 pm #114248lmndevelopment
Participantok thanks alot!
September 28, 2014 at 9:45 pm #114379Christian
ModeratorYou’re welcome. 🙂
October 10, 2014 at 3:45 pm #123246lmndevelopment
ParticipantI am still having the same issue! can you please help me resolve this so that I can edit my home page without losing connection, thanks.
October 11, 2014 at 3:33 pm #123583Rubin
KeymasterHey There,
can you check with support what’s your php memory limit on your shared account and get back to us? That will help us to see if it’s something server related or our theme/issues with setting it up. Thanks!
October 13, 2014 at 2:50 pm #124511lmndevelopment
Participantis my theme updated to the latest version yet?
October 13, 2014 at 3:08 pm #124526lmndevelopment
ParticipantI cant seem to get any work done bc the connection keeps getting lost
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-113438 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>