I think the biggest problem with homelessness is the refusal to look the problem squarely in the eye.
Most homeless people are either mentally ill or have severe substance abuse problems. Or both. Fixing the problem doesn't mean making the streets nicer for them to sleep on, or handing out meals and blankets (don't get me wrong, there is nothing wrong with handing out meals and blankets, but it's a band-aid.)
"Advocates" for the homeless like to portray them as down on their luck, or as typical working folks just unable to afford expensive housing.
But...
According to the Substance Abuse and Mental Health Service Administration (SAMHSA) an estimated 64% of homeless people had drug use problems in the past month, 38% had alcohol use problems, and 39% had some form of mental health problems.
https://www.rehabspot.com/drugs/who-addiction-affects/homelessness/
Fixing this problem means spending money on supervised mental health facilities and serious drug and alcohol rehab programs. In some cases, it may mean providing purpose-built apartments for homeless people. This actually costs less than treating people for the multiple ER visits that accompany being homeless. It means changing NIMBY housing regulations to allow such housing to be built (repurposing old buildings can work).
There's nothing romantic about homelessness and taking care of the homeless doesn't mean letting them sleep on the streets. Sprawling homeless camps aren't a sign of compassion or successful municipal management, they are a sign of failure. The Mayor of LA should resign in disgrace. People have a right to navigate the streets of their own cities without worrying about needles, human feces or other problems that accompany homelessness.
There are certainly people who are homeless "through no fault of their own" but they shouldn't be encouraged (or allowed) to pitch tents. They should get the help they need to find jobs and/or housing.
This is a fiendishly complex problem and I know I'm oversimplifying. But I do know that looking at the problem through rose-colored glasses won't solve anything.