Body: <p>People who click on an opt-out URL in our civimail get an error screen like &quot;Sorry, due to an error, we are unable to fulfill your request at the moment.&quot; The ReportError extension captures a backtrace that I stored on pastebin <a href="https://pastebin.com/m1ZUk16P" rel="nofollow noreferrer">here</a>. I verified that this error is coming from real humans trying to opt out, not from bots.</p>
  <p>This part is confusing:</p>
  <pre><code>Array
  (
      [type] =&gt; 2
      [message] =&gt; fopen(api/v3/Country/Getfields.php): failed to open stream: No such file or directory
      [file] =&gt; /home/user/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/File.php
      [line] =&gt; 417
  )
  </code></pre>
  <p>Because in fact there is no file at api/v3/Country/Getfields.php, trying to fopen it causes an error. Can anyone decipher this for me?</p>
  <p>Edit: This is on Civicrm 5.36.1 and Wordpress 5.7.2.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-09T09:11:24.133Z
Comments.Text: What version of CiviCRM are you running?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-09T11:45:11.397Z
Comments.Text: Edited to add version.
Comments.UserDisplayName: twowheeler
Tags: <civimail><opt-out>
Title: opt-out triggers "There was an error in your request"
ThreadText: # opt-out triggers "There was an error in your request"
  
  (Asked by: username_0 on 2021-06-09)
  
  People who click on an opt-out URL in our civimail get an error screen like "Sorry, due to an error, we are unable to fulfill your request at the moment." The ReportError extension captures a backtrace that I stored on pastebin here. I verified that this error is coming from real humans trying to opt out, not from bots.
  This part is confusing:
  Array
  (
      [type] => 2
      [message] => fopen(api/v3/Country/Getfields.php): failed to open stream: No such file or directory
      [file] => /home/user/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/File.php
      [line] => 417
  )
  
  Because in fact there is no file at api/v3/Country/Getfields.php, trying to fopen it causes an error. Can anyone decipher this for me?
  Edit: This is on Civicrm 5.36.1 and Wordpress 5.7.2.
  
  **Tags:** civimail, opt-out
  
  > **Comments:**
  > **username_1**: What version of CiviCRM are you running?  
  > **username_0**: Edited to add version.  
  
  ---
  
  ## 0 answers
  
  