0

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?

  • 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 ? – Xavier Oct 1 at 9:18
  • 1
    Is your CiviCRM plugin directory symlinked by any chance? – Christian Wach Oct 1 at 9:45
  • @Xavier the extension resource url in civicrm is shown as [civicrm.files]/ext/ – Brad Oct 1 at 10:48
  • @ChristianWach unless I did it accidentally - I dont believe so. – Brad Oct 1 at 10:49
2

After seeing this question 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.