Source
48 * Connect to a MySQL database.
49 * @param array $parameters An map of parameters, which should include:
50 * - server: The server, eg, localhost
51 * - username: The username to log on with
52 * - password: The password to log on with
53 * - database: The database to connect to
54 * - timezone: (optional) The timezone offset. For example: +12:00, "Pacific/Auckland", or "SYSTEM"
55 */
56 public function __construct($parameters) {
57 $this->dbConn = mysql_connect($parameters['server'], $parameters['username'], $parameters['password'], true);
58
59 if(self::$connection_charset) {
60 $this->query("SET CHARACTER SET '" . self::$connection_charset . "'");
61 $this->query("SET NAMES '" . self::$connection_charset . "'");
62 }
63
Trace
GET /[Notice] Array to string conversion
GET /
Line 134 in /data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/dev/Backtrace.php
Source
125 $funcName = '';
126 if(isset($item['class'])) $funcName .= $item['class'];
127 if(isset($item['type'])) $funcName .= $item['type'];
128 if(isset($item['function'])) $funcName .= $item['function'];
129
130 if($showArgs && isset($item['args'])) {
131 $args = array();
132 foreach($item['args'] as $arg) {
133 if(!is_object($arg) || method_exists($arg, '__toString')) {
134 $args[] = (string) $arg;
135 } else {
136 $args[] = get_class($arg);
137 }
138 }
139
140 $funcName .= "(" . implode(",", $args) .")";
Trace
Notice: Array to string conversion in
/data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/dev/Backtrace.php on line
134
Notice: Array to string conversion in
/data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/dev/Backtrace.php on line
134
Notice: Array to string conversion in
/data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/dev/Backtrace.php on line
134
Notice: Array to string conversion in
/data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/dev/Backtrace.php on line
134
Notice: Array to string conversion in
/data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/dev/Backtrace.php on line
134
- SS_Backtrace::full_func_name(Array,1)
Line 166 of Backtrace.php
- SS_Backtrace::get_rendered_backtrace(Array)
Line 156 of DebugView.php
- DebugView->writeTrace(Array)
Line 407 of Debug.php
- Debug::showError(256,Uncaught Error: Call to undefined function mysql_connect(),/data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/core/model/MySQLDatabase.php,57,Array,Error)
Line 298 of Debug.php
- Debug::fatalHandler(256,Uncaught Error: Call to undefined function mysql_connect(),/data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/core/model/MySQLDatabase.php,57,Array)
Line 660 of Debug.php
- exceptionHandler(Error: Call to undefined function mysql_connect() in /data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/core/model/MySQLDatabase.php:57
Stack trace:
#0 /data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/core/model/DB.php(97): MySQLDatabase->__construct(Array)
#1 /data05/virt7901/domeenid/www.absoluttrader.com/htdocs/sapphire/main.php(121): DB::connect(Array)
#2 {main})