Fatal Error in Gdn_Database.Connection();

An error occurred while attempting to connect to the database

SQLSTATE[28000] [1045] Access denied for user 'knivez'@'localhost' (using password: YES)

The error occurred on or near: /home/rushthew/public_html/slavelaborsoftware.com/forum/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/rushthew/public_html/slavelaborsoftware.com/forum/library/core/functions.error.php:124] PHP::include();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/library/core/functions.error.php:124] PHP::ErrorHandler();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.database.php:58] PHP::trigger_error();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.database.php:210] Gdn_Database->Connection();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.sqldriver.php:1481] Gdn_Database->Query();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.sqldriver.php:609] Gdn_SQLDriver->Query();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/applications/garden/models/class.permissionmodel.php:289] Gdn_SQLDriver->Get();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/applications/garden/models/class.permissionmodel.php:110] Gdn_PermissionModel->PermissionColumns();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/applications/garden/models/class.usermodel.php:32] Gdn_PermissionModel->CachePermissions();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/library/core/class.session.php:253] Gdn_UserModel->DefinePermissions();
[/home/rushthew/public_html/slavelaborsoftware.com/forum/index.php:30] Gdn_Session->Start();

Variables in local scope:

[ex] PDOException::__set_state(array(
   'message' => 'SQLSTATE[28000] [1045] Access denied for user \'knivez\'@\'localhost\' (using password: YES)',
   'string' => '',
   'code' => 1045,
   'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.database.php',
   'line' => 56,
   'trace' => 
  array (
    0 => 
    array (
      'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.database.php',
      'line' => 56,
      'function' => '__construct',
      'class' => 'PDO',
      'type' => '->',
      'args' => 
      array (
        0 => 'mysql:host=localhost;dbname=forum;',
        1 => 'knivez',
        2 => '2@deviance',
        3 => 
        array (
          12 => 1,
          1000 => 1,
          1002 => 'set names \'utf8\'',
        ),
      ),
    ),
    1 => 
    array (
      'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.database.php',
      'line' => 210,
      'function' => 'Connection',
      'class' => 'Gdn_Database',
      'type' => '->',
      'args' => 
      array (
      ),
    ),
    2 => 
    array (
      'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/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/rushthew/public_html/slavelaborsoftware.com/forum/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/rushthew/public_html/slavelaborsoftware.com/forum/applications/garden/models/class.permissionmodel.php',
      'line' => 289,
      'function' => 'Get',
      'class' => 'Gdn_SQLDriver',
      'type' => '->',
      'args' => 
      array (
      ),
    ),
    5 => 
    array (
      'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/applications/garden/models/class.permissionmodel.php',
      'line' => 110,
      'function' => 'PermissionColumns',
      'class' => 'Gdn_PermissionModel',
      'type' => '->',
      'args' => 
      array (
      ),
    ),
    6 => 
    array (
      'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/applications/garden/models/class.usermodel.php',
      'line' => 32,
      'function' => 'CachePermissions',
      'class' => 'Gdn_PermissionModel',
      'type' => '->',
      'args' => 
      array (
        0 => 0,
      ),
    ),
    7 => 
    array (
      'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/library/core/class.session.php',
      'line' => 253,
      'function' => 'DefinePermissions',
      'class' => 'Gdn_UserModel',
      'type' => '->',
      'args' => 
      array (
        0 => 0,
      ),
    ),
    8 => 
    array (
      'file' => '/home/rushthew/public_html/slavelaborsoftware.com/forum/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' => 'slavelaborsoftware.com',
             'CookieHashMethod' => 'md5',
             'CookieSalt' => 'P7TRGRBS1A',
          )),
           '_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/rushthew/public_html/slavelaborsoftware.com/forum/library/database/class.database.php on line 210