MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ]
166 {
167 // This benchmark is worthless
168 Profiler::delete($benchmark);
169 }
170
171 throw new Database_Exception(':error [ :query ]', [
172 ':error' => $this->_connection->error,
173 ':query' => $sql
174 ], $this->_connection->errno);
175 }
176
-
MODPATH/database/classes/Kohana/Database/Query.php [ 250 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 3
1
string(66) "UPDATE `orders` SET `product_id` = '62362_' WHERE `id` = '1828807'"
2
bool FALSE
3
array(0)
245 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 246 } 247 } 248 249 // Execute the query 250 $result = $db->query($this->_type, $sql, $as_object, $object_params); 251 252 if (isset($cache_key) AND $this->_lifetime > 0) 253 { 254 // Cache the result array 255 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/orm/classes/Kohana/ORM.php [ 1563 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "0138dce631d9eccd2cfe11b88c9fb64e3881406e" protected _identifier => string(1) "`" public last_query => string(1291) "SELECT `order`.`id` AS `id`, `order`.`created` AS `created`, `order`.`changed` AS `changed`, `order`.`time_paid` AS `time_paid`, …" 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(4) ( "hostname" => string(13) "35.228.42.197" "database" => string(11) "bussimatkat" "persistent" => bool FALSE "ssl" => NULL ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool FALSE ) }1558 1559 // Update a single record 1560 DB::update($this->_table_name) 1561 ->set($data) 1562 ->where($this->_primary_key, '=', $id) 1563 ->execute($this->_db); 1564 1565 if (isset($data[$this->_primary_key])) 1566 { 1567 // Primary key was changed, reflect it 1568 $this->_primary_key_value = $data[$this->_primary_key];
-
MODPATH/orm/classes/Kohana/ORM.php [ 1590 ] » Kohana_ORM->update(arguments)
0
NULL
1585 * @param Validation $validation Validation object 1586 * @return ORM 1587 */ 1588 public function save(Validation $validation = NULL) 1589 { 1590 return $this->loaded() ? $this->update($validation) : $this->create($validation); 1591 } 1592 1593 /** 1594 * Deletes a single record while ignoring relationships. 1595 *
-
APPPATH/classes/Controller/Order.php [ 50 ] » Kohana_ORM->save()
45 $order = ORM::factory('Order', $this->order_id); 46 if ($order->product_id != $this->trip_id AND $order->product_id != null) { 47 $order->delete_passengers(); 48 } 49 $order->product_id = Session::instance()->get('trip_id'); 50 $order->save(); 51 52 $view = View::factory('order/passengers'); 53 $view->trip = $trip; 54 55 // Preview mode
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Order->action_passengers()
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Order(14)
{ public template => object View(2)
{ protected _file => string(62) "/var/www/bussimatkat.fi/application/views/template/generic.php" protected _data => array(12) ( "object_id" => NULL "controller" => string(5) "matka" "full_controller" => string(12) "matka/62362_" "site_id" => string(2) "14" "name" => string(9) "kasilinja" "site_name" => NULL "title" => string(15) "Kasilinja Oy - " "canonical" => string(44) "http://kasilinja.bussimatkat.fi/matka/62362_" "content" => string(0) "" "description" => string(0) "" "styles" => array(0) "scripts" => array(0) ) }
public site_id => string(2) "14" public language => NULL public auto_render => bool TRUE public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(44) "http://kasilinja.bussimatkat.fi/matka/62362_" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(45) "matka(/<id1>(/<id2>(/<id3>(/<id4>(/<id5>)))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "order" "action" => string(10) "passengers" ) protected _route_regex => string(146) "#^matka(?:/(?P<id1>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++)(?:/(?P<id4>[^/.,;?\n]++)(?:/(?P<id5>[^/.,;?\n …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Order" protected _action => string(10) "passengers" protected _uri => string(12) "matka/62362_" protected _external => bool FALSE protected _params => array(1) ( "id1" => string(6) "62362_" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
public id1 => string(6) "62362_" public id2 => NULL public id3 => NULL public id4 => NULL public id5 => NULL public order_id => integer 1828807 public bussimatkat => integer 0 public trip_id => string(6) "62362_" }{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(44) "http://kasilinja.bussimatkat.fi/matka/62362_" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(45) "matka(/<id1>(/<id2>(/<id3>(/<id4>(/<id5>)))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "order" "action" => string(10) "passengers" ) protected _route_regex => string(146) "#^matka(?:/(?P<id1>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++)(?:/(?P<id4>[^/.,;?\n]++)(?:/(?P<id5>[^/.,;?\n …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Order" protected _action => string(10) "passengers" protected _uri => string(12) "matka/62362_" protected _external => bool FALSE protected _params => array(1) ( "id1" => string(6) "62362_" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(44) "http://kasilinja.bussimatkat.fi/matka/62362_" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(45) "matka(/<id1>(/<id2>(/<id3>(/<id4>(/<id5>)))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "order" "action" => string(10) "passengers" ) protected _route_regex => string(146) "#^matka(?:/(?P<id1>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++)(?:/(?P<id4>[^/.,;?\n]++)(?:/(?P<id5>[^/.,;?\n …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Order" protected _action => string(10) "passengers" protected _uri => string(12) "matka/62362_" protected _external => bool FALSE protected _params => array(1) ( "id1" => string(6) "62362_" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
APPPATH/bootstrap.php [ 123 ] » Kohana_Request->execute()
118 set_exception_handler(array('Minion_Exception', 'handler')); 119 Minion_Task::factory(Minion_CLI::options())->execute(); 120 } else { 121 try { 122 echo Request::factory() 123 ->execute() 124 ->send_headers() 125 ->body(); 126 } catch (Exception $e) { 127 Log::instance()->add(Log::ALERT, $e); 128 }
-
DOCROOT/index.php [ 116 ] » require(arguments)
0
string(49) "/var/www/bussimatkat.fi/application/bootstrap.php"
111 if (is_file(APPPATH . '../.env')) { 112 $dotenv = Dotenv::createUnsafeImmutable(APPPATH . '../'); 113 $dotenv->load(); 114 } 115 // Bootstrap the application 116 require APPPATH.'bootstrap'.EXT; 117 118 /** 119 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 120 * If no source is specified, the URI will be automatically detected. 121 */