Avatar

Version 2.4.17 - "Invalid request - please try again!" (General)

by Micha ⌂, Wednesday, January 09, 2019, 18:29 (1932 days ago) @ Magma

Hi,

please modify the contact.inc.php file and add the missing function call: setReceiptTimestamp();.

  // check form session and time used to complete the form:
  setReceiptTimestamp(); // Missing function call!
  // if (empty($_SESSION[$settings['session_prefix'].'user_id'])) {
  if (!isset($_SESSION[$settings['session_prefix'] . 'receipt_timestamp_difference']) || intval($_SESSION[$settings['session_prefix'] . 'receipt_timestamp_difference']) <= 0)
   $errors[] = 'error_invalid_form';
  else {
   if ($_SESSION[$settings['session_prefix'] . 'receipt_timestamp_difference'] < $settings['min_email_time'])
    $errors[] = 'error_form_sent_too_fast';
   elseif ($_SESSION[$settings['session_prefix'] . 'receipt_timestamp_difference'] > $settings['max_email_time'])
    $errors[] = 'error_form_sent_too_slow';
  }

This, hopefully, solves the problem.

regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Tags:
bug, 2.4.17, contact


Complete thread:

 RSS Feed of thread