+ Error on line 23
Doo::db()->sql_tracking = true;
<?php
session_start();
include './protected/config/common.conf.php';
include './protected/config/routes.conf.php';
include './protected/config/db.conf.php';
#Just include this for production mode
//include $config['BASE_PATH'].'deployment/deploy.php';
include $config['BASE_PATH'].'Doo.php';
include $config['BASE_PATH'].'app/DooConfig.php';
# Uncomment for auto loading the framework classes.
//spl_autoload_register('Doo::autoload');
Doo::conf()->set($config);
# remove this if you wish to see the normal PHP error view.
include $config['BASE_PATH'].'diagnostic/debug.php';
# database usage
//Doo::useDbReplicate(); #for db replication master-slave usage
Doo::db()->setMap($dbmap);
Doo::db()->setDb($dbconfig, $config['APP_MODE']);
Doo::db()->sql_tracking = true;
Doo::app()->route = $route;
Doo::app()->run();
?>
* Stack Trace...
SqlMagicException Object
(
[message:protected] => Failed to open the DB connection
[string:Exception:private] =>
[code:protected] => 3
[file:protected] => /home/norberto/public_html/dooframework/db/DooSqlMagic.php
[line:protected] => 160
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/norberto/public_html/dooframework/Doo.php
[line] => 137
[function] => connect
[class] => DooSqlMagic
[type] => ->
[args] => Array
(
)
)
[1] => Array
(
[file] => /home/norberto/public_html/index.php
[line] => 23
[function] => db
[class] => Doo
[type] => ::
[args] => Array
(
)
)
)
[previous:Exception:private] =>
)
object(DooConfig)#1 (33) {
["AUTOLOAD"] => NULL
["SITE_PATH"] => string(27) "/home/norberto/public_html/"
["PROTECTED_FOLDER"] => string(10) "protected/"
["BASE_PATH"] => string(40) "/home/norberto/public_html/dooframework/"
["LOG_PATH"] => NULL
["APP_URL"] => string(28) "https://tecnielectronis.net/"
["SUBFOLDER"] => string(1) "/"
["APP_MODE"] => string(4) "prod"
["AUTOROUTE"] => bool(true)
["DEBUG_ENABLED"] => bool(true)
["ERROR_404_DOCUMENT"] => NULL
["ERROR_404_ROUTE"] => string(6) "/error"
["CACHE_PATH"] => NULL
["AUTO_VIEW_RENDER_PATH"] => NULL
["MEMCACHE"] => NULL
["TEMPLATE_ENGINE"] => string(7) "DooView"
["TEMPLATE_SHOW_COMMENT"] => NULL
["TEMPLATE_ALLOW_PHP"] => NULL
["TEMPLATE_COMPILE_ALWAYS"] => NULL
["TEMPLATE_GLOBAL_TAGS"] => NULL
["MODULES"] => NULL
["APP_NAMESPACE_ID"] => NULL
["RELATIVE_IMG_DIR"] => string(13) "/uploads/img/"
["IMG_DIR"] => string(39) "/home/norberto/public_html/uploads/img/"
["IMG_DIRPR"] => string(40) "/home/norberto/public_html//img_product/"
["FILE_DIR"] => string(34) "/home/norberto/public_html//files/"
["PRODU_DIR"] => string(38) "/home/norberto/public_html//productos/"
["IMG_CATEGORIA"] => string(43) "/home/norberto/public_html//img_categorias/"
["DIR_INTERFACE"] => string(13) "179.50.53.114"
["TEMPLATE"] => string(8) "deepBlue"
["TEMPLATE2"] => string(6) "custom"
["TITLE"] => string(27) "TecniElectronis & CIA S.A.S"
["HEADER"] => string(6) "header"
}
$_SESSION Variables
array(0) {
}
$_COOKIE Variables
array(1) {
["PHPSESSID"] => string(32) "19431d755e8c1abd26c452b6f3bcbe82"
}