APPPATH/classes/controller/magazin.php [ 52 ]
47 $stuff = curl_exec($ch);
48 curl_close($ch);
49 $suma=0;
50 $xml = new SimpleXMLElement($stuff);
51 $rates = array();
52 foreach( $xml->Body->Cube->Rate as $rate ){
53
54 $final = array();
55 foreach( $rate->attributes() as $att => $value ){
56 if( strcmp($att,'currency') == 0 ) $final['currency'] = (string) $value;
57 if( strcmp($att,'multiplier') == 0 ) $final['multiplier'] = (string) $value;
-
APPPATH/classes/controller/magazin.php [ 52 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(36) "Trying to get property of non-object"
2
string(66) "/home/wesro/public_html/application/classes/controller/magazin.php"
3
integer 52
4
array(13) ( "request" => object Request(9)
{ public route => object Route(4)
"query" => object Database_Query_Builder_Select(17){ protected _uri => string(53) "magazin-online(/<categorii>/produs(/<produs>(/<id>)))" protected _regex => array(1) ( "categorii" => string(2) ".*" ) protected _defaults => array(4) ( "controller" => string(7) "magazin" "lang" => string(2) "ro" "action" => string(5) "index" "categorii" => NULL ) protected _route_regex => string(106) "#^magazin-online(?:/(?P<categorii>.*)/produs(?:/(?P<produs>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#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(7) "magazin" public action => string(5) "index" public uri => string(72) "magazin-online/thermoking-aparate/produs/arzator-air-top-3500-5000d-/290" protected _params => array(4) ( "categorii" => string(18) "thermoking-aparate" "produs" => string(27) "arzator-air-top-3500-5000d-" "id" => string(3) "290" "lang" => string(2) "ro" ) }{ protected _select => array(0) protected _distinct => bool FALSE protected _from => array(1) ( 0 => string(5) "users" ) protected _join => array(0) protected _group_by => array(0) protected _having => array(0) protected _offset => NULL protected _last_join => NULL protected _where => array(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(2) "id" 1 => string(1) "=" 2 => NULL ) ) ) protected _order_by => array(0) protected _limit => NULL protected _type => integer 1 protected _lifetime => NULL protected _sql => string(0) "" protected _parameters => array(0) protected _as_object => bool FALSE protected _object_params => array(0) }
"result" => bool FALSE "query_prod" => object Database_Query_Builder_Select(17){ protected _select => array(0) protected _distinct => bool FALSE protected _from => array(1) ( 0 => string(7) "produse" ) protected _join => array(0) protected _group_by => array(0) protected _having => array(0) protected _offset => NULL protected _last_join => NULL protected _where => array(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(2) "id" 1 => string(1) "=" 2 => string(3) "290" ) ) ) protected _order_by => array(0) protected _limit => NULL protected _type => integer 1 protected _lifetime => NULL protected _sql => string(0) "" protected _parameters => array(0) protected _as_object => bool FALSE protected _object_params => array(0) }
"produss" => array(18) ( "id" => string(3) "290" "nume" => string(28) "Arzator AIR TOP 3500/5000D " "pret" => string(5) "85.47" "special_price" => string(1) "0" "cod" => string(6) "67955A" "producator" => string(7) "WEBASTO" "html" => string(300) "<p> </p> <div> <strong>Arzator AIR TOP 3500/5000D 67955A</strong></div> <div> </div> <div> <strong> …" "alias" => string(27) "arzator-air-top-3500-5000d-" "activ" => string(1) "y" "home_a" => string(1) "n" "home_p" => string(1) "n" "promotie" => string(1) "n" "reconditionate" => string(1) "n" "second_hand" => string(1) "n" "stoc" => NULL "meta_title" => string(0) "" "meta_description" => string(0) "" "meta_keywords" => string(0) "" ) "session" => string(26) "q7a3gmqj4j22rit3j75bh9h3h0" "url" => string(33) "https://www.bnr.ro/nbrfxrates.xml" "ch" => unknown type Resource id #62 "timeout" => integer 5 "stuff" => string(127) "<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/error.htm">here</a>.</h2> </body></html> " "suma" => integer 0 "xml" => object SimpleXMLElement(2){ public head => object SimpleXMLElement(1)
"rates" => array(0) ){ public title => string(12) "Object moved" }
public body => object SimpleXMLElement(1){ public h2 => string(17) "Object moved to ." }
}47 $stuff = curl_exec($ch); 48 curl_close($ch); 49 $suma=0; 50 $xml = new SimpleXMLElement($stuff); 51 $rates = array(); 52 foreach( $xml->Body->Cube->Rate as $rate ){ 53 54 $final = array(); 55 foreach( $rate->attributes() as $att => $value ){ 56 if( strcmp($att,'currency') == 0 ) $final['currency'] = (string) $value; 57 if( strcmp($att,'multiplier') == 0 ) $final['multiplier'] = (string) $value;
-
{PHP internal call} » Controller_Magazin->__construct(arguments)
0
object Request(9)
{ public route => object Route(4)
{ protected _uri => string(53) "magazin-online(/<categorii>/produs(/<produs>(/<id>)))" protected _regex => array(1) ( "categorii" => string(2) ".*" ) protected _defaults => array(4) ( "controller" => string(7) "magazin" "lang" => string(2) "ro" "action" => string(5) "index" "categorii" => NULL ) protected _route_regex => string(106) "#^magazin-online(?:/(?P<categorii>.*)/produs(?:/(?P<produs>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#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(7) "magazin" public action => string(5) "index" public uri => string(72) "magazin-online/thermoking-aparate/produs/arzator-air-top-3500-5000d-/290" protected _params => array(4) ( "categorii" => string(18) "thermoking-aparate" "produs" => string(27) "arzator-air-top-3500-5000d-" "id" => string(3) "290" "lang" => string(2) "ro" ) } -
SYSPATH/classes/kohana/request.php [ 1187 ] » ReflectionClass->newInstance(arguments)
0
object Request(9)
{ public route => object Route(4)
{ protected _uri => string(53) "magazin-online(/<categorii>/produs(/<produs>(/<id>)))" protected _regex => array(1) ( "categorii" => string(2) ".*" ) protected _defaults => array(4) ( "controller" => string(7) "magazin" "lang" => string(2) "ro" "action" => string(5) "index" "categorii" => NULL ) protected _route_regex => string(106) "#^magazin-online(?:/(?P<categorii>.*)/produs(?:/(?P<produs>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#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(7) "magazin" public action => string(5) "index" public uri => string(72) "magazin-online/thermoking-aparate/produs/arzator-air-top-3500-5000d-/290" protected _params => array(4) ( "categorii" => string(18) "thermoking-aparate" "produs" => string(27) "arzator-air-top-3500-5000d-" "id" => string(3) "290" "lang" => string(2) "ro" ) }1182 throw new Kohana_Exception('Cannot create instances of abstract :controller', 1183 array(':controller' => $prefix.$this->controller)); 1184 } 1185 1186 // Create a new instance of the controller 1187 $controller = $class->newInstance($this); 1188 1189 // Execute the "before action" method 1190 $class->getMethod('before')->invoke($controller); 1191 1192 // Determine the action to use
-
APPPATH/bootstrap.php [ 405 ] » Kohana_Request->execute()
400 401 try { 402 403 $request = Request::instance(); 404 405 $request->execute(); 406 407 } catch (Exception $e) { 408 409 $request = Request::instance(); 410
-
DOCROOT/index.php [ 102 ] » require(arguments)
0
string(21) "APPPATH/bootstrap.php"
97 // Load empty core extension 98 require SYSPATH.'classes/kohana'.EXT; 99 } 100 101 // Bootstrap the application 102 require APPPATH.'bootstrap'.EXT;