Royal Mail have recently changed the returned HTML depending on tracking number type.
The enclosed rm_tracking.php will cater for the currently KNOWN return types.
If you find that certain services e.g international are failing, PLEASE report this on the forum; I don't have access to all the available types of ID!!

Upload enclosed file, overwriting existing rm_tracking.php

More...