Fixed it. Once i enabled debug I found out the problem was infact that the function.php was in wp-include aswell as wp-admin.
Fixed it. Once i enabled debug I found out the problem was infact that the function.php was in wp-include aswell as wp-admin.