Answers.Body: <p>Can you try updating the version of flexmailer extension to latest from <a href="https://github.com/civicrm/org.civicrm.flexmailer" rel="nofollow noreferrer">https://github.com/civicrm/org.civicrm.flexmailer</a>?</p>
  
  <p>I think this problem was resolved via <a href="https://github.com/civicrm/org.civicrm.flexmailer/pull/33" rel="nofollow noreferrer">https://github.com/civicrm/org.civicrm.flexmailer/pull/33</a> and related PRs.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-06T08:45:26.370Z
Answers.Text: Thanks. I think the issue was with combination of flexmailer & tradition settings. Once I have changed the mailhandler to flexmailer it started working.
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-06T08:30:06.207Z
Answers.LastActivityDate: 2019-08-06T08:30:06.207Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>I am on civi 5.14.2 drupal 7.x flexmailer &amp; mosaico 2.x installed. It used to be working so far and all of a sudden it stopped working!! This email was sent using &quot;traditional&quot; link. Any idea what could go wrong? Here is the message I receive..</p>
  <pre><code> 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.
  </code></pre>
  <p><code>Expected one Contact but found 0</code></p>
  <p>EDIT:getting debug message in drupal</p>
  <blockquote>
  <p>$Fatal Error Details = array(3) { [&quot;message&quot;]=&gt; string(32) &quot;Expected one Contact but found 0&quot; [&quot;code&quot;]=&gt; NULL [&quot;exception&quot;]=&gt; object(CiviCRM_API3_Exception)#221 (8) { [&quot;extraParams&quot;:&quot;CiviCRM_API3_Exception&quot;:private]=&gt; array(3) { [&quot;is_error&quot;]=&gt; int(1) [&quot;error_message&quot;]=&gt; string(32) &quot;Expected one Contact but found 0&quot; [&quot;error_code&quot;]=&gt; string(9) &quot;undefined&quot; } [&quot;message&quot;:protected]=&gt; string(32) &quot;Expected one Contact but found 0&quot; [&quot;string&quot;:&quot;Exception&quot;:private]=&gt; string(0) &quot;&quot; [&quot;code&quot;:protected]=&gt; int(0) [&quot;file&quot;:protected]=&gt; string(68) &quot;/home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/api.php&quot; [&quot;line&quot;:protected]=&gt; int(45) [&quot;trace&quot;:&quot;Exception&quot;:private]=&gt; array(7) { [0]=&gt; array(4) { [&quot;file&quot;]=&gt; string(82) &quot;/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Mailing/Page/View.php&quot; [&quot;line&quot;]=&gt; int(145) [&quot;function&quot;]=&gt; string(12) &quot;civicrm_api3&quot; [&quot;args&quot;]=&gt; array(3) { [0]=&gt; string(7) &quot;Mailing&quot; [1]=&gt; string(7) &quot;preview&quot; [2]=&gt; array(3) { [&quot;id&quot;]=&gt; string(3) &quot;477&quot; [&quot;contact_id&quot;]=&gt; int(0) [&quot;version&quot;]=&gt; int(3) } } } [1]=&gt; array(6) { [&quot;file&quot;]=&gt; string(76) &quot;/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php&quot; [&quot;line&quot;]=&gt; int(311) [&quot;function&quot;]=&gt; string(3) &quot;run&quot; [&quot;class&quot;]=&gt; string(21) &quot;CRM_Mailing_Page_View&quot; [&quot;type&quot;]=&gt; string(2) &quot;-&gt;&quot; [&quot;args&quot;]=&gt; array(2) { [0]=&gt; array(3) { [0]=&gt; string(7) &quot;civicrm&quot; [1]=&gt; string(7) &quot;mailing&quot; [2]=&gt; string(4) &quot;view&quot; } [1]=&gt; NULL } } [2]=&gt; array(6) { [&quot;file&quot;]=&gt; string(76) &quot;/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php&quot; [&quot;line&quot;]=&gt; int(85) [&quot;function&quot;]=&gt; string(7) &quot;runItem&quot; [&quot;class&quot;]=&gt; string(15) &quot;CRM_Core_Invoke&quot; [&quot;type&quot;]=&gt; string(2) &quot;::&quot; [&quot;args&quot;]=&gt; array(1) { [0]=&gt; array(15) { [&quot;id&quot;]=&gt; string(3) &quot;376&quot; [&quot;domain_id&quot;]=&gt; string(1) &quot;1&quot; [&quot;path&quot;]=&gt; string(20) &quot;civicrm/mailing/view&quot; [&quot;title&quot;]=&gt; string(12) &quot;View Mailing&quot; [&quot;access_callback&quot;]=&gt; array(2) { [0]=&gt; string(19) &quot;CRM_Core_Permission&quot; [1]=&gt; string(9) &quot;checkMenu&quot; } [&quot;access_arguments&quot;]=&gt; array(2) { [0]=&gt; array(3) { [0]=&gt; string(28) &quot;view public CiviMail content&quot; [1]=&gt; string(15) &quot;access CiviMail&quot; [2]=&gt; string(16) &quot;approve mailings&quot; } [1]=&gt; string(2) &quot;or&quot; } [&quot;page_callback&quot;]=&gt; string(21) &quot;CRM_Mailing_Page_View&quot; [&quot;breadcrumb&quot;]=&gt; array(2) { [0]=&gt; array(2) { [&quot;title&quot;]=&gt; string(7) &quot;CiviCRM&quot; [&quot;url&quot;]=&gt; string(16) &quot;/civicrm?reset=1&quot; } [1]=&gt; array(2) { [&quot;title&quot;]=&gt; string(8) &quot;CiviMail&quot; [&quot;url&quot;]=&gt; string(24) &quot;/civicrm/mailing?reset=1&quot; } } [&quot;component_id&quot;]=&gt; string(1) &quot;4&quot; [&quot;is_public&quot;]=&gt; string(1) &quot;1&quot; [&quot;is_ssl&quot;]=&gt; string(1) &quot;0&quot; [&quot;weight&quot;]=&gt; string(3) &quot;800&quot; [&quot;type&quot;]=&gt; string(1) &quot;1&quot; [&quot;page_type&quot;]=&gt; string(1) &quot;0&quot; [&quot;page_arguments&quot;]=&gt; bool(false) } } } [3]=&gt; array(6) { [&quot;file&quot;]=&gt; string(76) &quot;/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php&quot; [&quot;line&quot;]=&gt; int(52) [&quot;function&quot;]=&gt; string(7) &quot;_invoke&quot; [&quot;class&quot;]=&gt; string(15) &quot;CRM_Core_Invoke&quot; [&quot;type&quot;]=&gt; string(2) &quot;::&quot; [&quot;args&quot;]=&gt; array(1) { [0]=&gt; array(3) { [0]=&gt; string(7) &quot;civicrm&quot; [1]=&gt; string(7) &quot;mailing&quot; [2]=&gt; string(4) &quot;view&quot; } } } [4]=&gt; array(6) { [&quot;file&quot;]=&gt; string(78) &quot;/home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module&quot; [&quot;line&quot;]=&gt; int(444) [&quot;function&quot;]=&gt; string(6) &quot;invoke&quot; [&quot;class&quot;]=&gt; string(15) &quot;CRM_Core_Invoke&quot; [&quot;type&quot;]=&gt; string(2) &quot;::&quot; [&quot;args&quot;]=&gt; array(1) { [0]=&gt; array(3) { [0]=&gt; string(7) &quot;civicrm&quot; [1]=&gt; string(7) &quot;mailing&quot; [2]=&gt; string(4) &quot;view&quot; } } } [5]=&gt; array(4) { [&quot;file&quot;]=&gt; string(48) &quot;/home/webadmin/public_html/cmm/includes/menu.inc&quot; [&quot;line&quot;]=&gt; int(527) [&quot;function&quot;]=&gt; string(14) &quot;civicrm_invoke&quot; [&quot;args&quot;]=&gt; array(2) { [0]=&gt; string(7) &quot;mailing&quot; [1]=&gt; string(4) &quot;view&quot; } } [6]=&gt; array(4) { [&quot;file&quot;]=&gt; string(40) &quot;/home/webadmin/public_html/cmm/index.php&quot; [&quot;line&quot;]=&gt; int(21) [&quot;function&quot;]=&gt; string(27) &quot;menu_execute_active_handler&quot; [&quot;args&quot;]=&gt; array(0) { } } } [&quot;previous&quot;:&quot;Exception&quot;:private]=&gt; NULL } }</p>
  <p>$backTrace = #0 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Error.php(463): CRM_Core_Error::backtrace(&quot;backTrace&quot;, TRUE) #1 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(55): CRM_Core_Error::handleUnhandledException(Object(CiviCRM_API3_Exception)) #2 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module(444): CRM_Core_Invoke::invoke((Array:3)) #3 /home/webadmin/public_html/cmm/includes/menu.inc(527): civicrm_invoke(&quot;mailing&quot;, &quot;view&quot;) #4 /home/webadmin/public_html/cmm/index.php(21): menu_execute_active_handler() #5 {main}</p>
  </blockquote>
  
Tags: <civimail><error><tokens>
Title: CiviMail "View in Browser" Link Error
ThreadText: # CiviMail "View in Browser" Link Error
  
  (Asked by: username_0 on 2019-08-06)
  
  I am on civi 5.14.2 drupal 7.x flexmailer & mosaico 2.x installed. It used to be working so far and all of a sudden it stopped working!! This email was sent using "traditional" link. Any idea what could go wrong? Here is the message I receive..
   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.
  
  Expected one Contact but found 0
  EDIT:getting debug message in drupal
  
  $Fatal Error Details = array(3) { ["message"]=> string(32) "Expected one Contact but found 0" ["code"]=> NULL ["exception"]=> object(CiviCRM_API3_Exception)#221 (8) { ["extraParams":"CiviCRM_API3_Exception":private]=> array(3) { ["is_error"]=> int(1) ["error_message"]=> string(32) "Expected one Contact but found 0" ["error_code"]=> string(9) "undefined" } ["message":protected]=> string(32) "Expected one Contact but found 0" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(68) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/api.php" ["line":protected]=> int(45) ["trace":"Exception":private]=> array(7) { [0]=> array(4) { ["file"]=> string(82) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Mailing/Page/View.php" ["line"]=> int(145) ["function"]=> string(12) "civicrm_api3" ["args"]=> array(3) { [0]=> string(7) "Mailing" [1]=> string(7) "preview" [2]=> array(3) { ["id"]=> string(3) "477" ["contact_id"]=> int(0) ["version"]=> int(3) } } } [1]=> array(6) { ["file"]=> string(76) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php" ["line"]=> int(311) ["function"]=> string(3) "run" ["class"]=> string(21) "CRM_Mailing_Page_View" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> array(3) { [0]=> string(7) "civicrm" [1]=> string(7) "mailing" [2]=> string(4) "view" } [1]=> NULL } } [2]=> array(6) { ["file"]=> string(76) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php" ["line"]=> int(85) ["function"]=> string(7) "runItem" ["class"]=> string(15) "CRM_Core_Invoke" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> array(15) { ["id"]=> string(3) "376" ["domain_id"]=> string(1) "1" ["path"]=> string(20) "civicrm/mailing/view" ["title"]=> string(12) "View Mailing" ["access_callback"]=> array(2) { [0]=> string(19) "CRM_Core_Permission" [1]=> string(9) "checkMenu" } ["access_arguments"]=> array(2) { [0]=> array(3) { [0]=> string(28) "view public CiviMail content" [1]=> string(15) "access CiviMail" [2]=> string(16) "approve mailings" } [1]=> string(2) "or" } ["page_callback"]=> string(21) "CRM_Mailing_Page_View" ["breadcrumb"]=> array(2) { [0]=> array(2) { ["title"]=> string(7) "CiviCRM" ["url"]=> string(16) "/civicrm?reset=1" } [1]=> array(2) { ["title"]=> string(8) "CiviMail" ["url"]=> string(24) "/civicrm/mailing?reset=1" } } ["component_id"]=> string(1) "4" ["is_public"]=> string(1) "1" ["is_ssl"]=> string(1) "0" ["weight"]=> string(3) "800" ["type"]=> string(1) "1" ["page_type"]=> string(1) "0" ["page_arguments"]=> bool(false) } } } [3]=> array(6) { ["file"]=> string(76) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php" ["line"]=> int(52) ["function"]=> string(7) "_invoke" ["class"]=> string(15) "CRM_Core_Invoke" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> array(3) { [0]=> string(7) "civicrm" [1]=> string(7) "mailing" [2]=> string(4) "view" } } } [4]=> array(6) { ["file"]=> string(78) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module" ["line"]=> int(444) ["function"]=> string(6) "invoke" ["class"]=> string(15) "CRM_Core_Invoke" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> array(3) { [0]=> string(7) "civicrm" [1]=> string(7) "mailing" [2]=> string(4) "view" } } } [5]=> array(4) { ["file"]=> string(48) "/home/webadmin/public_html/cmm/includes/menu.inc" ["line"]=> int(527) ["function"]=> string(14) "civicrm_invoke" ["args"]=> array(2) { [0]=> string(7) "mailing" [1]=> string(4) "view" } } [6]=> array(4) { ["file"]=> string(40) "/home/webadmin/public_html/cmm/index.php" ["line"]=> int(21) ["function"]=> string(27) "menu_execute_active_handler" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL } }
  $backTrace = #0 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Error.php(463): CRM_Core_Error::backtrace("backTrace", TRUE) #1 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(55): CRM_Core_Error::handleUnhandledException(Object(CiviCRM_API3_Exception)) #2 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module(444): CRM_Core_Invoke::invoke((Array:3)) #3 /home/webadmin/public_html/cmm/includes/menu.inc(527): civicrm_invoke("mailing", "view") #4 /home/webadmin/public_html/cmm/index.php(21): menu_execute_active_handler() #5 {main}
  
  **Tags:** civimail, error, tokens
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-06. Score: 2 | Accepted answer
  
  Can you try updating the version of flexmailer extension to latest from <https://github.com/civicrm/org.civicrm.flexmailer>?
  
  I think this problem was resolved via <https://github.com/civicrm/org.civicrm.flexmailer/pull/33> and related PRs.
  
  > **Comments:**
  > **username_0**: Thanks. I think the issue was with combination of flexmailer & tradition settings. Once I have changed the mailhandler to flexmailer it started working.  
  
  ---
  
  