Answers.Body: <p>I figured it out with the help of the back trace from the error.</p>
  
  <p>It was the CiviAlerts extension which I had installed apparently, I really liked this CiviAlerts too because it let me give my mail admins a message window to see when I wanted all of them to do something differently (like use a different smart group for example in a mailing).</p>
  
  <p>Anyway I just went in and turned off that Extension then redid my test and guess what?  The form showed up with the email (and a few asterisks) and a confirmation page.  Problem solved.  Thanks for the assistance.</p>
  
  <p>The changes described in this Pull Request for the CiviAlerts extensions <em>should</em> resolve the issue: <a href="https://github.com/mr-vara/me.vara.civialerts/pull/1" rel="nofollow noreferrer">https://github.com/mr-vara/me.vara.civialerts/pull/1</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-13T22:37:48.307Z
Answers.Text: How do I implement these changes?  I am baffled how to do it,  I tried CLONE and that does not get the changes.  And I do not have a very good understanding of GIT
Answers.UserDisplayName: Webmaster TheCMG
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-17T22:18:15.363Z
Answers.Text: No problem - if you implement the changes from this PR (https://github.com/mr-vara/me.vara.civialerts/pull/1) you can re-enable the CiviAlerts extension.
Answers.UserDisplayName: HomoTechsual
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-17T22:17:22.627Z
Answers.LastActivityDate: 2018-05-20T20:03:27.710Z
Answers.LastEditDate: 2018-05-20T20:03:27.710Z
Answers.UserDisplayName: Webmaster TheCMG
Body: <p>If the Civi user isn’t logged into their account then they get the following error when clicking token inside their email footer:</p>
  <blockquote>
  <p>Sorry, due to an error, we are unable to fulfill your request at the moment. &gt;</p>
  <p>You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.</p>
  <p>A fatal error was triggered: is not of type Text</p>
  <p>Return to home page.</p>
  </blockquote>
  <p>The link being generated in the mailing is:</p>
  <p><code>https://example.org/civicrm/mailing/optout?reset=1&amp;jid=15266&amp;qid=6919138&amp;h=e77ea82acfec8278</code></p>
  <p><strong>Is this expected behavior?</strong></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-13T22:36:45.463Z
Comments.Text: How do I get the newest version of CiviAlerts? I am baffled by GIT and how this is supposed to work.  I have tried CLONE but that does not get these changes.  I have tried PULL and that does not work either. I am frustrated and do not know how to get this extension !
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:00:29.730Z
Comments.Text: Can you include an example of the link which is being placed in the footer? Replace the URL with "example.com", also replace any Contact ID or Checksum present in the URL (<CID> and <CHECKSUM> would work to replace where these are printed in the URL)
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:05:51.290Z
Comments.Text: It’s just the url generated by the system with a checksum that shows as a hyperlink in the email. You want that whole string? It works and shows a confirm form only if I’m logged into the drupal account but if I click log out then go back to the email and click the hyperlink then I get a horrible error that is super unfriendly to the end user. I’d rather it just instructed them to log in before hand.
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:07:28.833Z
Comments.Text: This is the url:  https://example.org/civicrm/mailing/optout?reset=1&jid=15266&qid=6919138&h=e77ea82acfec8278
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:27:03.727Z
Comments.Text: Thanks @WebmasterTheCMG can you provide the CiviCRM and Drupal versions and confirm that anonymous users have the _CiviMail: access CiviMail subscribe/unsubscribe pages_ permission on the Admin -> People -> Permissions screen in Drupal?
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:30:07.470Z
Comments.Text: Yes the flag is on and I did look there first. Drupal 7.59 and Civi 5.1.0 are version numbers. These are current releases.
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:38:11.370Z
Comments.Text: Can you provide a backtrace of the error (you may need to go through the backtrace to redact any confidential information about your environment). https://docs.civicrm.org/sysadmin/en/latest/troubleshooting/ I know it's probably frustrating that I'm not giving you solutions or answers - but need to understand what's going on first!
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:40:50.793Z
Comments.Text: I do not have backtrace turned on in debugging. Not sure what that would do for you to help answer. Yes it seems that way. I would guess others have this happen too in their Civi mail
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:42:17.817Z
Comments.Text: We've got 8 Civi 5.1.2 + Drupal 7.59 sites in production I've tried to reproduce this on 3 sites with no luck.
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:44:45.597Z
Comments.Text: Then you are perfect one to answer it. Not sure what info you still need. We have a very vanilla install without tons of customizations or hand coding of any kind. Upgrades have been easy.
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:46:48.680Z
Comments.Text: Ideally the backtrace if you can turn it on and reproduce the error - it'll point us perfectly to where the error is being triggered - I know it's a pain and I'm sorry for that for what it's worth!
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:56:55.300Z
Comments.Text: Ok I will turn on. Then where is log located?
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:57:35.580Z
Comments.Text: Assuming defaults - sites/default/files/civicrm/ConfigAndLog
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T21:58:17.123Z
Comments.Text: Here is the error now :
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T22:05:41.117Z
Comments.Text: Sorry - no error in that comment - pasting the error won't work - you'd need to use (e.g. pastebin or GitHub Gist)
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T22:06:44.413Z
Comments.Text: I’m having trouble doing this on mobile
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T22:07:47.570Z
Comments.Text: Oh - that's understandable - post it when you can and I'll keep tabs on the issue.
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T22:10:58.020Z
Comments.Text: Sorry I was trying to figure out how to log into this forum from my computer and was using the app.  Of course nothing is easy.
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T22:11:50.347Z
Comments.Text: https://pastebin.com/wsyL3Ufn
Comments.UserDisplayName: Webmaster TheCMG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T22:14:58.650Z
Comments.Text: Can you try disabling the CiviAlerts extension - this is known to cause problems for unauthenticated users (https://github.com/mr-vara/me.vara.civialerts/pull/1)
Comments.UserDisplayName: HomoTechsual
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T22:27:48.980Z
Comments.Text: Nice support HT
Comments.UserDisplayName: petednz - fuzion
Tags: <drupal><civimail><email>
Title: Unsubscribe error message
ThreadText: # Unsubscribe error message
  
  (Asked by: username_0 on 2018-05-17)
  
  If the Civi user isn’t logged into their account then they get the following error when clicking token inside their email footer:
  
  > Sorry, due to an error, we are unable to fulfill your request at the moment. >
  >
  > You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
  >
  > A fatal error was triggered: is not of type Text
  >
  > Return to home page.
  
  The link being generated in the mailing is:
  
  `https://example.org/civicrm/mailing/optout?reset=1&jid=15266&qid=6919138&h=e77ea82acfec8278`
  
  **Is this expected behavior?**
  
  **Tags:** drupal, civimail, email
  
  > **Comments:**
  > **username_1**: Can you include an example of the link which is being placed in the footer? Replace the URL with "example.com", also replace any Contact ID or Checksum present in the URL (<CID> and <CHECKSUM> would work to replace where these are printed in the URL)  
  > **username_0**: It’s just the url generated by the system with a checksum that shows as a hyperlink in the email. You want that whole string? It works and shows a confirm form only if I’m logged into the drupal account but if I click log out then go back to the email and click the hyperlink then I get a horrible error that is super unfriendly to the end user. I’d rather it just instructed them to log in before hand.  
  > **username_0**: This is the url:  https://example.org/civicrm/mailing/optout?reset=1&jid=15266&qid=6919138&h=e77ea82acfec8278  
  > **username_1**: Thanks @WebmasterTheCMG can you provide the CiviCRM and Drupal versions and confirm that anonymous users have the _CiviMail: access CiviMail subscribe/unsubscribe pages_ permission on the Admin -> People -> Permissions screen in Drupal?  
  > **username_0**: Yes the flag is on and I did look there first. Drupal 7.59 and Civi 5.1.0 are version numbers. These are current releases.  
  > **username_1**: Can you provide a backtrace of the error (you may need to go through the backtrace to redact any confidential information about your environment). https://docs.civicrm.org/sysadmin/en/latest/troubleshooting/ I know it's probably frustrating that I'm not giving you solutions or answers - but need to understand what's going on first!  
  > **username_0**: I do not have backtrace turned on in debugging. Not sure what that would do for you to help answer. Yes it seems that way. I would guess others have this happen too in their Civi mail  
  > **username_1**: We've got 8 Civi 5.1.2 + Drupal 7.59 sites in production I've tried to reproduce this on 3 sites with no luck.  
  > **username_0**: Then you are perfect one to answer it. Not sure what info you still need. We have a very vanilla install without tons of customizations or hand coding of any kind. Upgrades have been easy.  
  > **username_1**: Ideally the backtrace if you can turn it on and reproduce the error - it'll point us perfectly to where the error is being triggered - I know it's a pain and I'm sorry for that for what it's worth!  
  > **username_0**: Ok I will turn on. Then where is log located?  
  > **username_1**: Assuming defaults - sites/default/files/civicrm/ConfigAndLog  
  > **username_0**: Here is the error now :  
  > **username_1**: Sorry - no error in that comment - pasting the error won't work - you'd need to use (e.g. pastebin or GitHub Gist)  
  > **username_0**: I’m having trouble doing this on mobile  
  > **username_1**: Oh - that's understandable - post it when you can and I'll keep tabs on the issue.  
  > **username_0**: Sorry I was trying to figure out how to log into this forum from my computer and was using the app.  Of course nothing is easy.  
  > **username_0**: https://pastebin.com/wsyL3Ufn  
  > **username_1**: Can you try disabling the CiviAlerts extension - this is known to cause problems for unauthenticated users (https://github.com/mr-vara/me.vara.civialerts/pull/1)  
  > **username_2**: Nice support HT  
  > **username_0**: How do I get the newest version of CiviAlerts? I am baffled by GIT and how this is supposed to work.  I have tried CLONE but that does not get these changes.  I have tried PULL and that does not work either. I am frustrated and do not know how to get this extension !  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-05-17. Score: 4
  
  I figured it out with the help of the back trace from the error.
  
  It was the CiviAlerts extension which I had installed apparently, I really liked this CiviAlerts too because it let me give my mail admins a message window to see when I wanted all of them to do something differently (like use a different smart group for example in a mailing).
  
  Anyway I just went in and turned off that Extension then redid my test and guess what? The form showed up with the email (and a few asterisks) and a confirmation page. Problem solved. Thanks for the assistance.
  
  The changes described in this Pull Request for the CiviAlerts extensions *should* resolve the issue: <https://github.com/mr-vara/me.vara.civialerts/pull/1>
  
  > **Comments:**
  > **username_1**: No problem - if you implement the changes from this PR (https://github.com/mr-vara/me.vara.civialerts/pull/1) you can re-enable the CiviAlerts extension.  
  > **username_0**: How do I implement these changes?  I am baffled how to do it,  I tried CLONE and that does not get the changes.  And I do not have a very good understanding of GIT  
  
  ---
  
  