The events of the second half of the episode, while Ned is in his dream, are considered completely non-canon.
Crubbs mentioned that the Haunted Hallway cost the school's entire art project. This may have caused the conflict of the next episode.
The song that plays while everyone is preparing for the Halloween party is similar to "The Monster Mash".