MODPATH/database/classes/kohana/database/exception.php [ 27 ]
22 * @param string error message
23 * @param array translation variables
24 * @param integer the exception code
25 * @return void
26 */
27 public function __construct($db_code, $message, array $variables = NULL, $code = 0)
28 {
29 $this->db_code = $db_code;
30
31 parent::__construct($message, $variables, $code);
32 }
-
MODPATH/database/classes/kohana/database/exception.php [ 27 ] » Kohana_Core::error_handler(arguments)
0
integer 4096
1
string(228) "Argument 3 passed to Kohana_Database_Exception::__construct() must be of the type array, integer given, called in /var/www/studi …"
2
string(93) "/var/www/studio/data/www/lasposamia.ru/modules/database/classes/kohana/database/exception.php"
3
integer 27
4
array(2) ( "db_code" => string(25) "[:code] :error ( :query )" "message" => array(3) ( ":code" => integer 1146 ":error" => string(48) "Table 'lasposamia.ko_core_content' doesn't exist" ":query" => string(58) "SELECT `id` FROM `ko_core_content` WHERE `path` = 'models'" ) )
22 * @param string error message 23 * @param array translation variables 24 * @param integer the exception code 25 * @return void 26 */ 27 public function __construct($db_code, $message, array $variables = NULL, $code = 0) 28 { 29 $this->db_code = $db_code; 30 31 parent::__construct($message, $variables, $code); 32 }
-
MODPATH/database/classes/kohana/database/mysqli.php [ 190 ] » Kohana_Database_Exception->__construct(arguments)
0
string(25) "[:code] :error ( :query )"
1
array(3) ( ":code" => integer 1146 ":error" => string(48) "Table 'lasposamia.ko_core_content' doesn't exist" ":query" => string(58) "SELECT `id` FROM `ko_core_content` WHERE `path` = 'models'" )
2
integer 1146
185 186 throw new Database_Exception('[:code] :error ( :query )', array( 187 ':code' => $this->_connection->errno, 188 ':error' => $this->_connection->error, 189 ':query' => $sql, 190 ), $this->_connection->errno); 191 } 192 193 if (isset($benchmark)) 194 { 195 Profiler::stop($benchmark);
-
MODPATH/database/classes/kohana/database/query.php [ 225 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(58) "SELECT `id` FROM `ko_core_content` WHERE `path` = 'models'"
2
bool FALSE
3
array(0)
220 return new Database_Result_Cached($result, $sql, $this->_as_object, $this->_object_params); 221 } 222 } 223 224 // Execute the query 225 $result = $db->query($this->_type, $sql, $this->_as_object, $this->_object_params); 226 227 if (isset($cache_key)) 228 { 229 // Cache the result array 230 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/cms/classes/controller/chpu.php [ 76 ] » Kohana_Database_Query->execute()
71 $_REQUEST['k:id'] = $m[1]; 72 //print_r ($_REQUEST); 73 } 74 75 // print $params; 76 $id = DB::select('id')->from('core_content')->where('path', '=', $params)->execute()->current(); 77 $id = $id['id']; 78 } 79 else $id = 1; 80 if (!$id) { 81 $this->request->headers['HTTP/1.1'] = '404';
-
{PHP internal call} » Controller_Chpu->action_index(arguments)
0
string(6) "models"
-
SYSPATH/classes/kohana/request.php [ 1217 ] » ReflectionMethod->invokeArgs(arguments)
0
object Controller_Chpu(7)
{ public auto_render => bool FALSE protected model => object Model_Pages(5)
{ public yarus => array(4) ( "default" => string(9) "454-67-20" "direct" => string(9) "640-59-35" "search" => string(9) "640-51-99" "adwords" => string(9) "640-52-99" ) public yarus_sites => array(2) ( 0 => array(3) ( "sites" => array(1) ( 0 => string(5) "bn.ru" ) "context" => integer 6 "phone" => string(9) "454-67-13" ) 1 => array(3) ( "sites" => array(1) ( 0 => string(9) "chance.ru" ) "context" => integer 7 "phone" => string(9) "454-67-14" ) ) public perspective => array(4) ( "default" => string(9) "454-67-30" "direct" => string(9) "640-59-36" "search" => string(9) "640-59-37" "adwords" => string(9) "640-59-39" ) public perspective_sites => array(3) ( 0 => array(3) ( "sites" => array(2) ( 0 => string(7) "dmir.ru" 1 => string(14) "realty.dmir.ru" ) "context" => integer 6 "phone" => string(9) "454-67-18" ) 1 => array(3) ( "sites" => array(1) ( 0 => string(5) "bn.ru" ) "context" => integer 6 "phone" => string(9) "454-55-21" ) 2 => array(3) ( "sites" => array(1) ( 0 => string(10) "restate.ru" ) "context" => integer 6 "phone" => string(9) "454-55-01" ) ) protected _db => object Database_MySQLi(6)
protected modeAjax => bool FALSE public twig => object Twig_Environment(24){ protected _connection_id => string(40) "ad1eb39040f26a344f90dd67588d27b0f2840bbb" protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => object mysqli(19)
}{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(6) ( "type" => string(6) "mysqli" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(10) "lasposamia" "persistent" => bool FALSE ) "table_prefix" => string(3) "ko_" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }{ protected charset => string(5) "utf-8" protected loader => object Twig_Loader_Request(2)
public context => object stdClass(1){ protected paths => array(2) ( 0 => string(61) "/var/www/studio/data/www/lasposamia.ru/application/views/twig" 1 => string(61) "/var/www/studio/data/www/lasposamia.ru/modules/cms/views/twig" ) protected cache => array(0) }
protected debug => bool TRUE protected autoReload => bool TRUE protected cache => bool FALSE protected lexer => NULL protected parser => NULL protected compiler => NULL protected baseTemplateClass => string(13) "Twig_Template" protected extensions => array(6) ( "core" => object Twig_Extension_Core(0){ }
"optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"trans" => object Kohana_Twig_Extension_Trans(0){ }
"html" => object Kohana_Twig_Extension_Helper_Html(0){ }
"form" => object Kohana_Twig_Extension_Helper_Form(0){ }
"prepare" => object Kohana_Twig_Extension_Helper_Prepare(0){ }
) protected parsers => NULL protected visitors => NULL protected filters => NULL protected tests => NULL protected functions => NULL protected globals => array(1) ( "company" => integer 1 ) protected runtimeInitialized => bool FALSE protected loadedTemplates => NULL protected strictVariables => bool FALSE protected unaryOperators => NULL protected binaryOperators => NULL protected templateClassPrefix => string(15) "__TwigTemplate_" protected functionCallbacks => array(0) protected filterCallbacks => array(0) }{ public model => object Model_Pages(5)
public request => object Request(9){ public yarus => array(4) ( "default" => string(9) "454-67-20" "direct" => string(9) "640-59-35" "search" => string(9) "640-51-99" "adwords" => string(9) "640-52-99" ) public yarus_sites => array(2) ( 0 => array(3) ( "sites" => array(1) ( ... ) "context" => integer 6 "phone" => string(9) "454-67-13" ) 1 => array(3) ( "sites" => array(1) ( ... ) "context" => integer 7 "phone" => string(9) "454-67-14" ) ) public perspective => array(4) ( "default" => string(9) "454-67-30" "direct" => string(9) "640-59-36" "search" => string(9) "640-59-37" "adwords" => string(9) "640-59-39" ) public perspective_sites => array(3) ( 0 => array(3) ( "sites" => array(2) ( ... ) "context" => integer 6 "phone" => string(9) "454-67-18" ) 1 => array(3) ( "sites" => array(1) ( ... ) "context" => integer 6 "phone" => string(9) "454-55-21" ) 2 => array(3) ( "sites" => array(1) ( ... ) "context" => integer 6 "phone" => string(9) "454-55-01" ) ) protected _db => object Database_MySQLi(6)
}{ protected _connection_id => string(40) "ad1eb39040f26a344f90dd67588d27b0f2840bbb" protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => object mysqli(19)
}{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(6) ( "type" => string(6) "mysqli" "connection" => array(3) ( ... ) "table_prefix" => string(3) "ko_" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }{ public route => object Route(4)
public template => string(15) "chpu/index.html" }{ protected _uri => string(11) "(<pageurl>)" protected _regex => array(1) ( "pageurl" => string(26) "[a-zA-Zа-яА-Я0-9%-/_]+" ) protected _defaults => array(2) ( "controller" => string(4) "chpu" "action" => string(5) "index" ) protected _route_regex => string(50) "#^(?:(?P<pageurl>[a-zA-Zа-яА-Я0-9%-/_]+))?$#uD" }
public status => integer 500 public response => string(0) "" public headers => array(1) ( "Content-Type" => string(24) "text/html; charset=utf-8" ) public directory => string(0) "" public controller => string(4) "chpu" public action => string(5) "index" public uri => string(6) "models" protected _params => array(1) ( "pageurl" => string(6) "models" ) }1
array(1) ( "pageurl" => string(6) "models" )
1212 1213 // Determine the action to use 1214 $action = empty($this->action) ? Route::$default_action : $this->action; 1215 1216 // Execute the main action with the parameters 1217 $class->getMethod('action_'.$action)->invokeArgs($controller, $this->_params); 1218 1219 // Execute the "after action" method 1220 $class->getMethod('after')->invoke($controller); 1221 } 1222 catch (Exception $e)
-
APPPATH/bootstrap.php [ 144 ] » Kohana_Request->execute()
139 /** 140 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 141 * If no source is specified, the URI will be automatically detected. 142 */ 143 echo Request::instance() 144 ->execute() 145 ->send_headers() 146 ->response;
-
DOCROOT/index.php [ 109 ] » require(arguments)
0
string(21) "APPPATH/bootstrap.php"
104 // Load empty core extension 105 require SYSPATH.'classes/kohana'.EXT; 106 } 107 108 // Bootstrap the application 109 require APPPATH.'bootstrap'.EXT;