Answers.Body: <p>After seeing this question <a href="https://civicrm.stackexchange.com/questions/28272/civi-5-9-not-serving-extension-javascript-in-wp-5">Civi 5.9 not serving extension javascript in WP 5</a></p>
  
  <p>I put an absolute path in the resource URL in Administer > System Settings > Resource URL</p>
  
  <p>and the issue was fixed. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-01T11:40:12.783Z
Answers.LastActivityDate: 2019-10-01T11:40:12.783Z
Answers.UserDisplayName: Brad
Body: <p>Wordpress and Civicrm hosted on siteground.com</p>
  
  <p>This is the first ever install I've tried of the Stripe payment processor plugin.  (version 6.1.5 on wordpress)</p>
  
  <p>Ensured MJWShared (v0.4.4) was first installed.</p>
  
  <p>When viewing a contribution page with a stripe payment processor attached - the javascript files cannot be found in (404 error in the console.)</p>
  
  <p>The files exist, but when looking at the Stripe Payment Processor extension in the civicrm extension manager the Local Path listed is</p>
  
  <p>/home/customer/www/[myurl.com]/public_html/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe</p>
  
  <p>and in the console - it is trying to retrieve the js and css files 
  (civicrm_stripe.js, elements.css) using the path below as a base.</p>
  
  <p><a href="https://[myurl.com]/home/customer/www/[myurl.com]/public_html/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe" rel="nofollow noreferrer">https://[myurl.com]/home/customer/www/[myurl.com]/public_html/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe</a></p>
  
  <p>Has anyone come across this before? or have I done something stupid?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-01T09:18:40.470Z
Comments.Text: the url *should* be https://[myurl.com]/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe/... Can you check if you have the correct extension url in your civicrm admin ?
Comments.UserDisplayName: Xavier
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-01T09:45:21.840Z
Comments.Text: Is your CiviCRM plugin directory symlinked by any chance?
Comments.UserDisplayName: Christian Wach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-01T10:48:20.870Z
Comments.Text: @Xavier the extension resource url in civicrm is shown as [civicrm.files]/ext/
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-01T10:49:31.320Z
Comments.Text: @ChristianWach unless I did it accidentally - I dont believe so.
Comments.UserDisplayName: Brad
Tags: <wordpress><stripe><payment>
Title: Stripe plugin not finding js and css files on contribution page
ThreadText: # Stripe plugin not finding js and css files on contribution page
  
  (Asked by: username_0 on 2019-10-01)
  
  Wordpress and Civicrm hosted on siteground.com
  
  This is the first ever install I've tried of the Stripe payment processor plugin. (version 6.1.5 on wordpress)
  
  Ensured MJWShared (v0.4.4) was first installed.
  
  When viewing a contribution page with a stripe payment processor attached - the javascript files cannot be found in (404 error in the console.)
  
  The files exist, but when looking at the Stripe Payment Processor extension in the civicrm extension manager the Local Path listed is
  
  /home/customer/www/[myurl.com]/public\_html/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe
  
  and in the console - it is trying to retrieve the js and css files
  (civicrm\_stripe.js, elements.css) using the path below as a base.
  
  <https://[myurl.com]/home/customer/www/[myurl.com]/public_html/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe>
  
  Has anyone come across this before? or have I done something stupid?
  
  **Tags:** wordpress, stripe, payment
  
  > **Comments:**
  > **username_1**: the url *should* be https://[myurl.com]/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe/... Can you check if you have the correct extension url in your civicrm admin ?  
  > **username_2**: Is your CiviCRM plugin directory symlinked by any chance?  
  > **username_0**: @username_1 the extension resource url in civicrm is shown as [civicrm.files]/ext/  
  > **username_0**: @username_2 unless I did it accidentally - I dont believe so.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-01. Score: 2
  
  After seeing this question [Civi 5.9 not serving extension javascript in WP 5](https://civicrm.stackexchange.com/questions/28272/civi-5-9-not-serving-extension-javascript-in-wp-5)
  
  I put an absolute path in the resource URL in Administer > System Settings > Resource URL
  
  and the issue was fixed.
  
  
  ---
  
  