Erm, I could be wrong, but in the first picture it looks as if you have a neutral (black) wire terminated with the switched live (yellow).
I just read your second message again and you confirm the above.
The black is most likely connected with another neutral somewhere, so when you're...