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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • All my billing and Credit Card fields disappeared!
Pages: 1 2 3 [4]

Author Topic: All my billing and Credit Card fields disappeared!  (Read 6484 times)

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: All my billing and Credit Card fields disappeared!
September 27, 2012, 09:49:06 pm

the 4.2 demo seems to be working now:

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

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

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: All my billing and Credit Card fields disappeared!
September 27, 2012, 10:42:52 pm

can you check if this works fine in other popular browsers specifically firefox and chrome?

note that most civi folks do not run on windows and as such do not have access / use any version of IE. Yes, we do know that IE is still a very popular browser. So, if this is an IE specific issue, would help a lot if you can use the developer tools in IE to figure out what is broken and why

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

flug

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 12
Re: All my billing and Credit Card fields disappeared!
September 28, 2012, 11:39:12 am
OK, here is a little further update.  When I tried it on the Drupal 7/4.2.1 demo the error was not evident in IE or other browsers.

So that made me think one of the patches in 4.2.1 fixed the problem. 

So I applied the 3 patches from http://issues.civicrm.org/jira/browse/CRM-10764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel to my 4.2.0 installation and that solved the problem.

So I believe that the problem was some IE-specific javascript problems that were fixed in the javascript updates, particularly in https://fisheye2.atlassian.com/changelog/CiviCRM?cs=42246.

However there were a few rocky moments on the way and here are some tips that might help people having similar problems in the future:

  • As I mentioned before, you can test the functionality in different versions of IE by starting IE, going to F12 (developer tools) and then choosing different 'compatibility modes'
  • Additionally in IE developer tools you can click on the 'script' button and it will show you any errors that happen and allow you to click on the error to see where it is in the code.
  • Perhaps most important of all, I had a lot of trouble with caching under drupal, civicrm, and/or my browser. Once you have changed the javascript source and uploaded it, you may still be running the old JS code which is cached in numerous places.  In Drupal I went in and cleared all the cache tables (which didn't help) but then also went to 'performance' and cleared the javascript optimization (which turned out to be helpful for testing--you could see the individual sources files of JS rather than just one giant blob of a file) and then turned it back on and that cleared the cache. I also had to clear my own browser's cache (that is normally in the settings somewhere).  At some point I also cleared the CiviCRM cache (in the admin menu somewhere) but I am not sure if that was important or not.

So that solved the problem for me but I can imagine that a drupal or joomla theme, or really anything that loads a bit of javascript somewhere, could potentially cause the same problem again.  But more likely is that even if you have updated CiviCRM to a working version the cached JS code is lurking somewhere and your browser is not actually loading the new/improved code.

In troubleshooting that problem, the IE developer tools and script debugging was invaluable because I could see that the 'new improved' code was uploaded to the server but was not making it down to my browser to actually be executed.  Then you can troubleshoot why not and using the script debugging, tell if you have actually made any difference.

Chrome & Firefox have similar javascript debugging/developer tools but those of us who are not developer may not be that aware of them or know to use them to trouble shoot a problem of this sort.

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: All my billing and Credit Card fields disappeared!
January 25, 2013, 02:01:27 am
I am running Joomla 2.5.8 and CiviCRM 4.2.7, using NGinx 1.3.8

Paypal Express form doesn't show up in Events registration. I tried with or without pay later, no changes. The Continue button correctly disappear when PayPal is selected, but the dialog never shows up.

Careful examination shows that paypalExpress div is NOT in the user html and APC cache shows that Register.tpl was generated in the media/civicrm/template but the hit count stays at 0. Seems to me that the tpl is not called, explaining the missing div.

Any ideas why?

This WAS working on 4.1.3, which is what I was running last july.

Thanks,

Yves

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: All my billing and Credit Card fields disappeared!
January 25, 2013, 10:05:46 am

can you delete your templates cache and restart APC and see if that fixes the problem

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

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: All my billing and Credit Card fields disappeared!
January 25, 2013, 09:49:53 pm
I am way past clearing caches.

IMHO, there is a bug in /administrator/components/com_civicrm/civicrm/CRM/Event/Form/Registration/Register.php

Change this:
Code: [Select]
  function preProcess() {
    parent::preProcess();

    $this->_ppType = CRM_Utils_Array::value('type', $_GET);
    $this->assign('ppType', FALSE);
    if ($this->_ppType) {
      $this->assign('ppType', TRUE);
      return CRM_Core_Payment_ProcessorForm::preProcess($this);
    }

    //get payPal express id and make it available to template
    $paymentProcessors = $this->get('paymentProcessors');
    $this->assign('payPalExpressId', 0);

The form has to be preProcessed, but code must be allowed to continue. Removing the return before CRM_Core_Payment_ProcessorForm::preProcess($this); solved the problem here.

Yves

Pages: 1 2 3 [4]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • All my billing and Credit Card fields disappeared!

This forum was archived on 2017-11-26.