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 »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Billing section only appears after error
Pages: [1]

Author Topic: Billing section only appears after error  (Read 1056 times)

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Billing section only appears after error
February 26, 2013, 07:32:10 am
Hi,

Something new: the billing and credit card section only appears after I submit the form with an error.
I have upgraded to 4.3-alpha3. The Processor now connects to Payflow.

The URL that does not show the Billing is: /donate
The URL that does, after submitting the form, is: /donate/?page=CiviCRM&q=civicrm/contribute/transact

See attachement.

Would that be a 4.3 issue or something I might have overlooked?

Thanks.

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: Billing section only appears after error
February 26, 2013, 09:37:57 am

can you try reproducing this error on our wordpress sandbox server (running 4.3)

http://sandbox.wordpress.civicrm.org/

thanx

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

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Billing section only appears after error
February 26, 2013, 11:40:06 am
Hi Donald,

No, I had already checked it against your installation. It works 100% there. As far as I can see though, your demo environment is not on 4.3 yet. It might be an issue there? If no one has never come across the same issue then I understand that it has to be either something on my side (environment, setup, etc) or the version.

Greetings.

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: Billing section only appears after error
February 26, 2013, 12:04:06 pm

the sandbox servers are running the latest 4.3 (even later than 4.3.alpha3, since we update them via svn)

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

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Billing section only appears after error
February 26, 2013, 12:13:49 pm
Ah, ok. I am on my own then :) Thanks for the info!

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Billing section only appears after error
February 27, 2013, 11:42:10 pm
Hi Donald,

So I am trying to figure out what is going on. I have noticed that on the initial call the HTML looks somewhat different than after the error displays. If you have a look at the attachement you will see that:

1. The payment "billing-payment-block" (div) is empty at first and after the error filled
2. The Javascript includes funky <p> elements at first and is clean after the error

I have disabled all plugins. Same thing. Any ideas?

I have installed civi through svn now, so I am running of the latest code base.

Thanks.
« Last Edit: February 27, 2013, 11:44:45 pm by TMAI »

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: Billing section only appears after error
February 28, 2013, 09:57:05 am

is it only one payment processor on the page? Might want to check if the PP html is rerieved via a XHR calls and injected into the html

use firebug and see if that gives you any clues

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

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Billing section only appears after error
March 14, 2013, 03:59:26 am
Hi Lobo,

The XHR only inserts when the page reloads with an error. The same goes for the JS file of the payment processor.
I have a ton of plugins installed and run the site of a theme framework. Could there be anything that would cause such weird behaviour?

It also is not the processor plugin, as I am testing Stripe now, and it has the same results.

Thanks in advance.

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: Billing section only appears after error
March 14, 2013, 07:07:56 am

can you try it with a minimal site with the default theme

thanx

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

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Billing section only appears after error
March 14, 2013, 07:24:16 am
Hi Donald,

In the meantime i did that. It turns out that the theme framework and CiviCRM don't like each other in this case.
I am just curious: what does Civi do different when it displays the error message. It is as if forces the load of some JS that was not there before (the plugin js, to be precise).

I have opened a case with the theme developers, so it is not inherently a Civi problem. There may be some strange combination.

Cheers.

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: Billing section only appears after error
March 14, 2013, 09:18:17 am

from a code / flow perpective, i dont think we do anything significantly different, but obviously there is something that is just a wee bit different that makes it work in one case and not the other

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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Billing section only appears after error
March 25, 2013, 11:59:07 am
Hi, just general info here that CiviCRM contribution pages rely on jQuery to function, so any javascript error with a theme, plugin, module, etc. will likely cause CiviCRM forms to function improprerly.  In our increasingly javascript based web environment, this makes for all kinds of exciting and confusing problems in environments for which we (CiviCRM) cannot predict.

For more details on this issue and other see here:
http://forum.civicrm.org/index.php/topic,26696.msg120283.html#msg120283
Try CiviTeacher: the online video tutorial CiviCRM learning library.

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Billing section only appears after error
March 28, 2013, 06:10:24 am
Thanks for that information. I was able to output what CiviCRm wants to. So all good now.

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: Billing section only appears after error
March 28, 2013, 07:15:12 am

can you describe what you did to fix this issue? would help other WP users

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

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Billing section only appears after error
March 28, 2013, 08:41:17 am
actually i did not do much but belabor the support of the theme developers.
They have a shortcode called "raw" that magically strips stuff out. My bet is that the support guy didn't really know what it actually does either, but I can try and find out ;)

EDIT: unfortunately their site is down for maintenance right now. I'll try and post the code for the shortcode later.
« Last Edit: March 28, 2013, 08:43:02 am by TMAI »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Billing section only appears after error

This forum was archived on 2017-11-26.