Can't follow all the changes anymore, but at least one versions seems to be working. Can you paste the code of the file here again?
I've copied each .php to .txt at
http://api.loyce.club/crowdsourcing/ so you can read them.
I am not sure how you process all the data. Maybe you can tell us how exactly you get the data and how you are saving it into your .txt file.
This one is actually quite simple:
1. I download and extract
https://bitcointalk.org/merit.txt.xz2. I overwrite the last ~113 days in merit.all.txt with the new ~120 days
The format is the same as the forum's data dump, I only add historic records.