Notice (8): Undefined index: email [APP/Controller/ErrorreportsController.php, line 19]

Fatal error: Call to a member function to() on a non-object in /home/bitbar6/public_html/app/Controller/ErrorreportsController.php on line 20
{"success":0,"exception":{"error_no":500,"error_message":"Call to a member function to() on a non-object"}}