Spirit Folk - S6-E17
Plot hole: Gunfire damages the holodeck controls, and the computer announces that safety protocols are now offline. This implies that they were online before the gunfire. If they were still online before the gunfire, the bullets would not have damaged the controls.