APPPATH/classes/Controller/Object.php [ 19 ]
14 ->where('emap_objects.slug', '=', $slug)
15 ->limit(1)->execute();
16
17
18
19 $nearestObjects = DB::select('emap_objects.*', [DB::expr('geodist('.$object[0]['lat'].', '.$object[0]['lon'].', lat, lon)'), 'dist'], ['emap_categories.title', 'category'], ['emap_categories.slug', 'category_slug'])
20 ->from('emap_objects')
21 ->join('emap_categories')->on('emap_objects.category_id', '=', 'emap_categories.id')
22 ->where(DB::expr('length(image)'), '>', 0)
23 ->and_where('emap_objects.id', '!=', $object[0]['id'])
24 // ->and_where('emap_objects.category_id', '!=', 7)
-
APPPATH/classes/Controller/Object.php [ 19 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(51) "Trying to access array offset on value of type null"
2
string(88) "/home/y/yamashc9/tourismportal.net/public_html/application/classes/Controller/Object.php"
3
integer 19
4
array(2) ( "slug" => string(53) "ardatovskij-kompleksnyj-gosudarstvennyj-zakaznik-1414" "object" => object Database_MySQLi_Result(7)
{ protected _internal_row => integer 0 protected _query => string(305) "SELECT `emap_objects`.*, `emap_categories`.`title` AS `category`, `emap_categories`.`slug` AS `category_slug` FROM `emap_objects …" protected _result => object mysqli_result(5)
){ public current_field => NULL public field_count => NULL public lengths => NULL public num_rows => NULL public type => NULL }
protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => bool FALSE protected _object_params => NULL }14 ->where('emap_objects.slug', '=', $slug) 15 ->limit(1)->execute(); 16 17 18 19 $nearestObjects = DB::select('emap_objects.*', [DB::expr('geodist('.$object[0]['lat'].', '.$object[0]['lon'].', lat, lon)'), 'dist'], ['emap_categories.title', 'category'], ['emap_categories.slug', 'category_slug']) 20 ->from('emap_objects') 21 ->join('emap_categories')->on('emap_objects.category_id', '=', 'emap_categories.id') 22 ->where(DB::expr('length(image)'), '>', 0) 23 ->and_where('emap_objects.id', '!=', $object[0]['id']) 24 // ->and_where('emap_objects.category_id', '!=', 7)
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Object->action_index()
79 array(':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 [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Object(4)
{ public template => object View(2)
{ protected _file => string(77) "/home/y/yamashc9/tourismportal.net/public_html/application/views/template.php" protected _data => array(3) ( "content" => string(0) "" "styles" => array(13) ( 0 => string(58) "https://fonts.googleapis.com/css?family=Roboto:300,400,700" 1 => string(87) "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css?i=574444688" 2 => string(35) "/assets/bootstrap/css/bootstrap.css" 3 => string(36) "/assets/css/bootstrap-select.min.css" 4 => string(33) "/assets/css/jquery.slider.min.css" 5 => string(28) "/assets/css/owl.carousel.css" 6 => string(77) "https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.css" 7 => string(30) "/assets/js/leaflet/leaflet.css" 8 => string(61) "/assets/js/Leaflet.markercluster-1.4.1/dist/MarkerCluster.css" 9 => string(69) "/assets/js/Leaflet.markercluster-1.4.1/dist/MarkerCluster.Default.css" 10 => string(39) "/assets/css/leaflet.awesome-markers.css" 11 => string(21) "/assets/css/style.css" 12 => string(26) "/assets/css/colors/red.css" ) "scripts" => array(27) ( 0 => string(30) "/assets/js/jquery-2.1.0.min.js" 1 => string(96) "https://maps.googleapis.com/maps/api/js?key=AIzaSyDOpYF83utKBXj9rzH23Q_ubUxrgn59kAY&sensor=false" 2 => string(38) "/assets/js/jquery-migrate-1.2.1.min.js" 3 => string(37) "/assets/bootstrap/js/bootstrap.min.js" 4 => string(36) "/assets/js/markerwithlabel_packed.js" 5 => string(21) "/assets/js/infobox.js" 6 => string(30) "/assets/js/owl.carousel.min.js" 7 => string(34) "/assets/js/bootstrap-select.min.js" 8 => string(24) "/assets/js/icheck.min.js" 9 => string(35) "/assets/js/imagesloaded.pkgd.min.js" 10 => string(30) "/assets/js/masonry.pkgd.min.js" 11 => string(30) "/assets/js/scrollReveal.min.js" 12 => string(41) "/assets/js/jquery.vanillabox-0.1.5.min.js" 13 => string(30) "/assets/js/retina-1.1.0.min.js" 14 => string(33) "/assets/js/jshashtable-2.1_src.js" 15 => string(18) "/assets/js/tmpl.js" 16 => string(36) "/assets/js/jquery.dependClass-0.1.js" 17 => string(27) "/assets/js/draggable-0.1.js" 18 => string(27) "/assets/js/jquery.slider.js" 19 => string(36) "/assets/js/markerclusterer_packed.js" 20 => string(76) "https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.js" 21 => string(29) "/assets/js/leaflet/leaflet.js" 22 => string(68) "/assets/js/Leaflet.markercluster-1.4.1/dist/leaflet.markercluster.js" 23 => string(28) "/assets/js/leaflet-google.js" 24 => string(37) "/assets/js/leaflet.awesome-markers.js" 25 => string(24) "/assets/js/custom-map.js" 26 => string(20) "/assets/js/custom.js" ) ) }
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 => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(24) "(<lang>/)object(/<slug>)" protected _regex => array(1) ( "lang" => string(7) "(en|es)" ) protected _defaults => array(2) ( "controller" => string(6) "object" "action" => string(5) "index" ) protected _route_regex => string(63) "#^(?:(?P<lang>(en|es))/)?object(?:/(?P<slug>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Object" protected _action => string(5) "index" protected _uri => string(60) "object/ardatovskij-kompleksnyj-gosudarstvennyj-zakaznik-1414" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(0) "" "slug" => string(53) "ardatovskij-kompleksnyj-gosudarstvennyj-zakaznik-1414" ) 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)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 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 => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(24) "(<lang>/)object(/<slug>)" protected _regex => array(1) ( "lang" => string(7) "(en|es)" ) protected _defaults => array(2) ( "controller" => string(6) "object" "action" => string(5) "index" ) protected _route_regex => string(63) "#^(?:(?P<lang>(en|es))/)?object(?:/(?P<slug>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Object" protected _action => string(5) "index" protected _uri => string(60) "object/ardatovskij-kompleksnyj-gosudarstvennyj-zakaznik-1414" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(0) "" "slug" => string(53) "ardatovskij-kompleksnyj-gosudarstvennyj-zakaznik-1414" ) 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(array('_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 [ 993 ] » 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 => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(24) "(<lang>/)object(/<slug>)" protected _regex => array(1) ( "lang" => string(7) "(en|es)" ) protected _defaults => array(2) ( "controller" => string(6) "object" "action" => string(5) "index" ) protected _route_regex => string(63) "#^(?:(?P<lang>(en|es))/)?object(?:/(?P<slug>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Object" protected _action => string(5) "index" protected _uri => string(60) "object/ardatovskij-kompleksnyj-gosudarstvennyj-zakaznik-1414" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(0) "" "slug" => string(53) "ardatovskij-kompleksnyj-gosudarstvennyj-zakaznik-1414" ) 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) }
}988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 90 ] » Kohana_Request->execute()
85 /** 86 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 87 * If no source is specified, the URI will be automatically detected. 88 */ 89 echo Request::factory(TRUE, array(), FALSE) 90 ->execute() 91 ->send_headers(TRUE) 92 ->body(); 93 }