Irregularities which vitiate proceedings.
507. If any Magistrate, not being empowered by law in this behalf, does any of the following things, namely:—
(a) attaches and sells property under section 85;
(b) issues a search-warrant for a document, parcel or other things in the custody of a postal authority;
(c) demands security to keep the peace;
(d) demands security for good behaviour;
(e) discharges a person lawfully bound to be of good behaviour;
(f) cancels a bond to keep the peace;
(g) makes an order for maintenance;
(h) makes an order under section 152 as to a local nuisance;
(i) prohibits, under section 162, the repetition or continuance of a public nuisance;
(j) makes an order under Part C or Part D of Chapter XI;
(k) takes cognizance of an offence under clause (c) of sub-section (1) of section 210;
(l) tries an offender;
(m) tries an offender summarily;
(n) passes a sentence, under section 364, on proceedings recorded by another Magistrate;
(o) decides an appeal;
(p) calls, under section 438, for proceedings; or
(q) revises an order passed under section 491,
his proceedings shall be void.