City building inspectors slapped public schools with 2,646 “hazardous” violations this year, many of which pose potential dangers to students, reports obtained by The Post show.

Last year, inspectors issued 3,023 violations. But the current reports are through mid-October, which means the total number of reported defects will be higher if the current pace continues.

Some of the 1,200 buildings are firetraps because of padlocked and broken doors and blocked access to exits, the inspectors said. About 30 percent of all the violations issued, 786, concerned breaches to fire-safety prevention.

Don’t yell “fire!” at PS 25 (787 Lafayette Ave.) in Brooklyn. Inspectors said the stage exit doors in the auditorium were bolted shut from the outside and ordered officials to remove the “severe” hazard.

A total of 768 violations were issued to schools for crumbling conditions inside buildings, including damaged walls, missing ceiling tiles and exposed beams, chipped paint and sunken gym floors. Inspectors were disturbed to see broken and unsafe windows in some schools and issued 67 notices for Department of Education officials to fix them.

At the Bronx HS of Science, window frames had rotted. Because of that, the windows were described as “loose,” “shaking” and in danger of “falling” out.

At PS 3 (50 Jefferson Ave.) in Brooklyn, “large holes” were spotted in the kindergarten play area.

Meanwhile at PS 38, also in Brooklyn (450 Pacific St.), the padding in the kiddie playground was in “total disrepair.”

Schools Chancellor Joel Klein’s office did not dispute the findings. But Klein aide Marty Oestreicher said there aren’t any “immediate hazards.”

“Anything that is deemed dangerous we correct right away,” he said. But Oestreicher admitted it’s a challenge keep the city’s 1,200 buildings, with an average age of 60 years, in top shape with limited funds.

DANGER ZONES

From January to October, 2,646 “hazardous” school-building violations were issued: