Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #97747

    xentrics
    Participant

    Hello,

    We have begun using the Visual Composer Demo Content provided by Themeco to start developing a simple web page so that we may familiarize ourselves with X and the included plugins. We have found that when using Visual Composer to edit a page, a “Connection Lost” error message is displayed in WordPress. This happens every time we click ‘Update’ or ‘Preview Changes’.

    We have disabled all of our plugins one by one to isolate the situation. Once we disabled the Visual Composer plugin, the error message no longer appears. So we have concluded that there is an issue with Visual Composer.

    We do not know if this is caused by the code in the Demo Content or if it’s an error in the Visual Composer php file. Thank you in advance and we are looking forward to your response.

    #97801

    Mrinal
    Member

    Hi There,

    It could be one of the following issue:

    1) It could be a PHP memory issue, so you need to increase your PHP memory limit. Check this: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP how to increase memory limit.

    2) If the above one not resolves then it could be a issue with Autosave interval. Please increase it by following this: http://codex.wordpress.org/Editing_wp-config.php#Modify_AutoSave_Interval & then check for the issue.

    3) Are you using GoDaddy as webhost? If you’re using GoDaddy Shared/VPS hosting then you’ll face this often. You’ve to switch to GoDaddy’s Manged WordPress hosting to ignore this issue.

    General VC Troubleshooting: http://theme.co/x/member/kb/solutions-to-potential-setup-issues-visual-composer/

    #98012

    xentrics
    Participant

    Hello,

    We tried suggestions 1) and 2) by adding the following code in wp-config.php directly below <?php tag:

    define(‘WP_MEMORY_LIMIT’, ‘256M’); //increase WP Memory Limit
    define(‘AUTOSAVE_INTERVAL’, 160 ); // seconds (default is 60)

    This did not help.

    In reference to 3), we are not using GoDaddy servers to host the site.

    The error message is displayed when VC is loading elements (shown by a rotating circle icon next to each element) on the Edit Page screen.

    #98089

    Rad
    Moderator

    Hi Xentric,

    I would like to examine your visual composer’s connection requests. Would you mind providing an admin login so I could check?

    Thanks!

    #98128

    xentrics
    Participant
    This reply has been marked as private.
    #98170

    Paul R
    Moderator

    Hi Xentrics,

    Thank you for providing the login details.

    Your visual composer looks fine from here, I tried on three different browsers.
    Would you mind providing a screenshot of the error.

    Thank you.

    #98193

    xentrics
    Participant
    This reply has been marked as private.
    #98195

    xentrics
    Participant
    This reply has been marked as private.
    #98246

    Christopher
    Moderator

    Hi there,
    I have tested the particular page which you have added the screenshot of and added a sample text at the first of the page with no problem.

    This should be caused by a very long page that you have which exceeds PHP memory limit sometimes, I know you have increased that from wp-config but if you are using a shared hosting it is not enough and you need to ask your hosting to increase that from their end so that your setting in wp-config get into play.

    Hope it helps.

    #98488

    xentrics
    Participant

    I find it very hard to believe that every single time we try and edit the page with the Visual Composer it gives us an error, yet every time that you edit the page, no such error is received.

    So what you’re telling me is that 256MB of PHP Memory is still not enough to handle pages in Visual Composer?

    #98572

    Zeshan
    Member
    This reply has been marked as private.
    #98648

    xentrics
    Participant
    This reply has been marked as private.
    #98720

    Kosher K
    Member

    Hi There,

    I was able to replicate your issue.

    This looks like a particular problem with some host configuration preventing request to admin-ajax.php.

    In this screenshot -> http://i.imgur.com/A5RaTn4.png you’ll see that there’s a failure in some admin-ajax.php post request that is probably causing the “Connection Lost” issue, though it works again in the next post request.

    Additionally, can you please try disabling “Seed Coming Pro” and “Limit Login attempt” and see if the issue still persist.
    its a bit harder to dig into this thing as there are very few people experiencing this kind of issue we don’t know about the specific host configuration and we are also not the original author of Visual composer so we have limited knowledge about all of its admin functionality and script request on the back-end.

    You might also want to check thses topics

    http://wordpress.org/support/topic/error-message-connection-lost-saving-has-been-disabled-until-reconnected
    http://wordpress.org/support/topic/connection-lost

    Regarding about your other query, 256MB would be enough. I have VPS running in CentOS 6/nginx with 256MB ram and I don’t have any issue with both Customizer and Visual Composer where more memory is needed.

    Hope that helps.

    Have a great day

    #98724

    Mrinal
    Member

    Adding another info with last reply.

    If the above not resolves the issue then you could try to increase the Autosave Interval as described here: http://codex.wordpress.org/Editing_wp-config.php#Modify_AutoSave_Interval

    Add the following line to your wp-config.php file:

    define( 'AUTOSAVE_INTERVAL', 160 ); // Seconds

    Try 240, 300, 360 etc if 160 not works.

    #99450

    xentrics
    Participant

    Hi,

    So in order to rule out the host’s server and configuration as the source of error, I created a local testing environment and implemented all the changes outlined in the above posts. I went even further and set the memory limit to 1024M and the autosave interval to 3600, and again the error message is shown.

    The site we are trying to create is a long single page website, so I wanted to recreate the same scenario. As such, I inserted the visual composer with elements throughout the page and created a long single page. The error message is still being displayed. It seems that the Visual Composer plugin cannot handle long single page sites when editing in VC mode as the error message is displayed when the site reaches a certain size.

    Please advise.