Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

More than 40 people were injured, one critically, Friday night after a railing collapsed at a Snoop Dogg concert in New Jersey, police said.

The hip hop star was performing with Wiz Khalifa at the BB&T Pavilion in Camden when the railing gave way at about 10:30 p.m. ET, causing dozens of people to tumble several feet to the concrete below.

Camden police spokesman Dan Keashen told NBC News most of the injuries were broken bones, and bumps and bruises.

Twenty people were transported to Cooper University Hospital in Camden, including a patient in critical but stable condition, officials said. By Saturday afternoon, all the patients had been released, including patients treated at other hospitals in Camden.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Social media video showed Snoop and Wiz performing on a secondary stage toward the back of the venue. The pair were urging the crowd to "get up" in the moments before the railing folded.

Vincent Basara, a spokesman for the city of Camden, told NBC News the venue is up-to-date on its inspections and said code enforcement officials inspected the railing Saturday morning and found it broken in some areas, damaged in others.

prayers out to my fans. wishn u all a quick recovery. Love — Snoop Dogg (@SnoopDogg) August 6, 2016

A temporary railing has been put into place, Basara said. It will be guarded by security.

Concert organizer Live Nation said some of its employees were among the injured.

"Live Nation is closely following the recovery of the injured fans and employees as well as actively working with authorities and structural engineers to determine the cause of the collapse," the company said in a statement.

Courtney Bashwinger, 19, of Levittown, Pennsylvania, was at the concert with a few friends and said the railing collapse "looked like a waterfall of people falling down. It was just crazy."

Another concertgoer, Katie Colbridge, told NBC News the crowd was moving to get a better view when the "whole fence collapsed." She was one section over and wasn't injured.

"People started piling on each other and people just started running," she said. "All you see were tears going down their face. You could see friends holding onto each other, like clenching, like making sure that all their people were there."

The concert stopped when the performers realized what had happened, said Colbridge, an administrative specialist for the men's and women's basketball teams at Temple University.

"The announcers came on the speakers and were like, 'Everyone just remain calm, we're figuring out what happened,'" she said.

Both Snoop Dogg and Wiz Khalifa were ushered away as security moved in to help the injured, Colbridge said. The concert was later canceled, but Saturday night's "I Love the '90s" show featuring Salt-N-Pepa and Vanilla Ice will go on as planned.