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

APPPATH/views/ecopartner/components/shop_home/category_item.php [ 22 ]

17 </div>
18 <?php else: ?>
19 <li class="nav-item">
20 	<div class="cat-item">
21 		<div style="width: 20%;" ></div>
22 		<a class="nav-link <?php if($item['id']==$category['id']) echo 'active'; ?>" href="<?php echo $shop_prefix.'/'.$item['wslug']; ?>"><?php echo $item['pname'];?>
23 		</a>
24 	</div>
25 </li>
26 <?php endif; ?>
27 
  1. APPPATH/views/ecopartner/components/shop_home/category_item.php [ 22 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/ecopartner/components/shop_home/categories.php [ 75 ] » include(arguments)

  3. APPPATH/views/ecopartner/part_shop_wrap.php [ 23 ] » include(arguments)

  4. APPPATH/views/ecopartner/index_shop.php [ 9 ] » include(arguments)

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

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

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

  8. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()

  9. APPPATH/classes/BSXController.php [ 20 ] » Kohana_Response->body(arguments)

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

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

  12. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

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

  14. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

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

Environment