Answers.Body: <p>The error seems like it might be happening because one of the jid, qid, h params  are not present. </p>
  
  <p>As a first step - I'd make sure that the opt out was working properly with a test contact (send them an email and opt out via the link and confirm it's working).</p>
  
  <p>Then if that is working I'd check your server logs - it's possibly something hitting the url without the correct params (some sort of automated crawl etc).</p>
  
  <p>If you wanted to you could try editing the file /home/user/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/Request.php  on line 31 and output further information about the request. Definitely back up that file first! </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-15T01:52:47.267Z
Answers.Text: Thanks @Luke Stewart.  I tested the optout with a dummy account and it worked fine, so I am less concerned about this issue in general.  However I did look at the logs and isolated the IPs hitting the page without parameters. And as you suggested, there were some spiders plus a few sketchy IPs from Bucharest.  It's annoying that they are filling up the log, but otherwise I can ignore it.  Thanks!
Answers.UserDisplayName: twowheeler
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-12T01:00:55.150Z
Answers.LastActivityDate: 2020-01-12T01:00:55.150Z
Answers.UserDisplayName: Luke Stewart
Body: <p>Our site is producing fatal "Missing input parameters" errors from the mailing opt-out form.  This happens several times every day at random times. I have looked at a few other SE posts with similar errors, but those issues seem unrelated. The log output is lengthy so I dumped it <a href="https://pastebin.com/6YLgtHiB" rel="nofollow noreferrer">here</a>.  If anyone could decipher it and let me know how to debug this, I'd appreciate it.  Thanks.</p>
  
Tags: <civimail><opt-out>
Title: Missing input parameters error on opt-out form
ThreadText: # Missing input parameters error on opt-out form
  
  (Asked by: username_0 on 2020-01-11)
  
  Our site is producing fatal "Missing input parameters" errors from the mailing opt-out form. This happens several times every day at random times. I have looked at a few other SE posts with similar errors, but those issues seem unrelated. The log output is lengthy so I dumped it [here](https://pastebin.com/6YLgtHiB). If anyone could decipher it and let me know how to debug this, I'd appreciate it. Thanks.
  
  **Tags:** civimail, opt-out
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-01-12. Score: 0 | Accepted answer
  
  The error seems like it might be happening because one of the jid, qid, h params are not present.
  
  As a first step - I'd make sure that the opt out was working properly with a test contact (send them an email and opt out via the link and confirm it's working).
  
  Then if that is working I'd check your server logs - it's possibly something hitting the url without the correct params (some sort of automated crawl etc).
  
  If you wanted to you could try editing the file /home/user/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/Request.php on line 31 and output further information about the request. Definitely back up that file first!
  
  > **Comments:**
  > **username_0**: Thanks @username_1.  I tested the optout with a dummy account and it worked fine, so I am less concerned about this issue in general.  However I did look at the logs and isolated the IPs hitting the page without parameters. And as you suggested, there were some spiders plus a few sketchy IPs from Bucharest.  It's annoying that they are filling up the log, but otherwise I can ignore it.  Thanks!  
  
  ---
  
  