Please Disable Your Browser Adblock Extension for our site and Refresh This Page!

our ads are user friendly, we do not serve popup ads. We serve responsible ads!

Refresh Page
Skip to main content
On . By CodimTh
Category:

Question:
How to resolve this error: CAPTCHA validation error: unknown CAPTCHA session ID. Contact the site administrator if this problem persists. 

Solution:

Edit the recaptcha.module file:

change this code:

// As the validate callback does not depend on sid or solution, this
// captcha type can be displayed on cached pages.
$captcha['cacheable'] = TRUE;

By this code:

// As the validate callback does not depend on sid or solution, this
// captcha type can be displayed on cached pages.
//$captcha['cacheable'] = TRUE;
$captcha['cacheable'] = FALSE;
\Drupal::service('page_cache_kill_switch')->trigger();

Comments

Add new comment

Restricted HTML

Riadh Rahmi

Senior Web Developer (Drupal & Laravel)

I am a senior web developer, I have experience in planning and developing large scale dynamic web applications especially in Drupal and Laravel.

Web Posts

Search

Page Facebook