Answers.Body: <p>This patch fixes the problem for me: <a href="https://github.com/civicrm/civicrm-core/pull/6900" rel="nofollow">https://github.com/civicrm/civicrm-core/pull/6900</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-09T13:34:33.900Z
Answers.LastActivityDate: 2015-10-09T13:34:33.900Z
Answers.UserDisplayName: Borislav Zlatanov
Body: <p><a href="https://i.sstatic.net/ziIF6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ziIF6.png" alt="Returning from paypal, with debug enable, there is nothing shown and it says that an e-mail should be sent, but no email is received"></a></p>
  
  <p>CiviCRM 4.6.5 and WordPress 4.2.4</p>
  
  <p>When the payment processor Paypal Standard is chosen, the receipt is not being sent.</p>
  
  <p>When returning from paypal, it goes onto the thank you page and the payment is marked as completed, so everything is fine for the payment processor.</p>
  
  <p>When I choose "Pay later", the receipt is sent so the e-mail processor is fine too.</p>
  
  <p>What could cause this issue?</p>
  
  <p>Seems related to this issue: <a href="https://issues.civicrm.org/jira/browse/CRM-15629" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-15629</a></p>
  
  <p>But it was supposed to be fixed in 4.6.3</p>
  
  <p>Thanks.</p>
  
  <p>This is what I get in the ConfigAndLog file:</p>
  
  <blockquote>
    <p>Aug 25 12:00:17  [info] Contribution record updated successfully</p>
    
    <p>Aug 25 08:00:21  [info] $Fatal Error Details = Array (
        [message] => 
        [code] =>  )</p>
    
    <p>Aug 25 08:00:21  [info] $backTrace = #0
    /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(364):
    CRM_Core_Error::backtrace("backTrace", TRUE) 
    #1 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php(1018):
    CRM_Core_Error::fatal()
    #2 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Task/Invoice.php(478):
    CRM_Core_DAO::getFieldValue("CRM_Contact_DAO_Contact", NULL,
    "display_name")
    #3 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/ContributionPage.php(922):
    CRM_Contribute_Form_Task_Invoice::printPDF((Array:1), (Array:2),
    (Array:1), NULL)
    #4 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php(508):
    CRM_Contribute_BAO_ContributionPage::addInvoicePdfToEmail("398", "2")
    #5 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/ContributionPage.php(412):
    CRM_Core_BAO_MessageTemplate::sendTemplate((Array:13))
    #6 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/Contribution.php(2291):
    CRM_Contribute_BAO_ContributionPage::sendMail("2", (Array:36), FALSE,
    FALSE)
    #7 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/BaseIPN.php(853):
    CRM_Contribute_BAO_Contribution->composeMessageArray((Array:28),
    (Array:9), (Array:36), FALSE, FALSE)
    #8 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/BaseIPN.php(788):
    CRM_Core_Payment_BaseIPN->sendMail((Array:28), (Array:9), (Array:7),
    (Array:36), FALSE, FALSE)
    #9 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/PayPalIPN.php(290):
    CRM_Core_Payment_BaseIPN->completeTransaction((Array:28), (Array:9),
    (Array:7), Object(CRM_Core_Transaction), FALSE)
    #10 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/PayPalIPN.php(343):
    CRM_Core_Payment_PayPalIPN->single((Array:28), (Array:9), (Array:7),
    FALSE, FALSE)
    #11 /home2/sherbro3/public_html/wp-content/plugins/civicrm/civicrm/extern/ipn.php(52):
    CRM_Core_Payment_PayPalIPN->main()
    #12 {main}</p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-19T15:59:38.493Z
Comments.Text: Seems like an issue with the PayPal IPN not being received? ps: updated the title because seems like this is from CiviContribute, and using PayPal Standard, which is very different from PayPal Pro.
Comments.UserDisplayName: bgm
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-19T16:10:11.550Z
Comments.Text: Forgot to mention: IPNs should be logged in the ConfigAndLog directory of CiviCRM.
Comments.UserDisplayName: bgm
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-19T21:32:11.383Z
Comments.Text: Actually you will see entries in civicrm_system_log table for ipns
Comments.UserDisplayName: eileen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-24T15:02:12.893Z
Comments.Text: The IPN is received by CiviCRM since the payment is marked as complete. Where can I see the IPN log, not sure I understand.
Comments.UserDisplayName: Francis Poisson
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-25T11:59:56.573Z
Comments.Text: I have updated to CiviCRM 4.6.7 and Wordpress 4.3. Still the same thing.
Comments.UserDisplayName: Francis Poisson
Tags: <wordpress><civicontribute><paypal><4.6><ipn>
Title: Why is no Receipt is being sent for a Contribution when using PayPal Standard?
ThreadText: # Why is no Receipt is being sent for a Contribution when using PayPal Standard?
  
  (Asked by: username_0 on 2015-08-17)
  
  [![Returning from paypal, with debug enable, there is nothing shown and it says that an e-mail should be sent, but no email is received](https://i.sstatic.net/ziIF6.png)](https://i.sstatic.net/ziIF6.png)
  
  CiviCRM 4.6.5 and WordPress 4.2.4
  
  When the payment processor Paypal Standard is chosen, the receipt is not being sent.
  
  When returning from paypal, it goes onto the thank you page and the payment is marked as completed, so everything is fine for the payment processor.
  
  When I choose "Pay later", the receipt is sent so the e-mail processor is fine too.
  
  What could cause this issue?
  
  Seems related to this issue: <https://issues.civicrm.org/jira/browse/CRM-15629>
  
  But it was supposed to be fixed in 4.6.3
  
  Thanks.
  
  This is what I get in the ConfigAndLog file:
  
  > Aug 25 12:00:17 [info] Contribution record updated successfully
  >
  > Aug 25 08:00:21 [info] $Fatal Error Details = Array (
  > [message] =>
  > [code] => )
  >
  > Aug 25 08:00:21 [info] $backTrace = #0
  > /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(364):
  > CRM\_Core\_Error::backtrace("backTrace", TRUE)
  > #1 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php(1018):
  > CRM\_Core\_Error::fatal()
  > #2 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Task/Invoice.php(478):
  > CRM\_Core\_DAO::getFieldValue("CRM\_Contact\_DAO\_Contact", NULL,
  > "display\_name")
  > #3 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/ContributionPage.php(922):
  > CRM\_Contribute\_Form\_Task\_Invoice::printPDF((Array:1), (Array:2),
  > (Array:1), NULL)
  > #4 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php(508):
  > CRM\_Contribute\_BAO\_ContributionPage::addInvoicePdfToEmail("398", "2")
  > #5 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/ContributionPage.php(412):
  > CRM\_Core\_BAO\_MessageTemplate::sendTemplate((Array:13))
  > #6 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/Contribution.php(2291):
  > CRM\_Contribute\_BAO\_ContributionPage::sendMail("2", (Array:36), FALSE,
  > FALSE)
  > #7 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/BaseIPN.php(853):
  > CRM\_Contribute\_BAO\_Contribution->composeMessageArray((Array:28),
  > (Array:9), (Array:36), FALSE, FALSE)
  > #8 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/BaseIPN.php(788):
  > CRM\_Core\_Payment\_BaseIPN->sendMail((Array:28), (Array:9), (Array:7),
  > (Array:36), FALSE, FALSE)
  > #9 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/PayPalIPN.php(290):
  > CRM\_Core\_Payment\_BaseIPN->completeTransaction((Array:28), (Array:9),
  > (Array:7), Object(CRM\_Core\_Transaction), FALSE)
  > #10 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment/PayPalIPN.php(343):
  > CRM\_Core\_Payment\_PayPalIPN->single((Array:28), (Array:9), (Array:7),
  > FALSE, FALSE)
  > #11 /home2/sherbro3/public\_html/wp-content/plugins/civicrm/civicrm/extern/ipn.php(52):
  > CRM\_Core\_Payment\_PayPalIPN->main()
  > #12 {main}
  
  **Tags:** wordpress, civicontribute, paypal, 4.6, ipn
  
  > **Comments:**
  > **username_1**: Seems like an issue with the PayPal IPN not being received? ps: updated the title because seems like this is from CiviContribute, and using PayPal Standard, which is very different from PayPal Pro.  
  > **username_1**: Forgot to mention: IPNs should be logged in the ConfigAndLog directory of CiviCRM.  
  > **username_2**: Actually you will see entries in civicrm_system_log table for ipns  
  > **username_0**: The IPN is received by CiviCRM since the payment is marked as complete. Where can I see the IPN log, not sure I understand.  
  > **username_0**: I have updated to CiviCRM 4.6.7 and Wordpress 4.3. Still the same thing.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2015-10-09. Score: 2 | Accepted answer
  
  This patch fixes the problem for me: <https://github.com/civicrm/civicrm-core/pull/6900>
  
  
  ---
  
  