Uncaught Exception while running
This page will try to provide as much information as possible so you can track down (and hopefully fix) the problem.
The error
The message of the error is as follow:
mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES)
The error occurred in file /var/www/SITES/lumieres/html-20120327/includes/PHPDS_legacyConnector.class.php at line 137
131
// Apply database config settings to this instance of the connector
132
$this->applyConfig($db_config);
133
134
if ($this->dbPersistent == true) {
135
$this->link = mysql_pconnect($this->dbHost, $this->dbUsername, $this->dbPassword);
136
} else {
137
$this->link = mysql_connect($this->dbHost, $this->dbUsername, $this->dbPassword);
138
}
139
// Create database link.
140
$ok = mysql_select_db($this->dbName, $this->link);
141
// Display error on link.
142
if (empty($ok)) {
143
throw new PHPDS_databaseException(mysql_error());
144
}
The configuration
Configuration files actually used:
- [ 0 ] => /var/www/SITES/lumieres/html-20120327/config/PHPDS-defaults.config.php
- [ 1 ] => /var/www/SITES/lumieres/html-20120327/plugins//AdminPack/config/host.config.php
- [ 2 ] => /var/www/SITES/lumieres/html-20120327/plugins//lumieres/config/host.config.php
Configuration files which would have been used if they were present:
- [ 0 ] => /var/www/SITES/lumieres/html-20120327/config/multi-host.config.php
- [ 1 ] => /var/www/SITES/lumieres/html-20120327/config/single-site.config.php
- [ 2 ] => /var/www/SITES/lumieres/html-20120327/config/www.deg-multimedia.fr.config.php
Main database info
Database phpdev with prefix pds_ on host localhost with user root.
Other useful configuration settings
Sef URL is off ; default template is not set.
Guest role is not set ; guest group is not set.
Current plugin is PHPDevShell (path is )
The Backtrace:
All relative file pathes are relative to the server root (namely /var/www/SITES/lumieres/html/ )
Click on the Book icon to access online documentation.
| File path (relative) |
Line |
Call (with arguments) |
| /var/www/SITES/lumieres/html-20120327/includes/PHPDS_legacyConnector.class.php | 137 |
mysql_connect("localhost", "root", "root")
|
131
// Apply database config settings to this instance of the connector
132
$this->applyConfig($db_config);
133
134
if ($this->dbPersistent == true) {
135
$this->link = mysql_pconnect($this->dbHost, $this->dbUsername, $this->dbPassword);
136
} else {
137
$this->link = mysql_connect($this->dbHost, $this->dbUsername, $this->dbPassword);
138
}
139
// Create database link.
140
$ok = mysql_select_db($this->dbName, $this->link);
141
// Display error on link.
142
if (empty($ok)) {
143
throw new PHPDS_databaseException(mysql_error());
144
}
|
| /var/www/SITES/lumieres/html-20120327/includes/PHPDS_db.class.php | 166 |
PHPDS_legacyConnector::connect("")
|
160
* have different settings.
161
*
162
* @date 20120308
163
*/
164
public function connect($db_config = '')
165
{
166
$this->connector->connect($db_config);
167
}
168
169
/**
170
* Handle access to the alternate connector list
171
*
172
* Give a class name, the connector will be instantiated if needed
173
*
|
| /var/www/SITES/lumieres/html-20120327/includes/PHPDS.inc.php | 351 |
PHPDS_db::connect()
|
345
*
346
* @return PHPDS the current instance
347
*/
348
protected function configDb()
349
{
350
$db = $this->PHPDS_db();
351
$db->connect();
352
$db->connectCacheServer();
353
354
return $this; // to allow fluent interface
355
}
356
357
/**
358
* Copy settings from the database-loaded array. Converts and defaults to false if the value isn't set
|
| /var/www/SITES/lumieres/html-20120327/includes/PHPDS.inc.php | 487 |
PHPDS::configDb()
|
481
$this->PHPDS_errorHandler(); //////////////////////////////////////////
482
483
// Init main debug instance. //////////////////////////////////////////
484
$this->PHPDS_debug(); /////////////////////////////////////////////////
485
486
// Various init subroutines. //////////////////////////////////////////
487
$this->configSession()->configDb(); ///////////////////////////////////
488
489
// Loads important settings from db enabling system to run correctly. /
490
$this->db->getEssentialSettings(); ////////////////////////////////////
491
492
$this->classes->loadRegistry();
493
494
// Loads settings from configuration file. ////////////////////////////
|
| /var/www/SITES/lumieres/html-20120327/includes/PHPDS.inc.php | 138 |
PHPDS::config()
|
132
// Start Ob.
133
ob_start();
134
$this->embedded = $embedded;
135
$this->objectCache = new PHPDS_array;
136
$this->basepath = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..') . DIRECTORY_SEPARATOR;
137
try {
138
$this->config();
139
} catch (Exception $e) {
140
$this->PHPDS_errorHandler()->doHandleException($e);
141
}
142
return $this;
143
}
144
145
/**
|
| /var/www/SITES/lumieres/html-20120327/index.local.php | 57 |
PHPDS::__construct()
|
51
}
52
53
//register_tick_function('profiler');
54
//declare(ticks = 1);
55
56
57
$PHPDS = new PHPDS;
58
59
$PHPDS->run();
60
61
62
error_log((profiler(true))." - ".intval((microtime(true) - $t) * 1000)." ms");
63
?>
|
| /var/www/SITES/lumieres/html-20120327/index.php | 24 |
require("/var/www/SITES/lumieres/html-20120327/index.local.php")
|
18
$includes = array('/includes/', '/includes/legacy/', '/includes/local');
19
foreach ($includes as $path) {
20
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . realpath(BASEPATH . $path));
21
}
22
23
if (file_exists('./index.local.php')) {
24
require './index.local.php';
25
} else {
26
require 'includes/PHPDS.inc.php';
27
$PHPDS = new PHPDS;
28
$PHPDS->run();
29
}
30
} catch (Exception $e) {
31
if ($early_debug) {
|