Answers.Body: <p>There's <a href="https://issues.civicrm.org/jira/browse/CRM-15629" rel="nofollow">a bug report</a> that sounds like the same issue - it's because the WordPress wp-load.php file isn't getting bootstrapped properly in some circumstances. I had a similar problem and used <a href="https://issues.civicrm.org/jira/browse/CRM-15629?focusedCommentId=70604&amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-70604" rel="nofollow">Brian Shaughnessy's fix</a>, which worked - but Kevin Cristiano <a href="https://issues.civicrm.org/jira/browse/CRM-15629?focusedCommentId=71849&amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-71849" rel="nofollow">reported</a> that he needed to also alter an IPN file.</p>
  
  <p>I got fed up with counting relative directories, so my actual code in CRM_Core_Permission_WordPress was:</p>
  
  <pre><code>    if (!defined(ABSPATH) || !defined(WPINC)) {
        $path = $_SERVER['DOCUMENT_ROOT'];
        $path .= "/wp-load.php";
        require_once($path); 
      } 
  </code></pre>
  
  <p>Obviously alter the location as your setup requires...</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-07T15:51:21.100Z
Answers.Text: wait - I just spotted that you *are* Kevin Cristiano :-) so presumably this fix wasn't enough?
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-07T12:33:00.950Z
Answers.LastActivityDate: 2015-04-07T12:33:00.950Z
Answers.UserDisplayName: Andrew West
Answers.Body: <p>I think we have the same issue in Drupal CiviCRM 4.5.5. PayPal IPN history shows the notifications are being sent through, but nothing is being recorded or updated in CiviCRM.</p>
  
  <p>Thesee are recurring contributions which were previously set-up successfully.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-24T12:01:48.480Z
Answers.Text: I've just spoken to PayPal today. If you have a recurring payment (or subscription) set up previously on an old domain you can't update the URL the IPN notifications are being sent to!
  
  Only new payments will receive the IPN to the right URL.
Answers.UserDisplayName: Jon-man
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-11T10:34:09.817Z
Answers.LastActivityDate: 2015-06-11T10:34:09.817Z
Answers.UserDisplayName: Jon-man
Answers.Body: <p>Currently this is working on my development site:</p>
  
  <p>Code removed as the actual solution is now in CiviCRM v 4.6.3</p>
  
  <p>The first part is gets the payment status to flip to completed, the second section lets the IPN call back complete and send the email.   This is by no means perfect as if wp-load.php is NOT in the doc root it will fail.</p>
  
  <p>It is a working solution for now.  Will comment if a better more flexible solution can be found</p>
  
  <p>Patches for this problem are documented here:  <a href="https://issues.civicrm.org/jira/browse/CRM-15629" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-15629</a></p>
  
  <p>CiviCRM version 4.6.3 for WordPress fixes the issue</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T19:05:14.600Z
Answers.Text: Just wanted to note that a dynamic solution is proposed and I am hoping will be in version 4.6.3.  See https://github.com/civicrm/civicrm-core/pull/5751 and https://github.com/civicrm/civicrm-wordpress/pull/75
Answers.UserDisplayName: Kevin Cristiano
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-30T15:14:21.347Z
Answers.LastActivityDate: 2015-05-20T14:50:14.643Z
Answers.LastEditDate: 2015-05-20T14:50:14.643Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>I have a site that is using PayPal Standard as their Payment Processor and WordPress as the CMS.   After the upgrade from 4.4.x to 4.5.8 Recurring Payments are no longer working.</p>
  
  <p>Could this be related to issues where the PayPal IPN callback fails?  I suspect that the issue is that PayPal is not communicating properly with the site.  Where can we find the code that would handle this?   </p>
  
Tags: <wordpress>
Title: Recurring Payment Issues
ThreadText: # Recurring Payment Issues
  
  (Asked by: username_0 on 2015-04-07)
  
  I have a site that is using PayPal Standard as their Payment Processor and WordPress as the CMS. After the upgrade from 4.4.x to 4.5.8 Recurring Payments are no longer working.
  
  Could this be related to issues where the PayPal IPN callback fails? I suspect that the issue is that PayPal is not communicating properly with the site. Where can we find the code that would handle this?
  
  **Tags:** wordpress
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2015-04-30. Score: 4 | Accepted answer
  
  Currently this is working on my development site:
  
  Code removed as the actual solution is now in CiviCRM v 4.6.3
  
  The first part is gets the payment status to flip to completed, the second section lets the IPN call back complete and send the email. This is by no means perfect as if wp-load.php is NOT in the doc root it will fail.
  
  It is a working solution for now. Will comment if a better more flexible solution can be found
  
  Patches for this problem are documented here: <https://issues.civicrm.org/jira/browse/CRM-15629>
  
  CiviCRM version 4.6.3 for WordPress fixes the issue
  
  > **Comments:**
  > **username_0**: Just wanted to note that a dynamic solution is proposed and I am hoping will be in version 4.6.3.  See https://github.com/civicrm/civicrm-core/pull/5751 and https://github.com/civicrm/civicrm-wordpress/pull/75  
  
  ---
  
  ### Answer by username_1 on 2015-04-07. Score: 3
  
  There's a bug report that sounds like the same issue - it's because the WordPress wp-load.php file isn't getting bootstrapped properly in some circumstances. I had a similar problem and used Brian Shaughnessy's fix, which worked - but username_0 reported that he needed to also alter an IPN file.
  I got fed up with counting relative directories, so my actual code in CRM_Core_Permission_WordPress was:
      if (!defined(ABSPATH) || !defined(WPINC)) {
        $path = $_SERVER['DOCUMENT_ROOT'];
        $path .= "/wp-load.php";
        require_once($path); 
      } 
  
  Obviously alter the location as your setup requires...
  
  > **Comments:**
  > **username_1**: wait - I just spotted that you *are* username_0 :-) so presumably this fix wasn't enough?  
  
  ---
  
  ### Answer by username_2 on 2015-06-11. Score: 0
  
  I think we have the same issue in Drupal CiviCRM 4.5.5. PayPal IPN history shows the notifications are being sent through, but nothing is being recorded or updated in CiviCRM.
  
  Thesee are recurring contributions which were previously set-up successfully.
  
  > **Comments:**
  > **username_2**: I've just spoken to PayPal today. If you have a recurring payment (or subscription) set up previously on an old domain you can't update the URL the IPN notifications are being sent to!  Only new payments will receive the IPN to the right URL.  
  
  ---
  
  