Warning: ini_set() has been disabled for security reasons in /home/hostelcu/public_html/framework/core/startup/ErrorControlChain.php on line 115

Warning: ini_set() has been disabled for security reasons in /home/hostelcu/public_html/framework/core/startup/ErrorControlChain.php on line 41

Warning: ini_set() has been disabled for security reasons in /home/hostelcu/public_html/framework/dev/Debug.php on line 251
GET /

[Warning] mysqli::mysqli(): (HY000/1045): Access denied for user 'Cuba'@'localhost' (using password: YES)

GET /

Line 68 in /home/hostelcu/public_html/framework/model/MySQLDatabase.php

Source

59 	 *  - password: The password to log on with
60 	 *  - database: The database to connect to
61 	 *  - timezone: (optional) The timezone offset. For example: +12:00, "Pacific/Auckland", or "SYSTEM"
62 	 */
63 	public function __construct($parameters) {
64 		if(!empty($parameters['port'])) {
65 			$this->dbConn = new MySQLi($parameters['server'], $parameters['username'], $parameters['password'],
66 				'', $parameters['port']);
67 		} else {
68 			$this->dbConn = new MySQLi($parameters['server'], $parameters['username'], $parameters['password']);
69 		}
70 
71 		if($this->dbConn->connect_error) {
72 			$this->databaseError("Couldn't connect to MySQL database | " . $this->dbConn->connect_error);
73 		}
74 		

Trace


Warning: ini_set() has been disabled for security reasons in /home/hostelcu/public_html/framework/dev/Debug.php on line 284
GET /

[User Error] Couldn't connect to MySQL database | Access denied for user 'Cuba'@'localhost' (using password: YES)

GET /

Line 598 in /home/hostelcu/public_html/framework/model/MySQLDatabase.php

Source

589 	}
590 
591 	public function databaseError($msg, $errorLevel = E_USER_ERROR) {
592 		// try to extract and format query
593 		if(preg_match('/Couldn\'t run query: ([^\|]*)\|\s*(.*)/', $msg, $matches)) {
594 			$formatter = new SQLFormatter();
595 			$msg = "Couldn't run query: \n" . $formatter->formatPlain($matches[1]) . "\n\n" . $matches[2];
596 		}
597 
598 		user_error($msg, $errorLevel);
599 	}
600 
601 	/**
602 	 * Return a boolean type-formatted string
603 	 *
604 	 * @param array $values Contains a tokenised list of info about this data type

Trace


Fatal error: Couldn't connect to MySQL database | Access denied for user 'Cuba'@'localhost' (using password: YES) in /home/hostelcu/public_html/framework/model/MySQLDatabase.php on line 598