Two vice officers were fired on Thursday by the city of Columbus, Ohio, for their role in the wrongful arrest of the pornographic film actress Stormy Daniels at a strip club in 2018, an arrest that a lawyer for Ms. Daniels said was the result of a “conspiracy of dunces.”

The officers, Steven Rosser and Whitney Lancaster, were found to have violated police rules when they arrested Ms. Daniels on three counts of illegal sexually oriented activity and then lied to internal affairs investigators about the basis for the sting, city officials said.

The charges against Ms. Daniels were dropped within 24 hours, but not before the arrest, at Sirens Gentlemen’s Club in Columbus, drew national headlines. Ms. Daniels is best known for saying that she had an affair with Donald J. Trump before he was president.

Amid scrutiny that the arrest had been politically motivated, the city later paid $450,000 to settle a lawsuit filed by Ms. Daniels. It also disbanded the troubled vice squad after a federal corruption investigation.