Those are the problem.
As I wrote in that post (I tried to write, it is not easy in English: this site should be all in Italian
):
a) the player makes his game on his device, not connected;
b) he thinks his score is high and download the ranking file (.txt);
c) he locks the file in some way (eg by deleting it from the server);
d) he updates the file and uploads it again on the server
But if, for some reason, he did not complete step d), the ranking file is no longer available.
At this point, the server (scripts) should check the duration of the user update and possibly recreate the file.
If you know another method, always using only a standard text file and FTP, much better