Cron Job not working after Joomla 3.8.1 update
I have updated Joomla to 3.8.5 and updated CiviCRM to 4.7.31 (I'm using PHP version 5.6.34.) and the CRON job still didn't work.

I found and applied this patch and it worked. Thank you to Andrew Thompson for your work on this issue.