See file /home/admin/web/icon-engineering.ru/public_html/index.php


+ Error on line 37

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');

//function __autoload($classname){
//    Doo::autoload($classname);
//}

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;

//Doo::loadClass('Session');

//Session::startSession();

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


//Session::endSession();

//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] => /home/admin/web/icon-engineering.ru/public_html/dooframework/db/DooSqlMagic.php
    
[line:protected] => 160
    
[trace:Exception:private] => Array
        (
            [
0] => Array
                (
                    [
file] => /home/admin/web/icon-engineering.ru/public_html/dooframework/Doo.php
                    
[line] => 137
                    
[function] => connect
                    
[class] => DooSqlMagic
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
1] => Array
                (
                    [
file] => /home/admin/web/icon-engineering.ru/public_html/dooframework/controller/DooController.php
                    
[line] => 143
                    
[function] => db
                    
[class] => Doo
                    
[type] => ::
                    [
args] => Array
                        (
                        )

                )

            [
2] => Array
                (
                    [
file] => /home/admin/web/icon-engineering.ru/public_html/protected/controller/public/PageController.php
                    
[line] => 16
                    
[function] => db
                    
[class] => DooController
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
3] => Array
                (
                    [
file] => /home/admin/web/icon-engineering.ru/public_html/dooframework/app/DooWebApp.php
                    
[line] => 114
                    
[function] => homepage
                    
[class] => PageController
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
4] => Array
                (
                    [
file] => /home/admin/web/icon-engineering.ru/public_html/dooframework/app/DooWebApp.php
                    
[line] => 34
                    
[function] => routeTo
                    
[class] => DooWebApp
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
5] => Array
                (
                    [
file] => /home/admin/web/icon-engineering.ru/public_html/index.php
                    
[line] => 37
                    
[function] => run
                    
[class] => DooWebApp
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

        )

    [
previous:Exception:private] => 
)


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


object(DooConfig)#1 (35) {
  
["AUTOLOAD"] => NULL
  
["SITE_PATH"] => string(48"/home/admin/web/icon-engineering.ru/public_html/"
  
["PROTECTED_FOLDER"] => string(10"protected/"
  
["BASE_PATH"] => string(61"/home/admin/web/icon-engineering.ru/public_html/dooframework/"
  
["LOG_PATH"] => NULL
  
["APP_URL"] => string(27"http://icon-engineering.ru/"
  
["SUBFOLDER"] => string(1"/"
  
["APP_MODE"] => string(4"prod"
  
["AUTOROUTE"] => bool(false)
  [
"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
  
["VERSION"] => string(5"3.1.0"
  
["PROJECT_TITLE"] => string(10"Icon Group"
  
["ADMIN_EMAIL"] => string(19"info@jazzpixels.com"
  
["ADMIN_NAME"] => string(14"Команда"
  
["LANGUAGE"] => string(2"ru"
  
["HOST_LANGUAGE"] => array(2) {
    [
"localhost"] =>   string(2"ru"
    
["domain"] =>   string(8"language"
  
}
  [
"COOKIE_EXPIRE"] => int(1470821671)
  [
"IMAGE_TYPE"] => string(3"png"
  
["IMAGE_QUALITY"] => int(80)
  [
"IMAGE_SIZE"] => array(3) {
    [
"small"] =>   int(100)
    [
"medium"] =>   int(200)
    [
"large"] =>   int(500)
  }
  [
"NOT_AUTH"] => string(15"/not-authorized"
  
["PROFILE_HOMEPAGE"] => string(8"/profile"
  
["sessionCacheType"] => string(3"apc"
}
$_SESSION Variables array(1) {
  [
"language"] => string(2"ru"
}
$_COOKIE Variables array(0) {
}

BACK TO TOP