This error generally caused by the Theme when you update the wordpress version to 4.2 because the theme is not…