Fatal Error in Gdn_Database.Connection();

An error occurred while attempting to connect to the database

SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 113

The error occurred on or near: /home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.database.php

54:       if($this->_Connection === FALSE) {
55: 			try {
56: 				$this->_Connection = new PDO(strtolower($this->Engine) . ':' . $this->Dsn, $this->User, $this->Password, $this->ConnectionOptions);
57: 			} catch (Exception $ex) {
58: 				trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);
59: 			}
60:       }
61:       
62:       return $this->_Connection;

Backtrace:

[/home/content/s/a/m/samanime/html/htmlblox/forums/library/core/functions.error.php:124] PHP::include();
[/home/content/s/a/m/samanime/html/htmlblox/forums/library/core/functions.error.php:124] PHP::ErrorHandler();
[/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.database.php:58] PHP::trigger_error();
[/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.database.php:210] Gdn_Database->Connection();
[/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.sqldriver.php:1481] Gdn_Database->Query();
[/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.sqldriver.php:609] Gdn_SQLDriver->Query();
[/home/content/s/a/m/samanime/html/htmlblox/forums/applications/garden/models/class.permissionmodel.php:289] Gdn_SQLDriver->Get();
[/home/content/s/a/m/samanime/html/htmlblox/forums/applications/garden/models/class.permissionmodel.php:110] Gdn_PermissionModel->PermissionColumns();
[/home/content/s/a/m/samanime/html/htmlblox/forums/applications/garden/models/class.usermodel.php:32] Gdn_PermissionModel->CachePermissions();
[/home/content/s/a/m/samanime/html/htmlblox/forums/library/core/class.session.php:253] Gdn_UserModel->DefinePermissions();
[/home/content/s/a/m/samanime/html/htmlblox/forums/index.php:30] Gdn_Session->Start();

Variables in local scope:

[ex] PDOException::__set_state(array(
   'message' => 'SQLSTATE[HY000] [2013] Lost connection to MySQL server at \'reading initial communication packet\', system error: 113',
   'string' => '',
   'code' => 2013,
   'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.database.php',
   'line' => 56,
   'trace' => 
  array (
    0 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.database.php',
      'line' => 56,
      'function' => '__construct',
      'class' => 'PDO',
      'type' => '->',
      'args' => 
      array (
        0 => 'mysql:host=p50mysql279.secureserver.net;dbname=htmlbloxforums;',
        1 => 'htmlbloxforums',
        2 => 'holyCow14',
        3 => 
        array (
          12 => 1,
          1000 => 1,
          1002 => 'set names \'utf8\'',
        ),
      ),
    ),
    1 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.database.php',
      'line' => 210,
      'function' => 'Connection',
      'class' => 'Gdn_Database',
      'type' => '->',
      'args' => 
      array (
      ),
    ),
    2 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.sqldriver.php',
      'line' => 1481,
      'function' => 'Query',
      'class' => 'Gdn_Database',
      'type' => '->',
      'args' => 
      array (
        0 => 'select *
from GDN_Permission Permission
limit 1',
        1 => 
        array (
        ),
      ),
    ),
    3 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.sqldriver.php',
      'line' => 609,
      'function' => 'Query',
      'class' => 'Gdn_SQLDriver',
      'type' => '->',
      'args' => 
      array (
        0 => 'select *
from GDN_Permission Permission
limit 1',
      ),
    ),
    4 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/applications/garden/models/class.permissionmodel.php',
      'line' => 289,
      'function' => 'Get',
      'class' => 'Gdn_SQLDriver',
      'type' => '->',
      'args' => 
      array (
      ),
    ),
    5 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/applications/garden/models/class.permissionmodel.php',
      'line' => 110,
      'function' => 'PermissionColumns',
      'class' => 'Gdn_PermissionModel',
      'type' => '->',
      'args' => 
      array (
      ),
    ),
    6 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/applications/garden/models/class.usermodel.php',
      'line' => 32,
      'function' => 'CachePermissions',
      'class' => 'Gdn_PermissionModel',
      'type' => '->',
      'args' => 
      array (
        0 => 0,
      ),
    ),
    7 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/library/core/class.session.php',
      'line' => 253,
      'function' => 'DefinePermissions',
      'class' => 'Gdn_UserModel',
      'type' => '->',
      'args' => 
      array (
        0 => 0,
      ),
    ),
    8 => 
    array (
      'file' => '/home/content/s/a/m/samanime/html/htmlblox/forums/index.php',
      'line' => 30,
      'function' => 'Start',
      'class' => 'Gdn_Session',
      'type' => '->',
      'args' => 
      array (
        0 => 
        Gdn_PasswordAuthenticator::__set_state(array(
           '_Identity' => 
          Gdn_CookieIdentity::__set_state(array(
             'CookieName' => 'Vanilla',
             'CookiePath' => '/',
             'CookieDomain' => 'forums.htmlblox.com',
             'CookieHashMethod' => 'md5',
             'CookieSalt' => 'DRFU305VM5',
          )),
           '_UserModel' => NULL,
           '_PermissionModel' => NULL,
           'ClassName' => 'Gdn_PasswordAuthenticator',
           'EventArguments' => 
          array (
          ),
           'Returns' => 
          array (
          ),
           'HandlerType' => 'NORMAL',
        )),
      ),
    ),
  ),
   'errorInfo' => NULL,
))

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Lussumo Community Forums.

Additional information for support personnel:


Fatal error: Call to a member function query() on a non-object in /home/content/s/a/m/samanime/html/htmlblox/forums/library/database/class.database.php on line 210