Continuity mistake: On Tatooine, after Anakin's mother died, and they laid her to rest, you notice the shadows of the tombstone's are all facing one direction. When R2-D2 comes over, you'll notice that his shadow is going in a different direction. Can't be explained by the two suns, as we've seen many times that they don't produce two distinct shadows. (01:27:45)
Continuity mistake: In the scene where Obi-Wan lands on the cloners' planet. Rain drops go from right to left as he walk to the door. In the next 180 degree scene change as he enters the building they are still going right to left. (00:41:35)
Revealing mistake: When Anakin is talking to Palpatine, the shot pans to the door, and it is obvious that the door and the furniture are painted. (00:26:15)
Continuity mistake: Yoda drops his cane to fight Count Dooku. Then in the wide shots, the cane (CG animated) is no longer on the floor (anywhere), until Yoda conveniently needs it again and pulls it into his hand from nowhere. (02:02:25)
Answer: Agolerga, who officiated the wedding, would have known who both people were, especially Padme. Remember they were also keeping the marriage secret because of Padme's position as Senator. Assuming Agolerga was aware a Jedi can't marry, he may simply not care or agree with the rule. Also, as a holy man of Naboo, Anakin and Padme may have trusted him with their secret.
Bishop73