I have zero experience in dealing with hardware, so I tried to figure it out as I took it apart.
The problem is mainly in the jack, so when I opened it I noticed it's inner part wasn't properly connected to its board. Below are pictures of the situation. Can it be solved with some glue? If so, which glue and can I put it on the white part of the board (its bottom part, where it's connected to the inner part of the jack).
The bottom part of the board
The jack piece.
When I press the two together, I got perfect sound, but the connection must be perfectly stable and I'm afraid glue will disrupt the connection...
The problem is mainly in the jack, so when I opened it I noticed it's inner part wasn't properly connected to its board. Below are pictures of the situation. Can it be solved with some glue? If so, which glue and can I put it on the white part of the board (its bottom part, where it's connected to the inner part of the jack).

The bottom part of the board

The jack piece.
When I press the two together, I got perfect sound, but the connection must be perfectly stable and I'm afraid glue will disrupt the connection...