Found out why I was having problems with lib.parsefunc_RTE. It was because I had disabled the RTE. Doh!