What is the ruling on congregational prayer performed outside the mosque, and is it a condition that it be performed in a mosque in order to attain the full reward?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
It is not a condition for attaining the reward of congregational prayer that it be performed in a mosque; however, a Muslim should still be keen to perform his prayers in the mosque, so as not to miss out on immense reward. This is due to the virtue of the mosque and of spending time there (i‘tikāf), the typically larger number of worshippers present, and the additional reward gained through walking to and from the mosque. On the authority of Abū Hurayrah (raḍiyallāhu ‘anh), the Messenger of Allah ﷺ said: "Whoever purifies himself in his house, then walks to one of the houses of Allah to fulfill one of the obligations Allah has prescribed, one of his steps will erase a sin, and the other will raise him a degree [in status]." (Related by Muslim)
Whoever misses congregational prayer at the mosque should still strive to pray in congregation at his workplace, or together with the members of his household. And Allah, the Exalted, knows best.
What is the ruling on making up missed fasts from many years?
A Muslim must make up for any missed fasts, as they are a debt owed to Allah. The Prophet ﷺ said:
"The debt owed to Allah is more deserving of being fulfilled." [Narrated by Muslim]
Whoever has missed fasts must make them up as long as they are alive and capable of fasting.
What is the ruling if someone wipes his head then shaves it - must he repeat it?
If a person performing ablution shaves his head after wiping it during ablution, he is not required to re-wipe his head or repeat the ablution. And Allah the Almighty knows best.
Is a person who forgot to make up missed fasts until the next Ramadan began required to pay expiatory compensation (Fidyah) alongside the makeup fast (Qada')?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever forgets to make up missed fasts of Ramadan (Qada') until the following Ramadan begins incurs no sin, pursuant to the statement of the Messenger of Allah (peace and blessings be upon him): "Indeed, Allah has pardoned for my nation their mistakes, their forgetfulness, and that which they are coerced into doing." [Narrated by Ibn Majah, and Al-Bayhaqi in Al-Sunan Al-Kubra]
Furthermore, such an individual is not obligated to pay a expiatory compensation (Fidyah). It is stated in Bushra Al-Karim (p. 580)—one of the authoritative Shafi'i jurisprudential texts: "As for delaying it [the makeup fasts] due to a valid excuse—such as travel, breastfeeding, forgetfulness, or ignorance of the prohibition of delay (even for one living among scholars)—no Fidyah is required. This is because delaying performance during the actual month is permissible due to these excuses; hence, delaying makeup fasts is even more permissible, even if it continues for years."
And Allah Almighty knows best.