It seems that upgrading wordpress by uploading the new files in lace of the old was not enough, i ended up having to 1- backup my config file, 2- delete all files, 3- upload the new wordpress, 4- upload my old config file
Before that, simply updating wordpress to the latest version did not work. so again, the solution is to delete all wordpress files first (Keep your config file)