BugsEditPROBLEM SOLVED (PC)
The next quest would not start. I had this problem because i had already cleared out driftshade refuge while i was just adventuring, not knowing it was a quest location. this is how i fixed it:
1) wait 30 in-game days (this will respawn all enemies in driftshade refuge)
2) go to console, type 'player.setstage c05 0'
quest started!
There is a glitch that can occur on your return to Whiterun where you will not receive the next part of the quest. This is because the quest shares a location with a quest to retrieve the Helm of Winterhold. If you have already cleared this area, the game will not give you the next quest and so you are stuck - NOTE: Do not collect the witch heads if you HAVE collected the Helm. Each Witch Head has a weight of 4, taking up a total of 20 lbs of space, which cannot be dropped as they are "quest items." On the PC, you can remedy this with the console with "setstage C06 1". You will not get to go on your Silver Hand rampage (C05), but you will get to continue the Companion Quest line.
Another remedy for this problem is if Driftshade Refuge has been cleared - the area where the next part of the quest takes place, enter the building and find the Silver Hand leader. He is the only enemy in full iron armor. Open the console, click the deceased enemy and type "resurrect". This will bring the enemy back to life. Do not attack him, instead leave the building and continue/hand in the quest.
If you have already collected the witches heads before inputting "setstage C06 1", you will have to break Aela, Farkas, Vilkas, and Eorlund out of their unresponsive states, as they are required for the scene. You can do this by forcing them or a nearby npc to attack you and then either yielding or leaving Whiterun until they calm down. If all four of them speak to you normally, input "setstage C06 1" in the console and the rest of the Companion Quest line should play out normally.
If you have not completed the Helm of Winterhold quest and it has not yet been cleared, you can go to the dungeon, run through it quickly to retrieve the helm, and get out without killing anyone. "TCL" can be used to clip through walls and quickly grab it. Turn in this quest to the Jarl of Winterhold, and then input "setstage C05 0" into the console, and fast-travel back to Driftshade Refuge and proceed along the questline as normal. When you return to Whiterun Kodlak's funeral will proceed as normal