Travellers are being warned about hidden passport rules that could stop them boarding flights or entering countries.