CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
Pages: [1]

Author Topic: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection  (Read 680 times)

mpdas108

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 3.9.2
Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 03:57:25 am
After upgrading from 4.3.2 to 4.4.6 the state drop box no longer automatically shows states from a chosen country, but instead shows all possible states. I thought it was a JS problem, but I'm not getting any errors in the console. If someone could give some help that would be very much appreciated.

You can see it here: http://tovp.org/news/fundraising/donate-one-square-foot-campaign-india/

Thanks!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 05:54:22 am
Especially in WP, php warnings can interfere with ajax requests. I suggest you turn off php notices and warnings in your php.ini configuration.
Try asking your question on the new CiviCRM help site.

mpdas108

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 3.9.2
Re: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 06:16:25 am
They are off now I was just trying to test some things a minute ago. So perhaps you visited the site while I was testing.
« Last Edit: August 23, 2014, 06:28:30 am by mpdas108 »

mpdas108

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 3.9.2
Re: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 06:24:03 am
Oh and a side note that could be related to the issue at hand. When we first setup CiviCRM we needed to have the state field mandatory, so I had to manually modify the country/state section of civicrm's database to include a state with the name of "Not Applicable" for all of the Countries that do not have a state. As that was an issue for some people not being able to submit the form if their country didn't have a state.

The modification worked great and we had no problems, just wondering if that modification may have caused the upgrade procedure to break something.
« Last Edit: August 23, 2014, 06:27:45 am by mpdas108 »

mpdas108

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 3.9.2
Re: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 06:43:02 am
I just previewed the standard "Name & Address" profile in the civicrm administration section, the the state selection works as expected, seems that the problem is only with the front-end. I also just went to the "test-drive" page for my existing contribution pages, thinking maybe that since they are displayed in the "back-end" they might work, but they don't work either.

BUT I created a new blank/simple contribution page, and opened it through the "Test-Drive" option, and the state selection WORKS. I am going to try and modify my profiles on my existing pages and see if that will refresh them somehow.

mpdas108

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 3.9.2
Re: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 06:51:59 am
Well removing the profile and saving then reapplying the profile for our contribution pages then saving again, did not help. I even created a duplicate of my existing contribution pages and the problem is still there. But like I said earlier I can create a totally new contribution page, and it works.

We have a large database with donation connected to specific contribution pages, so I can very well scrap my existing ones and create new ones, any thoughts?

mpdas108

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 3.9.2
Re: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 07:08:52 am
OK I just pinpointed what is breaking the state selection, if I enable the option for the donor to donate on behalf of an organization, then the state selection breaks, if I disable it then it works again.

I was also able to replicate the issue on the civicrm wordpress demo site, what I had to do was add Contact country and state fields to both New Individual, and New Organization profiles. It then breaks.

I have created a contribution page on the CiviCRM wordpress demo site entitled Mpdas108 Test Page: http://wordpress.demo.civicrm.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=4

You can see that it is surely broken. This seem like a bug, and should be reported. Where should I go to report it.

An interesting note is that if on the contribution page I check the box saying that I will contribute on behalf of an organization then those fields appear, and the state selection works fine for the organization section, but remains broken for the individual section.

« Last Edit: August 23, 2014, 07:12:25 am by mpdas108 »

mpdas108

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 3.9.2
Re: Upgrade from 4.3.2 to 4.4.6 breaks JS state selection
August 23, 2014, 07:49:08 am
It is also broken on the Drupal site, so it is a core issue, I have submitted a bug report here: https://issues.civicrm.org/jira/browse/CRM-15170

http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=4

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.3.2 to 4.4.6 breaks JS state selection

This forum was archived on 2017-11-26.