ErrorException [ Notice ]: Trying to get property 'textContent' of non-object

APPPATH/views/object/advertisements/detail_2.php [ 67 ]

62 
63 @$DOM->loadHTML(mb_convert_encoding($data['data'], 'HTML-ENTITIES', 'UTF-8'));
64 
65 $items = $DOM->getElementsByTagName('span');
66 $nadpis_elemet = $DOM->getElementById("top");
67 $nadpis = $nadpis_elemet->textContent;
68 
69 
70 
71 
72 $xpath = new DomXPath($DOM);
  1. APPPATH/views/object/advertisements/detail_2.php [ 67 ] » Kohana_Core::error_handler()

  2. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture()

  4. APPPATH/views/object/advertisements/detail.php [ 4 ] » Kohana_View->render()

  5. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  6. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture()

  7. APPPATH/views/object/advertisements/frontendView.php [ 9 ] » Kohana_View->render()

  8. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  9. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture()

  10. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  11. APPPATH/classes/appcontroller.php [ 232 ] » Kohana_View->__toString()

  12. APPPATH/classes/controller/object.php [ 117 ] » AppController->after()

  13. APPPATH/classes/controller/object/advertisements.php [ 536 ] » Controller_Object->after()

  14. {PHP internal call} » Controller_Object_Advertisements->after()

  15. SYSPATH/classes/kohana/request/client/internal.php [ 121 ] » ReflectionMethod->invoke()

  16. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request()

  17. SYSPATH/classes/kohana/request.php [ 1196 ] » Kohana_Request_Client->execute()

  18. APPPATH/classes/controller/front.php [ 331 ] » Kohana_Request->execute()

  19. APPPATH/classes/controller/front.php [ 230 ] » Controller_Front->get_content_objects()

  20. APPPATH/classes/controller/front/front.php [ 13 ] » Controller_Front->action_index()

  21. {PHP internal call} » Controller_Front_Front->action_index()

  22. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke()

  23. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request()

  24. SYSPATH/classes/kohana/request.php [ 1196 ] » Kohana_Request_Client->execute()

  25. DOCROOT/index.php [ 145 ] » Kohana_Request->execute()

Environment