See file /var/www/vhosts/elgo.si/httpdocs/index.php


+ Error on line 28

Doo::db()->sql_tracking true;    #for debugging/profiling purpose

<?php
include 'protected/config/common.conf.php';
include 
'protected/config/routes.conf.php';
include 
'protected/config/db.conf.php';
include 
'protected/config/acl.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';

#Access Control Level routes 
Doo::acl()->rules $acl;
Doo::acl()->defaultFailedRoute $config['APP_URL'].'admin/login';

# 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();

//TODO NewsController / formatiranje datuma / najbolje preko sprintf() / i model / language.php gde je upisan format datuma


?>


* Stack Trace...


SqlMagicException Object
(
    [
message:protected] => Failed to open the DB connection
    
[string:private] => 
    [
code:protected] => 3
    
[file:protected] => /var/www/vhosts/elgo.si/httpdocs/dooframework/db/DooSqlMagic.php
    
[line:protected] => 160
    
[trace:private] => Array
        (
            [
0] => Array
                (
                    [
file] => /var/www/vhosts/elgo.si/httpdocs/dooframework/Doo.php
                    
[line] => 137
                    
[function] => connect
                    
[class] => DooSqlMagic
                    
[type] => ->
                    [
args] => Array
                        (
                        )

                )

            [
1] => Array
                (
                    [
file] => /var/www/vhosts/elgo.si/httpdocs/index.php
                    
[line] => 28
                    
[function] => db
                    
[class] => Doo
                    
[type] => ::
                    [
args] => Array
                        (
                        )

                )

        )

)


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


object(DooConfig)#1 (41) {
  
["AUTOLOAD"] => NULL
  
["SITE_PATH"] => string(33"/var/www/vhosts/elgo.si/httpdocs/"
  
["PROTECTED_FOLDER"] => string(10"protected/"
  
["BASE_PATH"] => string(46"/var/www/vhosts/elgo.si/httpdocs/dooframework/"
  
["LOG_PATH"] => NULL
  
["APP_URL"] => string(19"http://www.elgo.si/"
  
["SUBFOLDER"] => string(1"/"
  
["APP_MODE"] => string(3"dev"
  
["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
  
["APP_URL_INDEXSUFFIX"] => string(0""
  
["APP_URL_INDEXPAGE"] => string(18"http://www.elgo.si"
  
["WEBSITE_NAME"] => string(4"elgo"
  
["sending_toemail"] => string(12"info@elgo.si"
  
["footer_copyright"] => string(52"<a href="http://www.elgo.si/">ELGO INTERNACIONAL</a>"
  
["website_lang"] => string(18"ELGO internacional"
  
["facebook_link"] => string(55"https://www.facebook.com/profile.php?id=100002897005461"
  
["twitter_link"] => string(31"http://twitter.com/#!/ELGOInter"
  
["twitter_user"] => string(9"ELGOInter"
  
["mail_logo"] => string(116"<a href="http://www.elgo.si/"><img src="http://www.elgo.si/global/img/logo-elgo.png" alt="ELGO internacional" /></a>"
  
["mail_from"] => string(15"noreply@elgo.si"
  
["mail_name"] => string(32"Newsletter :: ELGO INTERNACIONAL"
  
["sending_limit"] => string(2"50"
  
["time_limit"] => string(6"1 hour"
  
["MaxExecutionTime"] => string(2"55"
  
["mail_method"] => string(4"mail"
  
["mail_username"] => string(0""
  
["mail_password"] => string(0""
  
["mail_host"] => string(0""
}
$_COOKIE Variables array(0) {
}

BACK TO TOP