When proofreading pages in it.wikisource, we are plagued by this message: 

Change not allowed - You are not allowed to change the proofreading status of this page

Going back to failed page, we noted that:
1. quality level is reverted to 1;
2. anything stored into header has been lost;
3. proofreadpage_username is set to an empty string 

The bug is impredictable, it occurs with different frequencies to different users when trying to edit different pages. Something wrong seems to occur when building the page code merging variables, header, body and footer contents. We wrote an "emergency fixing script" but it can only be called after the edit turns out to be wrong.

Is something similar happening into any other wikisource project?  Can you give us a link to understand what's happening? And - where can we find the js script which merges variables-header-body-footer into page code to send it to the server?

Alex