Answers.Body: <p>In the end, I was not able to find the solution. I &quot;solved&quot; it by setting up a new site and migrating the CiviCRM data to that.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-14T19:22:24.623Z
Answers.LastActivityDate: 2020-09-14T19:22:24.623Z
Answers.UserDisplayName: kapn
Answers.Body: <p>This <a href="https://civicrm.stackexchange.com/questions/37373/cannot-upgrade-past-version-5-26-2-why-does-constant-civicrm-plugin-url-appear/37376#37376">Question</a> is related.</p>
  <p>Extensions will read the path and URL so going through the steps in taht question should help.</p>
  <p>You will need to update the stripe webhook as well.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-27T13:20:19.147Z
Answers.LastActivityDate: 2020-08-27T13:20:19.147Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>I suddenly have a path problem on one of the sites I look after. I just updated to Civi 5.28.3 and wordpress was already at 5.5. I can't swear that the problem occurred because of the upgrade though.</p>
  <p>The problem manifests itself when some URLs are built. I can see it in the webhook paths (missing the host and directory path):</p>
  <pre><code>Stripe Webhook missing or needs update! Expected webhook path is: ?civiwp=CiviCRM&amp;q=civicrm%2Fpayment%2Fipn%2F4
  </code></pre>
  <p>and I have noticed the same behaviour for various placeholders in the Mosaico extension when i use the inspector to look at the code sent to the browser.</p>
  <p>I looked at the resource path settings and they all look ok and are a match for the same settings on a working civicrm site I have.</p>
  <p><a href="https://i.sstatic.net/6LOdY.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6LOdY.jpg" alt="enter image description here" /></a></p>
  <p>I have done a slow scroll through civicrm.settings.php, but have seen nothing that seems concerning. The site was seemingly working last week before the upgrade. I suppose I could roll back, but I'd rather not if I can simply find where the path is being set and fix that.</p>
  <p>Any thoughts?</p>
  <p>UPDATE:
  I have, as suggested followed the threads in the post linked below, but all of my paths report correctly when viewed in the admin settings pages (see above) or when queried on the command line:</p>
  <pre><code>root@kaos01:/var/www/civi.sitename.org/wordpress# cv path -d [civicrm.files]
  /var/www/civi.sitename.org/wordpress/wp-content/uploads/civicrm
  root@kaos01:/var/www/civi.sitename.org/wordpress# cv url -d [civicrm.files]
  &quot;https://civi.sitename.org/wp-content/uploads/civicrm&quot;
  </code></pre>
  <p>I have also explicitly set the civicrm.files path and url variables in civicrm.settings.php</p>
  <pre><code>$civicrm_paths['civicrm.files']['path'] = '/var/www/civi.sitename.org/wordpress/wp-content/uploads/civicrm';
  $civicrm_paths['civicrm.files']['url'] = 'https://civi.sitename.org/wp-content/uploads/civicrm';
  </code></pre>
  <p>Certainly, it seems clear that the URL string is missing when needed, but I can't figure out where else to look.
  I have now discovered the problem on a second site.</p>
  <p>FURTHER UPDATE:
  Though the problem is occurring in multiple places I'm focussing on the STripe plugin as it makes it very visible. The MJWshared extension uses CRM_Utils_System::url to assemble the needed webhook url. it seems clear that CRM_Utils_System::url is not finding the base part is needs, but it is not clear to me how that function goes about finding the bits it needs.</p>
  
Tags: <wordpress><resource-urls><paths>
Title: Path problem for webhooks and other internal resources
ThreadText: # Path problem for webhooks and other internal resources
  
  (Asked by: username_0 on 2020-08-27)
  
  I suddenly have a path problem on one of the sites I look after. I just updated to Civi 5.28.3 and wordpress was already at 5.5. I can't swear that the problem occurred because of the upgrade though.
  
  The problem manifests itself when some URLs are built. I can see it in the webhook paths (missing the host and directory path):
  
  ```
  Stripe Webhook missing or needs update! Expected webhook path is: ?civiwp=CiviCRM&q=civicrm%2Fpayment%2Fipn%2F4
  
  ```
  
  and I have noticed the same behaviour for various placeholders in the Mosaico extension when i use the inspector to look at the code sent to the browser.
  
  I looked at the resource path settings and they all look ok and are a match for the same settings on a working civicrm site I have.
  
  [![enter image description here](https://i.sstatic.net/6LOdY.jpg)](https://i.sstatic.net/6LOdY.jpg)
  
  I have done a slow scroll through civicrm.settings.php, but have seen nothing that seems concerning. The site was seemingly working last week before the upgrade. I suppose I could roll back, but I'd rather not if I can simply find where the path is being set and fix that.
  
  Any thoughts?
  
  UPDATE:
  I have, as suggested followed the threads in the post linked below, but all of my paths report correctly when viewed in the admin settings pages (see above) or when queried on the command line:
  
  ```
  root@kaos01:/var/www/civi.sitename.org/wordpress# cv path -d [civicrm.files]
  /var/www/civi.sitename.org/wordpress/wp-content/uploads/civicrm
  root@kaos01:/var/www/civi.sitename.org/wordpress# cv url -d [civicrm.files]
  "https://civi.sitename.org/wp-content/uploads/civicrm"
  
  ```
  
  I have also explicitly set the civicrm.files path and url variables in civicrm.settings.php
  
  ```
  $civicrm_paths['civicrm.files']['path'] = '/var/www/civi.sitename.org/wordpress/wp-content/uploads/civicrm';
  $civicrm_paths['civicrm.files']['url'] = 'https://civi.sitename.org/wp-content/uploads/civicrm';
  
  ```
  
  Certainly, it seems clear that the URL string is missing when needed, but I can't figure out where else to look.
  I have now discovered the problem on a second site.
  
  FURTHER UPDATE:
  Though the problem is occurring in multiple places I'm focussing on the STripe plugin as it makes it very visible. The MJWshared extension uses CRM\_Utils\_System::url to assemble the needed webhook url. it seems clear that CRM\_Utils\_System::url is not finding the base part is needs, but it is not clear to me how that function goes about finding the bits it needs.
  
  **Tags:** wordpress, resource-urls, paths
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-09-14. Score: 1 | Accepted answer
  
  In the end, I was not able to find the solution. I "solved" it by setting up a new site and migrating the CiviCRM data to that.
  
  
  ---
  
  ### Answer by username_1 on 2020-08-27. Score: 2
  
  This [Question](https://civicrm.stackexchange.com/questions/37373/cannot-upgrade-past-version-5-26-2-why-does-constant-civicrm-plugin-url-appear/37376#37376) is related.
  
  Extensions will read the path and URL so going through the steps in taht question should help.
  
  You will need to update the stripe webhook as well.
  
  
  ---
  
  