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 CiviEvent (Moderator: Yashodha Chaku) »
  • Civi Registration Page Issue in IE
Pages: [1]

Author Topic: Civi Registration Page Issue in IE  (Read 2052 times)

CityClub

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • Seattle CityClub
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.50
  • PHP version: 5.3.3
Civi Registration Page Issue in IE
December 05, 2012, 07:39:30 pm
After upgrading to 4.2.6, we've been having an issue with the registration pages generated by Civi, but only in IE. The credit card information section of the page won't show up in IE, so users can't enter in their payment info to actually buy tickets. I tried using a new price set, I made sure the billing-payment-block div was loading in IE and it was, I checked for CSS issues, I also thought maybe it was something to do with IE and unsecure content but we are using https and have our SSL cert. I'm not sure what else would be causing it. Clearly it's something with this version compared to our older version (3.2.3), but I don't know enough about all the changes yet (we just upgraded a few days ago) to know what other obvious things might be causing this.

For reference, feel free to check out this link in IE and any other browser:
https://www.seattlecityclub.org/civicrm/event/register?id=137&reset=1

Thanks for any insights.
« Last Edit: December 12, 2012, 03:04:34 pm by CityClub »
CityClub

CityClub

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • Seattle CityClub
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.50
  • PHP version: 5.3.3
Re: Civi Registration Page Issue in IE
December 06, 2012, 09:35:27 am
I also tried playing around with the pay later option to see if that affected anything, but it didn't. I kind of feel like it might have to do with a .tpl file but I'm not enough of a developer to mess around with code too much.
CityClub

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Registration Page Issue in IE
December 06, 2012, 10:24:25 am
When I view this in IE8, it says some content is not secure and is blocked. That is because you have a lot of absolute references on the page to images or CSS such as http://www.seattlecityclub.org/sites/default/files/ycea_past.jpg . That's HTTP not HTTP. Also a reference to tvw.org is not secure.

Anyhow, if I choose "Display Blocked Content" it still fails.

The Credit Card section is loaded via ajax from https://www.seattlecityclub.org/civicrm/event/register?snippet=4&type=7&qfKey=xxx where xxx will be unique for each session. Would appear that's not loading for IE. I

The reason I think is because you have a JS error being thrown in jquery.js.tree, which is a CiviCRM JS file. On the bottom left corner of IE you can see an "Error on page" message and if you double click that you can see the error.

Now why you get that error, I do not know.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

CityClub

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • Seattle CityClub
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.50
  • PHP version: 5.3.3
Re: Civi Registration Page Issue in IE
December 06, 2012, 04:30:43 pm
Thanks Hershel, I'll be looking at that error and seeing what can be done about it tonight and maybe this weekend.

Thanks for the lead!
CityClub

CityClub

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • Seattle CityClub
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.50
  • PHP version: 5.3.3
Re: Civi Registration Page Issue in IE
December 06, 2012, 09:28:15 pm
So I see this in IE console:

SCRIPT87: Invalid argument.
jquery.jstree.js?0, line 72 character 7
LOG: FB.getLoginStatus() called before calling FB.init().

It looks like an issue with the jquery file and/or a facebook issue, even though I didn't think we even used anything facebook. I'm going to look into disabling anything that might have to do with facebook and making sure jquery is up to date.

Does any of that ring an obvious bell with anyone?  :)
CityClub

CityClub

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • Seattle CityClub
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.50
  • PHP version: 5.3.3
Re: Civi Registration Page Issue in IE
December 16, 2012, 04:55:12 pm
So I was able to fix this line: LOG: FB.getLoginStatus() called before calling FB.init().

but
Code: [Select]
SCRIPT87: Invalid argument.
jquery.jstree.js?0, line 72 character 7

is still showing up. There doesn't seem to be anything there that would be invalid:

Code: [Select]
if(tmp.styleSheet) {
if(is_new) {
document.getElementsByTagName("head")[0].appendChild(tmp);
                                                tmp.styleSheet.cssText = opts.str;
}

I also fixed almost everything related to unsecure links, at least according to IE since it no longer asks to "show all content".

This jstree issue might not even have anything to do with the main issue of the payment section not showing up.

Any other thoughts?

edit: I also made a new event with all the same details, to make sure that it still happens post-upgrade, and it still is broken.

Edit2: I checked out an event on the demo site in IE and there's no issues with the credit card section not showing, so it's something specific in our install presumably.
« Last Edit: December 16, 2012, 06:15:12 pm by CityClub »
CityClub

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Registration Page Issue in IE
December 17, 2012, 11:42:20 am
In IE8 it seems you have the bug reported here:

http://code.google.com/p/jstree/issues/detail?id=917

and a fix is listed at the bottom.

I applied a fix to your site, based on their fix, and now I see the credit card details in IE8. And no JS errors. What I did is:

Code: [Select]
// tmp.styleSheet.cssText = opts.str;

 var setFunc = function(){ 
                              try{
                                      tmp.styleSheet.cssText = opts.str;
                              }catch(e){  }
                      };
                      if(tmp.styleSheet.disabled){
                              setTimeout(setFunc, 10);
                      }else{
                              setFunc();
                      }
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

CityClub

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • Seattle CityClub
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.50
  • PHP version: 5.3.3
Re: Civi Registration Page Issue in IE
December 17, 2012, 11:55:57 am
That's awesome, thank you! It seems that fixed it in IE9 as well (which is what we have here at the office). I'm going to check it out on as many different browsers as I can just to be sure, but it seems like that was it.

Turns out, I think we were close to something like this but just didn't get there.

Thanks again, it's much appreciated!
CityClub

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Registration Page Issue in IE
December 17, 2012, 12:00:38 pm
I wonder why other sites aren't affected by this...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

CityClub

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • Seattle CityClub
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.50
  • PHP version: 5.3.3
Re: Civi Registration Page Issue in IE
December 17, 2012, 02:43:35 pm
Yeah, that is strange...
CityClub

krypto

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 5
  • IT guy for @bhahumanists. Running Civi on WP.
    • British Humanist Association
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.x
  • MySQL version: 5.5.x
  • PHP version: 5.5.x
Re: Civi Registration Page Issue in IE
January 21, 2013, 04:40:00 am
We had this exact problem appear this morning, and kill everything else running jquery on the page. Internet Explorer only.

I couldn't get the above code to work, oddly, but the fix from http://forum.civicrm.org/index.php?topic=17442.0 did the trick.

I'm wondering if it's a number-of-stylesheets thing, since IE apparently only supports up to 30. I'm only counting 27 in the source code, but maybe its internal counts are higher for some reason.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Civi Registration Page Issue in IE

This forum was archived on 2017-11-26.