ErrorException [ Warning ]: Trying to access array offset on value of type null

APPPATH/views/news_item.php [ 4 ]

1 <div class="container overflow-hidden flex news__item-wrapper inner__section-wrapper">
2     <div>
3         <div class="flex justify-between items-end mb-10">
4             <h2 class="text-black "> <?php echo ($news['title']); ?></h2>
5            <div class="text-sm"> <?php echo date('d.m.Y', strtotime($news['created'])); ?></div>
6         </div>
7   
8         <?php echo ($news['body']); ?>
9     </div>
  1. APPPATH/views/news_item.php [ 4 ] » Kohana_Core::error_handler()

  2. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()

  4. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  5. APPPATH/views/new_template.php [ 165 ] » Kohana_View->__toString()

  6. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()

  8. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  9. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  10. {PHP internal call} » Kohana_Controller->execute()

  11. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke()

  12. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()

  13. SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute()

  14. DOCROOT/public/index.php [ 118 ] » Kohana_Request->execute()

Environment