Support

Home Forums Event Espresso Premium 2.0.4 Event Espresso – Calendar Not Showing up IE

2.0.4 Event Espresso – Calendar Not Showing up IE

Posted: December 20, 2012 at 10:35 am

Viewing 8 reply threads


Jake Bingen

December 20, 2012 at 10:35 am

Just upgraded to the latest version of EE Calendar and now the dynamic [ESPRESSO_CALENDAR] does not show up. I can see the DIV/CSS classes but that is it, no display.

http://www.wonderwaremidwest.com/training

NOTE: This works fine in Chrome and Fire. This seems to occur on all versions of IE 7,8,9,10. Is something not correct? IE8 gives me an error on line 700?


Josh

  • Support Staff

December 20, 2012 at 11:11 am

Hi Jake,

I’m looking at the source of the page and it appears to be an issue with the theme loading up an old copy of jQuery. It’s likely hardcoded into the header.php file, so when another plugin tells WordPress it needs the jQuery library, a second copy of the library (the more current version that is included with WordPress) will load up. Some browsers will be more tolerant than others in situations like these, which may be why it’s only manifesting itself in IE.

WordPress has a built in function that makes it possible to avoid conflicts like this: wp_enqueue_script. You can fix your theme by changing the line of code in the theme to use the enqueue function, so only one copy of jQuery loads up on the page. Here is a link to a few references for more info:

https://eventespresso.com/2012/08/using-jquery-in-safe-mode/
http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/

In this case, you’d likely want to move where it pulls in wp_head() just above the script that’s being loaded after jQuery in the theme’s header.php. So it would look something like this:

<!-- Updated Shuan and Jake 3/27/12> full paths to each library-->
<?php wp_enqueue_script("jquery"); ?>
<?php wp_head(); ?> //important! remove the wp_head function call below and move to this line
  <script type="text/javascript" src="/wp-content/themes/theme1092/js/selectivizr.js"></script>


Jake Bingen

December 20, 2012 at 11:39 am

I updated my header.php file but it still does not appear. Functions.php in our theme does not pull its own jQuery.

header.php file:


Josh

  • Support Staff

December 20, 2012 at 12:10 pm

It looks like the function call to wp_head() wasn’t moved to the line directly below the wp_enqueue_script function to include jQuery, which might break the selectivzr script.

You might need to narrow down the issue be temporarily switching to the twentytwelve theme and check the page in IE. If it still doesn’t appear, then the next thing to check would be for plugin conflicts.


Jake Bingen

December 21, 2012 at 8:58 am

Okay so this may be an issue with our theme and if so it is not the plugin fault. However I should note this.

We are currently using this DOCTYPE:

However when the page loads it is still using ‘IE7 Standards’ mode. If I switch this to ‘IE8 Standards’ mode the calendar appears. IE7 Standards mode is currently the ‘Page Default’. How do I force IE to use IE Standards mode? Will this break other items on the site?


Jake Bingen

December 21, 2012 at 9:00 am

This document type… not sure why it didn’t paste


Jake Bingen

December 21, 2012 at 9:02 am

It is odd it shows up in preview but not when you post. Here is what we use in plain text:


Josh

  • Support Staff

December 21, 2012 at 2:47 pm

It may be this line in the head of the document that is causing this:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

From what I can tell, this isn’t really being used anymore since it was put into place to help transition from IE7 to IE8.
http://blogs.msdn.com/b/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx

Nowadays support for IE8 is beginning to be dropped. IE9 is one version behind now that IE10 has been released.

I would try removing that line, if all else fails, you might try using the doctypes that one of the last few default WordPress themes use (twentyten or twentyeleven)


Jake Bingen

December 21, 2012 at 2:52 pm

Josh. You made my Friday. This worked. Thank you.

Viewing 8 reply threads

The support post ‘2.0.4 Event Espresso – Calendar Not Showing up IE’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso