Connection restarted [closed]

2

Below is the code for my main class

<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'My Web Application',

    // preloading 'log' component
    'preload'=>array('log'),

    'aliases' => array(
            'bootstrap' => realpath(__DIR__ . '/../extensions/bootstrap'), 
            'audit' =>  realpath(__DIR__ . '/../modules/audit'),
                  ),

    // autoloading model and component classes
    'import'=>array(
    'application.controller.*',
    'application.components.*',
        'application.modules.audit.models.*',
        'application.modules.audit.components.*',
        //'bootstrap.helpers.TbHtml',
        'application.modules.audit.*',
    'application.extensions.bootstrap.*',  
    ),

    'modules'=>array(
        // uncomment the following to enable the Gii tool
     'audi',
         'audit' => array(
         'class' => 'application.modules.audit.AuditModule',
         'userViewUrl' => array('/audit/view', 'id' => '--user_id--'),
         'enableAuditField' => false,
         'connectionID' => 'db',
         'autoCreateTables' => true,
         'layout' => 'application.modules.audit.views.layouts.column1',
         'gridViewWidget' => 'application.extensions.bootstrap.widgets.TbGridView',
         'detailViewWidget' => 'zii.widgets.CDetailView',
         'controllerFilters' => array(
         'auditAccess' => array('application.modules.audit.components.AuditAccessFilter'),
                ),

         'adminUsers' => array('admin'),
         'yiiStrapPath' => 'application.vendor.yii-audit-module',
            ),

        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'12345',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters'=>array('127.0.0.1','::1'),
            'generatorPaths' => array('bootstrap.gii'),
        ),

    ),

    // application components
    'components'=>array(

         'errorHandler' => array(
            //'class' => 'application.modules.audit.components.AuditErrorHandler',
            'errorAction' => 'site/error',
            'trackAllRequests' => true,
           // 'catchFatalErrors' => true,
            'auditRequestIgnoreKeys' => array('PHP_AUTH_PW', 'password'),
                            ),

        'bootstrap' => array(
                    'class' => 'bootstrap.components.TbApi',   
                        ),

        'user'=>array('allowAutoLogin'=>true,),

        'urlManager'=>array(
            'urlFormat'=>'path',
            //'audit'=>'audit/default',
            'rules'=>array(
                '<controller:\w+>/<id:\d+>'=>'<controller>/view',
                '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
                '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
            ),
        ),
        /*
        'db'=>array(
            'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
        ),
        */

        // uncomment the following to use a MySQL database

        'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
            'enableProfiling' => true,
            'enableParamLogging' => true,
        ),

        'errorHandler'=>array(
            // use 'site/error' action to display errors
            'errorAction'=>'site/error',
        ),
        'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                array(
                     'class' => 'application.modules.audit.components.AuditLogRoute',
                     'levels' => 'error, warning, profile, audit',
                      ),
                // uncomment the following to show log messages on web pages
                /*
                array(
                    'class'=>'CWebLogRoute',
                ),
                */
                        ),
                ),
    ),

    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params'=>array(
        // this is used in contact page
        'adminEmail'=>'[email protected]',
    ),
);

Below the specified error

I'm starting from Yii and configuring an extension, but the following error is occurring:

Does anyone have any idea how to solve this?

    
asked by anonymous 12.06.2014 / 16:21

0 answers