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 to 4.2.6 from 4.0.7 payment info vanishes on membership form
Pages: [1]

Author Topic: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form  (Read 852 times)

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 03, 2012, 06:39:24 am
I've been looking for an answer to this and so far have had no luck. We upgraded to 4.2.6 recently (from 4.0.7), and now on the membership contribution forms (whether you use live or test it's the same), the entire credit card payment section is simply gone. I have double-checked to make sure our payment processor was correctly configured and selected and double-checked the form to make sure it "sees" the processor. No apparent problems there.

I took a look at the older 4.0.7 site for comparison, and there is an entire div with the id "payment_information" that is missing entirely on the form that the 4.2.6 version generates. In its place is an empty div with the id "paypalExpress" - which makes no sense at all because we don't have any payment processors at all set up with Paypal Express.

Is this a bug? Any ideas? Is it just buggy form upgrade and I have to re-create the entire form from scratch? Thank you.

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 03, 2012, 07:18:20 am
OK, this doesn't seem to have any effect on the problem whatsoever, but I did discover a typo in one of the core files: sites/all/modules/civicrm/templates/CRM/Contribute/Form/Contribution/Main.tpl
Line 295: {include file="CRM/common/paymentBlock.tpl'}
should be: {include file="CRM/common/paymentBlock.tpl"}
(the opening quotes were double and the closing quotes were single - this obviously won't work).

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 03, 2012, 09:36:44 am

this has been fixed for 4.2.x in svn. Will be part of 4.2.7

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 03, 2012, 09:38:41 am
Please excuse my ignorance - does that mean the issue I had is fixed, or the typo I found, or both? Also, do you know when 4.2.7 is coming out? Alternately, can I download the production beta version (is that what you are referring to with svn repo?) If so, which one?
« Last Edit: December 03, 2012, 09:44:15 am by pandorawombat »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 03, 2012, 09:48:02 am

sorry, i should have been more specific.

The typo you mentioned was fixed and committed to svn aprox 26 days ago

https://fisheye2.atlassian.com/changelog/CiviCRM?cs=43479

with regard to your issue:

1. Can u create a new contrib/member page and see if that is different
2. Can u check for any javascript errors when loading the page. A lot of the PP code has been moved into ajax calls

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 03, 2012, 09:55:34 am
I created a new contribution page since I first posted the question, and it doesn't behave any differently than the one that already existed, I'm afraid. No credit card block shows up. Also, it doesn't seem to be generating any javascript errors. With the brand new form I created, I even tried to make it a "donation" instead of a membership fee, with the same (lack of) results. It has an empty div called paypalExpress approximately where you would expect the normal payment blocks to be. I am puzzled.

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 03, 2012, 10:05:39 am
OK - now this is even weirder - when I created a form as a donation instead of membership, even though it specifies a profile we created, that profile disappears from the top of the form - but if you try to submit, it gives validation errors of the type "Name required" etc. even though it isn't showing fields for these missing values. Inspecting the source code shows no trace of the profile at all. :-\

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form
December 04, 2012, 06:21:32 am
Well, I finally sorted it out. Last year, when we first developed the site, there was a custom template for the forms, which didn't alter any main code (which is why we didn't suspect it at first), but did add stuff. I examined the new version of CRM/Contribute/Form/Main.tpl, and discovered that the base code was much different from 4.0.7, to the point where our custom code contained base code that wouldn't work with this version - so it became a matter of starting over with a copy of that new file and re-inserting the custom code where appropriate. This should have been a no-brainer, but to further confuse matters, I hadn't noticed that the back end resource urls were defaulting to a different (older) version of the site than before the upgrade (who on earth knows why), so every time I edited the custom file, nothing at all happened (since the files it was "looking for" were in a different directory entirely). Just posting this in case someone else runs into the resource urls not being what they were before the upgrade particularly.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade to 4.2.6 from 4.0.7 payment info vanishes on membership form

This forum was archived on 2017-11-26.