0

I am getting this - "Error: CRM.url called before initialization" when I select the country from 'country field' included in the profile.

Steps to replicate:

  • Created a profile including address fields street, pincode, country, states, city
  • created a contribution page.
  • added profile for that contribution page.
  • Opened "contribution link" for live mode.
  • Try to change the country name state/province field keep spinning.

enter image description here

What will be the issue?

reference file:civicrm/js/crm.ajax.js

2
  • Make sure js files are loaded before the page load. Try changing the theme to default and confirm if you still see the issue Jun 5, 2019 at 11:20
  • Yes, @jitendra-fuzion... I have just checked this possibility. Basically, this error title is mentioned in the file - civicrm/js/crm.ajax.js. The common.js and crm.ajax.js is loaded inside <head> tag. I have just checked this by doing view source.
    – 1990rk4
    Jun 5, 2019 at 11:37

1 Answer 1

0

Came across this annoying error after installing webform_civicrm on Drupal 9 and testing a donation.

It was simply a case of running the cv flush command followed by drush cr

Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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