See file /web/htdocs/www.castellodibrusata.com/home/index.php


+ Error on line 29

Doo::app()->run();

<?php
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;    #for debugging/profiling purpose

Doo::app()->route $route;

# Uncomment for DB profiling
//Doo::logger()->beginDbProfile('doowebsite');
Doo::app()->run();

//Doo::logger()->endDbProfile('doowebsite');
//Doo::logger()->rotateFile(20);
//Doo::logger()->writeDbProfiles();
?>


* Stack Trace...


SqlMagicException Object
(
    [
message:protected] => Failed to open the DB connection
    
[string:Exception:private] => 
    [
code:protected] => 3
    
[file:protected] => /web/htdocs/www.castellodibrusata.com/home/dooframework/db/DooSqlMagic.php
    
[line:protected] => 160
    
[trace:Exception:private] => Array
        (
            [
0] => Array
                (
                    [
file] => /web/htdocs/www.castellodibrusata.com/home/dooframework/Doo.php
                    
[line] => 137
                    
[function] => connect
                    
[class] => DooSqlMagic
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
1] => Array
                (
                    [
file] => /web/htdocs/www.castellodibrusata.com/home/dooframework/db/DooModel.php
                    
[line] => 173
                    
[function] => db
                    
[class] => Doo
                    
[type] => ::
                    [
args] => Array
                        (
                        )

                )

            [
2] => Array
                (
                    [
file] => /web/htdocs/www.castellodibrusata.com/home/protected/controller/IndexController.php
                    
[line] => 15
                    
[function] => find
                    
[class] => DooModel
                    
[type] => ->
                    [
args] => Array
                        (
                            [
0] => Array
                                (
                                    [
asArray] => 1
                                    
[select] => namevalue
                                
)

                        )

                )

            [
3] => Array
                (
                    [
file] => /web/htdocs/www.castellodibrusata.com/home/dooframework/app/DooWebApp.php
                    
[line] => 114
                    
[function] => index
                    
[class] => IndexController
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
4] => Array
                (
                    [
file] => /web/htdocs/www.castellodibrusata.com/home/dooframework/app/DooWebApp.php
                    
[line] => 34
                    
[function] => routeTo
                    
[class] => DooWebApp
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
5] => Array
                (
                    [
file] => /web/htdocs/www.castellodibrusata.com/home/index.php
                    
[line] => 29
                    
[function] => run
                    
[class] => DooWebApp
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

        )

    [
previous:Exception:private] => 
)


* Variables...  Conf .  GET  .  POST  .  Session  .  Cookie 


object(DooConfig)#1 (26) {
  
["AUTOLOAD"] => NULL
  
["SITE_PATH"] => string(43"/web/htdocs/www.castellodibrusata.com/home/"
  
["PROTECTED_FOLDER"] => string(10"protected/"
  
["BASE_PATH"] => string(56"/web/htdocs/www.castellodibrusata.com/home/dooframework/"
  
["LOG_PATH"] => NULL
  
["APP_URL"] => string(32"http://www.castellodibrusata.com"
  
["SUBFOLDER"] => string(1"/"
  
["APP_MODE"] => string(10"production"
  
["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(9"BongoView"
  
["TEMPLATE_SHOW_COMMENT"] => NULL
  
["TEMPLATE_ALLOW_PHP"] => NULL
  
["TEMPLATE_COMPILE_ALWAYS"] => bool(true)
  [
"TEMPLATE_GLOBAL_TAGS"] => array(5) {
    [
0] =>   string(3"url"
    
[1] =>   string(4"url2"
    
[2] =>   string(4"time"
    
[3] =>   string(5"isset"
    
[4] =>   string(5"empty"
  
}
  [
"MODULES"] => NULL
  
["APP_NAMESPACE_ID"] => NULL
  
["SITE_URL"] => array(2) {
    [
"development"] =>   string(19"http://brusata.loc/"
    
["production"] =>   string(32"http://www.castellodibrusata.com"
  
}
  [
"HEADER"] => string(59"/web/htdocs/www.castellodibrusata.com/home/view/header.html"
  
["FOOTER"] => string(59"/web/htdocs/www.castellodibrusata.com/home/view/footer.html"
  
["SITE_NAME"] => string(19"Castello di Brusata"
}
$_COOKIE Variables array(0) {
}

BACK TO TOP