Lost password?    Lost username?    Create an account
OverviewDownloadsForumSupport
CSV Improved

CSV Improved

MySQL server has gone away

The error MySQL server has gone away is a bad configuration setting on the server. The first work-around that can be tried is the following:

  1. Open the file administrator/components/com_csvivirtuemart/csvivirtuemart.php
  2. Find line 13 where the following code is:

    defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );

    // Load the logger
    require_once (JPATH_COMPONENT_ADMINISTRATOR.'/helpers/log.php');

  3. Change this to read:

    defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );

    ini_set('mysql.connect_timeout', 300);
    ini_set('default_socket_timeout', 300);

    // Load the logger
    require_once (JPATH_COMPONENT_ADMINISTRATOR.'/helpers/log.php');

  4. Save the file

A second work-around to try is the following (this is a Joomla core hack !):

  1. Open the file administrator/index.php
  2. Find line 14 where the following code is:

    // Set flag that this is a parent file
    define( '_JEXEC', 1 );

    define('JPATH_BASE', dirname(__FILE__) );

  3. Change this to read:

    // Set flag that this is a parent file
    define( '_JEXEC', 1 );

    ini_set('mysql.connect_timeout', 300);
    ini_set('default_socket_timeout', 300);

    define('JPATH_BASE', dirname(__FILE__) );

  4. Save the file
In case the error stays, contact your hosting provider to solve the issue.

TESTIMONIAL

Excellent extension, SUPERB support
5 stars
2013-02-26
That extension is what you need to fill your VM store with products! it's not hard to understand how it works (just read the manual) and if you need anything they have a forum that aswers to EVERYTHING! I just love this extension and is a part of my store-maintenance tools! It's a pity not to mention that this roland guy is awsome when it comes to support!

STAY INFORMED


Stay informed with the CSVI newsletter.