I have no idea how to fix this. There is a yellow line that appears when i try to move the object. Don't know if that has something to do with it.
Does your object have animation keyframes? If so, blender won't 'let' you change it's location unless you have auto-keying turned on (the button with the little circle next to the 'play' buttons in the timeline panel), or if you manually insert a keyframe after moving, rotating or scaling your object.
As for the yellow line, it's probably because you have snapping turned on (the little magnet button on top of the viewport), but I don't think that has anything to do with what's preventing you from moving the object. Can you post a screenshot?