TITLE: How to/Can you get a PhD position when you need more experience first?
QUESTION [11 upvotes]: My friend loves mathematics and wants to continue research as a
mathematics PhD student, but this doesn't seem possible!
She did a prestigious but inadequate bachelors program (almost no math) and
because of this she is having a very hard time getting good grades for her master courses.
Thus she feels she has inadequate knowledge for a PhD position; which is probably right.
Her thesis adviser told her that she cannot continue a career in
research mathematics: no university would consider her given the situation now nor if she took an extra year or two to study more.

Question: Is this true? Does it really stop here?
I'm interested in similar experiences, opinions and suggestions (from
experienced professionals).
I'm particularly not looking for a rosy picture!

In my opinion she is very talented, motivated, original and quick! She
would flourish given more time to take specific foundational bachelor
and deepening masters courses. Until now she performed extremely well
(near perfect score) and this is confirmed by for example two scholarships she
won (BA and MA).
PS. I tried to keep it terse but please ask for further details if needed.
Thanks a lot!

Update: Thank you all very much for the responses and useful comments.
It turns out that there is much more "staff rotation" in applied PhD programs and
  it seems plausible that she can find a nice position there; from which to continue
  her studies.
Thanks again.

REPLY [2 votes]: Does she really need to become PhD Student in Mathematics? Why doesn't she try with something different?
I mean, a mathematician is, in my experience, not just a person who studies abstract mathematics. There are plenty of other occupations that involve the same skills and duties as pure mathematics. There is a lot of mathematics needed into other similar subjects, like computer science. Moreover, the interdisciplinarity of computer science should help her in getting such a position. Finally, original thinking and ability to formalize and being a hardworker are skills really needed and rewarded in this field!
To say my experience, I graduated in Mathematics (in the field of arithmetic geometry) but now I'm a PhD Student in computer science... and despite my lack of knowledge in specific topics, like programming, I feel I'm really helpful here!
Moreover, in some areas of Mathematics the research borders are quite far, so starting "late" could imply facing with difficulties in the future... or at least, I feel that this is what the most mathematicians think about this, and probably is the reason why she's having hard times in finding a PhD position in Maths...