A homeless man accused of trying to force his way into the hotel room of actor Jamie Foxx in Center City was, for a second time, declared mentally incompetent today to stand trial.

Philadelphia Municipal Court Judge Thomas M. Nocella ruled that Steven Taliver, 49, was not mentally competent to be tried on the charges. The judge scheduled an Aug. 5 hearing on the status of Taliver's mental health.

Taliver allegedly tried to get into Foxx's room at the AKA Hotel at 18th and Walnut Streets in late March while Foxx was in Philadelphia to shoot a movie. In one instance, Taliver told Foxx he was a producer for singer and actress Beyonce Knowles. After quickly being found to be a fraud, Taliver left after a struggle with Foxx. Taliver was arrested on March 31 after being seen on a nearby street.

He is charged with burglary, stalking, false impersonating and related offenses. On April 8, Municipal Judge David Shuter ordered Taliver to undergo 60 days of treatment at Norristown State Hospital. Public defender Gregg Bender, representing Taliver, said in a statement that court psychiatrist Robert Stanton had found Taliver actively psychotic. District attorney Kelley Hodge said Taliver had been escorted out of the hotel previously and that he knew he was not welcome there.

Contact Inquirer staff writer Vernon Clark at 215-854-5717 or vclark@phillynews.com