PHP Classes

getting error "Request or token not valid"

Recommend this page to a friend!

      PHP Secure Login Library  >  All threads  >  getting error "Request or token not...  >  (Un) Subscribe thread alerts  
Subject:getting error "Request or token not...
Summary:tried script locally and remolty but getting error
Messages:7
Author:blackphantom
Date:2016-08-18 11:31:56
 

  1. getting error "Request or token not...   Reply   Report abuse  
Picture of blackphantom blackphantom - 2016-08-18 11:31:56
i replaced the Site_key and Security_key in config.php file with site_key and security_key from google reCAPTCHA API keys for my domain. it shows recaptcha images but when i try to click register it says "request or token not valid".
please advice.

  2. Re: getting error "Request or token not...   Reply   Report abuse  
Picture of Mohamed Elbahja Mohamed Elbahja - 2016-08-18 12:23:36 - In reply to message 1 from blackphantom
hi ,

go to phpsls/SlsCore/Data/Form.php

Replace code in this :

github.com/melbahja/phpsls/blob/mas ...

  3. Re: getting error "Request or token not...   Reply   Report abuse  
Picture of blackphantom blackphantom - 2016-08-19 08:48:31 - In reply to message 2 from Mohamed Elbahja
thanks for the reply i changed the code as you said and it worked but only in firefox browser. when i try to login from google chrome or internet explorer its says "request or token is not valid"

  4. Re: getting error "Request or token not...   Reply   Report abuse  
Picture of Superluk Superluk - 2016-12-10 09:44:56 - In reply to message 3 from blackphantom
Hi, any idea in meantime .... ? i got the same error !?!

  5. Re: getting error "Request or token not...   Reply   Report abuse  
Picture of Superluk Superluk - 2016-12-10 09:45:27 - In reply to message 2 from Mohamed Elbahja
Does not work in Chrome - any idea in meantime .. ?!?

  6. Re: getting error "Request or token not...   Reply   Report abuse  
Picture of Superluk Superluk - 2016-12-10 11:28:59 - In reply to message 5 from Superluk
Works fine now - defined Domain in config.php correctly and works in Chrome - not tested in Fox oder IE

define('DOMAIN', 'yourdomain.com'); // domain name only -

chance to your domain ;-)

thanks a lot!

  7. Re: getting error "Request or token not...   Reply   Report abuse  
Picture of Wilkie Kevin Wilkie Kevin - 2017-03-08 14:20:37 - In reply to message 3 from blackphantom
Hello, Do you have a working solution to this "request or token is not valid" problem. I tried testing on localhost but keep getting this error.