Putting in my .emacs file:
(load-library "magit-autoloads")
(require 'magit)
If you load magit-autoloads, you don't need to (require 'magit), if you (require 'magit), you don't need the autoloads. The idea of autoloads is to prepare Emacs to load magit when you will need it, when require load it immediately. But this is probably not what cause your problem.
gives the error/warning:
Cannot determine Magit’s version (error
"/home/user/.emacs.d/elpa/magit-20160724.858/magit.el" repo static elpa)
What am I doing wrong?
How do I fix this?
Why don't you just use (package-initialize)? It is the way packages from elpa/melpa are intended to be loaded. It might be the cause of your problem.