APPPATH/views/risultati_ricerca.php [ 129 ]
124 $prezzo = $prezzo->prezzo_da;
125 }else
126 {
127 $link = 'singolo_materasso';
128 $prezzo = ORM::factory('Materassi')->get_prezzo_minimo($item->id_elemento);
129 $prezzo = $prezzo->prezzo;
130 //$prezzo = DB::select('materassi_vs_locale.prezzo_da')->from('materassi_vs_locale')->where('materassi_vs_locale.id_locale', '=', $locale)->where('materassi_vs_locale.id_materasso', '=', $item->id_elemento)->as_object()->execute()->current();
131 }
132
133
134 $tabella = ucfirst($item->tipo);
-
APPPATH/views/risultati_ricerca.php [ 129 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(45) "Trying to get property 'prezzo' of non-object"
2
string(95) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/risultati_ricerca.php"
3
integer 129
4
array(16) ( "kohana_view_filename" => string(95) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/risultati_ricerca.php" "kohana_view_data" => array(6) ( "categoria" => string(0) "" "risultato" => object Database_MySQLi_Result(7)
{ protected _internal_row => integer 30 protected _query => string(194) "SELECT `search`.`nome_it`, `search`.`descrizione_it`, `search`.`materiali_it`, `search`.`id_elemento`, `search`.`tipo`, `search` …" protected _result => object mysqli_result(5)
"key" => NULL "tipo" => string(0) "" "header" => object View(2){ public current_field => NULL public field_count => NULL public lengths => NULL public num_rows => NULL public type => NULL }
protected _total_rows => integer 30 protected _current_row => integer 29 protected _as_object => bool TRUE protected _object_params => NULL }{ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/header.php" protected _data => array(0) }
"footer" => object View(2){ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/footer.php" protected _data => array(0) }
) "categoria" => string(0) "" "risultato" => object Database_MySQLi_Result(7){ protected _internal_row => integer 30 protected _query => string(194) "SELECT `search`.`nome_it`, `search`.`descrizione_it`, `search`.`materiali_it`, `search`.`id_elemento`, `search`.`tipo`, `search` …" protected _result => object mysqli_result(5)
"key" => NULL "tipo" => string(0) "" "header" => object View(2){ public current_field => NULL public field_count => NULL public lengths => NULL public num_rows => NULL public type => NULL }
protected _total_rows => integer 30 protected _current_row => integer 29 protected _as_object => bool TRUE protected _object_params => NULL }{ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/header.php" protected _data => array(0) }
"footer" => object View(2){ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/footer.php" protected _data => array(0) }
"locale" => string(2) "it" "item" => object stdClass(6){ public nome_it => string(5) "DARIO" public descrizione_it => string(572) "<p>Il cuore di questo materasso è composto da un massello in schiuma di Memory(altezza cm 2 d 48)su base polimerica refli …" public materiali_it => string(415) "<p>Olibond Poliestere è una fibra termica, anallergica, traspirante ed elastica. Olibond Poliestere 400gr/mq è un …" public id_elemento => string(2) "94" public tipo => string(9) "materassi" public id_categoria => string(1) "3" }
"link" => string(17) "singolo_materasso" "prezzo" => NULL "tabella" => string(4) "Reti" "categoria_selezionata" => NULL "cat" => string(0) "" "ris_foto" => string(57) "/admin/media/immagini/medium/570b5026c6844_rete_salus.jpg" )124 $prezzo = $prezzo->prezzo_da; 125 }else 126 { 127 $link = 'singolo_materasso'; 128 $prezzo = ORM::factory('Materassi')->get_prezzo_minimo($item->id_elemento); 129 $prezzo = $prezzo->prezzo; 130 //$prezzo = DB::select('materassi_vs_locale.prezzo_da')->from('materassi_vs_locale')->where('materassi_vs_locale.id_locale', '=', $locale)->where('materassi_vs_locale.id_materasso', '=', $item->id_elemento)->as_object()->execute()->current(); 131 } 132 133 134 $tabella = ucfirst($item->tipo);
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(95) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/risultati_ricerca.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0
string(95) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/risultati_ricerca.php"
1
array(6) ( "categoria" => string(0) "" "risultato" => object Database_MySQLi_Result(7)
{ protected _internal_row => integer 30 protected _query => string(194) "SELECT `search`.`nome_it`, `search`.`descrizione_it`, `search`.`materiali_it`, `search`.`id_elemento`, `search`.`tipo`, `search` …" protected _result => object mysqli_result(5)
"key" => NULL "tipo" => string(0) "" "header" => object View(2){ public current_field => NULL public field_count => NULL public lengths => NULL public num_rows => NULL public type => NULL }
protected _total_rows => integer 30 protected _current_row => integer 29 protected _as_object => bool TRUE protected _object_params => NULL }{ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/header.php" protected _data => array(0) }
"footer" => object View(2){ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/footer.php" protected _data => array(0) }
)343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 } // End View
-
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 /** 233 * Display the exception message.
-
SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()
155 public function body($content = NULL) 156 { 157 if ($content === NULL) 158 return $this->_body; 159 160 $this->_body = (string) $content; 161 return $this; 162 } 163 164 /** 165 * Gets or sets the HTTP protocol. The standard protocol to use
-
APPPATH/classes/Controller/Home.php [ 255 ] » Kohana_Response->body(arguments)
0
object View(2)
{ protected _file => string(95) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/risultati_ricerca.php" protected _data => array(6) ( "categoria" => string(0) "" "risultato" => object Database_MySQLi_Result(7)
{ protected _internal_row => integer 30 protected _query => string(194) "SELECT `search`.`nome_it`, `search`.`descrizione_it`, `search`.`materiali_it`, `search`.`id_elemento`, `search`.`tipo`, `search` …" protected _result => object mysqli_result(5)
"key" => NULL "tipo" => string(0) "" "header" => object View(2){ public current_field => NULL public field_count => NULL public lengths => NULL public num_rows => NULL public type => NULL }
protected _total_rows => integer 30 protected _current_row => integer 29 protected _as_object => bool TRUE protected _object_params => NULL }{ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/header.php" protected _data => array(0) }
"footer" => object View(2){ protected _file => string(92) "/var/www/vhosts/fariello-materassi.it/httpdocs/application/frontend/views/include/footer.php" protected _data => array(0) }
) }250 $view->key = $key ; 251 $view->tipo = $tipo; 252 253 $view->header = View::factory('include/header'); 254 $view->footer = View::factory('include/footer'); 255 $this->response->body($view); 256 } 257 258 259 public function action_singola_rete() 260 {
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Home->action_ricerca()
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_Home(3)
{ public request => object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(26) "(<lang>/)ricerca(<format>)" protected _regex => array(2) ( "format" => string(16) ".html|.xml|.json" "lang" => string(13) "(en|it|ro|xx)" ) protected _defaults => array(4) ( "controller" => string(4) "home" "action" => string(7) "ricerca" "lang" => string(2) "en" "format" => string(0) "" ) protected _route_regex => string(75) "#^(?:(?P<lang>(en|it|ro|xx))/)?ricerca(?:(?P<format>.html|.xml|.json))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Home" protected _action => string(7) "ricerca" protected _uri => string(15) "it/ricerca.html" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "it" "format" => string(5) ".html" ) protected _get => array(1) ( "/it/ricerca_html" => string(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 session => object Session_Native(5){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }{ protected _name => string(12) "pronto_front" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
}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.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(26) "(<lang>/)ricerca(<format>)" protected _regex => array(2) ( "format" => string(16) ".html|.xml|.json" "lang" => string(13) "(en|it|ro|xx)" ) protected _defaults => array(4) ( "controller" => string(4) "home" "action" => string(7) "ricerca" "lang" => string(2) "en" "format" => string(0) "" ) protected _route_regex => string(75) "#^(?:(?P<lang>(en|it|ro|xx))/)?ricerca(?:(?P<format>.html|.xml|.json))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Home" protected _action => string(7) "ricerca" protected _uri => string(15) "it/ricerca.html" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "it" "format" => string(5) ".html" ) protected _get => array(1) ( "/it/ricerca_html" => string(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 => NULL }109 $orig_response = $response = Response::factory(); 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 [ 990 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(26) "(<lang>/)ricerca(<format>)" protected _regex => array(2) ( "format" => string(16) ".html|.xml|.json" "lang" => string(13) "(en|it|ro|xx)" ) protected _defaults => array(4) ( "controller" => string(4) "home" "action" => string(7) "ricerca" "lang" => string(2) "en" "format" => string(0) "" ) protected _route_regex => string(75) "#^(?:(?P<lang>(en|it|ro|xx))/)?ricerca(?:(?P<format>.html|.xml|.json))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Home" protected _action => string(7) "ricerca" protected _uri => string(15) "it/ricerca.html" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "it" "format" => string(5) ".html" ) protected _get => array(1) ( "/it/ricerca_html" => string(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) }
}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 117 ] » Kohana_Request->execute()
112 { 113 try 114 { 115 116 echo Request::factory(TRUE, array(), FALSE) 117 ->execute() 118 ->send_headers(TRUE) 119 ->body(); 120 } 121 catch (Error $e) // php7 Throwable 122 {