Section 5. Zoning ordinances or by-laws may be adopted and from time to time changed by amendment, addition or repeal, but only in the manner hereinafter provided. Adoption or change of zoning ordinances or by-laws may be initiated by the submission to the city council or board of selectmen of a proposed zoning ordinance or by-law by a city council, a board of selectmen, a board of appeals, by an individual owning land to be affected by change or adoption, by request of registered voters of a town pursuant to section ten of chapter thirty-nine, by ten registered voters in a city, by a planning board, by a regional planning agency or by other methods provided by municipal charter. The board of selectmen or city council shall within fourteen days of receipt of such zoning ordinance or by-law submit it to the planning board for review.
No zoning ordinance or by-law or amendment thereto shall be adopted until after the planning board in a city or town, and the city council or a committee designated or appointed for the purpose by said council has each held a public hearing thereon, together or separately, at which interested persons shall be given an opportunity to be heard. Said public hearing shall be held within sixty-five days after the proposed zoning ordinance or by-law is submitted to the planning board by the city council or selectmen or if there is none, within sixty-five days after the proposed zoning ordinance or by-law is submitted to the city council or selectmen. Notice of the time and place of such public hearing, of the subject matter, sufficient for identification, and of the place where texts and maps thereof may be inspected shall be published in a newspaper of general circulation in the city or town once in each of two successive weeks, the first publication to be not less than fourteen days before the day of said hearing, and by posting such notice in a conspicuous place in the city or town hall for a period of not less than fourteen days before the day of said hearing. Notice of said hearing shall also be sent by mail, postage prepaid to the department of housing and community development, the regional planning agency, if any, and to the planning board of each abutting city and town. The department of housing and community development, the regional planning agency, the planning boards of all abutting cities and towns and nonresident property owners who may not have received notice by mail as specified in this section may grant a waiver of notice or submit an affidavit of actual notice to the city or town clerk prior to town meeting or city council action on a proposed zoning ordinance, by-law or change thereto. Zoning ordinances or by-laws may provide that a separate, conspicuous statement shall be included with property tax bills sent to nonresident property owners, stating that notice of such hearings under this chapter shall be sent by mail, postage prepaid, to any such owner who files an annual request for such notice with the city or town clerk no later than January first, and pays a reasonable fee established by such ordinance or by-law. In cases involving boundary, density or use changes within a district, notice shall be sent to any such nonresident property owner who has filed such a request with the city or town clerk and whose property lies in the district where the change is sought. No defect in the form of any notice under this chapter shall invalidate any zoning ordinances or by-laws unless such defect is found to be misleading.
Prior to the adoption of any zoning ordinance or by-law or amendment thereto which seeks to further regulate matters established by section forty of chapter one hundred and thirty-one or regulations authorized thereunder relative to agricultural and aquacultural practices, the city or town clerk shall, no later than seven days prior to the city council's or town meeting's public hearing relative to the adoption of said new or amended zoning ordinances or by-laws, give notice of the said proposed zoning ordinances or by-laws to the farmland advisory board established pursuant to section forty of chapter one hundred and thirty-one.
No vote to adopt any such proposed ordinance or by-law or amendment thereto shall be taken until a report with recommendations by a planning board has been submitted to the town meeting or city council, or twenty-one days after said hearing has elapsed without submission of such report. After such notice, hearing and report, or after twenty-one days shall have elapsed after such hearing without submission of such report, a city council or town meeting may adopt, reject, or amend and adopt any such proposed ordinance or by-law. If a city council fails to vote to adopt any proposed ordinance within ninety days after the city council hearing or if a town meeting fails to vote to adopt any proposed by-law within six months after the planning board hearing, no action shall be taken thereon until after a subsequent public hearing is held with notice and report as provided.
No zoning ordinance or by-law or amendment thereto shall be adopted or changed except by a two-thirds vote of all the members of the town council, or of the city council where there is a commission form of government or a single branch, or of each branch where there are two branches, or by a two-thirds vote of a town meeting; provided, however, that if in a city or town with a council of fewer than twenty-five members there is filed with the clerk prior to final action by the council a written protest against such change, stating the reasons duly signed by owners of twenty per cent or more of the area of the land proposed to be included in such change or of the area of the land immediately adjacent extending three hundred feet therefrom, no such change of any such ordinance shall be adopted except by a three-fourths vote of all members.
No proposed zoning ordinance or by-law which has been unfavorably acted upon by a city council or town meeting shall be considered by the city council or town meeting within two years after the date of such unfavorable action unless the adoption of such proposed ordinance or by-law is recommended in the final report of the planning board.
When zoning by-laws or amendments thereto are submitted to the attorney general for approval as required by section thirty-two of chapter forty, he shall also be furnished with a statement which may be prepared by the planning board explaining the by-laws or amendments proposed, which statement may be accompanied by explanatory maps or plans.
The effective date of the adoption or amendment of any zoning ordinance or by-law shall be the date on which such adoption or amendment was voted upon by a city council or town meeting; if in towns, publication in a town bulletin or pamphlet and posting is subsequently made or publication in a newspaper pursuant to section thirty-two of chapter forty. If, in a town, said by-law is subsequently disapproved, in whole or in part, by the attorney general, the previous zoning by-law, to the extent that such previous zoning by-law was changed by the disapproved by-law or portion thereof, shall be deemed to have been in effect from the date of such vote. In a municipality which is not required to submit zoning ordinances to the attorney general for approval pursuant to section thirty-two of chapter forty, the effective date of such ordinance or amendment shall be the date passed by the city council and signed by the mayor or, as otherwise provided by ordinance or charter; provided, however, that such ordinance or amendment shall subsequently be forwarded by the city clerk to the office of the attorney general.
A true copy of the zoning ordinance or by-law with any amendments thereto shall be kept on file available for inspection in the office of the clerk of such city or town.
No claim of invalidity of any zoning ordinance or by-law arising out of any possible defect in the procedure of adoption or amendment shall be made in any legal proceedings and no state, regional, county or municipal officer shall refuse, deny or revoke any permit, approval or certificate because of any such claim of invalidity unless legal action is commenced within the time period specified in sections thirty-two and thirty-two A of chapter forty and notice specifying the court, parties, invalidity claimed, and date of filing is filed together with a copy of the petition with the town or city clerk within seven days after commencement of the action.