-
AuthorPosts
-
September 26, 2014 at 3:55 pm #113438
I 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 #113461I 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 #113462HI 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 #113485This reply has been marked as private.September 26, 2014 at 5:05 pm #113495This reply has been marked as private.September 26, 2014 at 6:47 pm #113540Hi 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 #113558my 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 #113560September 27, 2014 at 6:25 am #113677Hi 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 #114248ok thanks alot!
September 28, 2014 at 9:45 pm #114379You’re welcome. 🙂
October 10, 2014 at 3:45 pm #123246I 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 #123583Hey 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 #124511is my theme updated to the latest version yet?
October 13, 2014 at 3:08 pm #124526I cant seem to get any work done bc the connection keeps getting lost
-
AuthorPosts