ErrorException [ Deprecated ]: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

APPPATH/views/site/car-details.php [ 111 ]

106                     <h4 class="desc-title mdesc-title fs-4">
107                         About this vehicle
108                     </h4>
109                     <p class="car-desc mcar-desc ">
110                       <?php 
111                         $description = str_replace('\n','',$details[0]['description']);
112                         $description = str_replace('\r','',$description);
113                         $description = str_replace('\"','',$description);
114 
115                         echo $description; 
116                       ?>
  1. {PHP internal call} » Kohana_Core::error_handler()

  2. APPPATH/views/site/car-details.php [ 111 ] » str_replace()

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

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

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

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

  7. APPPATH/classes/Controller/Details.php [ 31 ] » Kohana_Response->body()

  8. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Details->action_vehicle()

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

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

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

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

  13. DOCROOT/index.php [ 111 ] » Kohana_Request->execute()

Environment