Form is missing __token or __ts fields

I've visited this site
http://docs.elgg.org/wiki/Form_is_missing_token_or_ts_fields

and i try to add a "disable" file to mod folder, the site return to it's original look, but when i press login, the error still here and i can't login

 

i try to turn off the browser, apache, even reboot the computer but the problem still there

 

In fact, i've tried this before, and i tried to reinstall the apache to recover the problem.

 

but this time i don't want to do that again, is there a solution for fixing this?

  • I even try to move the mod folder away and replace it with a mod folder that is from the other web app, still not working.

    and that other web app on the same server also get the Form is missing __token or __ts fields problem...

     

    What can i do?

  • Have you named the file you created in the mod folder "disabled"? The name must fit, i.e. is must be "disabled" and not "disable".

    Also, can you narrow down the possible reason for the error? When did it start? Was it after updating Elgg or after adding a new plugin? If it started after adding a new plugin, you could remove the folder of this plugin from mod and run http://<your.site.url>/upgrade.php to get rid of this plugin. If it started after upgrading Elgg: which version? If it's Elgg 1.8.14, then upgrade to Elgg 1.8.15 as this might fix the issue.

  • the name is correct

     

    and the reason that trigger this error varies, some times u log out and can't long in again, sometimes seems no reason...

     

    However i used a strange way to tackle the problem at the end

    just download and install the elgg step by step, after that go back to open ur original web app

    it works again =.= (don't know wt happened, maybe it change the .htaccess? or the htaccess_dist?)

    In fact, i'm using virtual machine, both apache in mac and windows could get the problem fixed... 

    Can anyone tell me why? or can i have a more simple way to tackle this next time?

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking