Things I've tried:
- When I'm in the car and I press the button on the dash, all doors lock (including the boot).
- Checked backup light, that works
- Checked license plate lights, those work
- Checked rear lights, those work
- I checked the positive terminal of the car's battery with the ground of the car and it's showing normal voltage.
- Resetting the state of the doors by opening all doors + boot, turning on the ignition, closing them all again and retrying the key fob. Whenever this problem occurred in the past, this mitigated it and allowed locking with the key fob.