Support

Home Forums Event Espresso Premium Hoe page not displaying properly afar installing EE3

Hoe page not displaying properly afar installing EE3

Posted: April 21, 2014 at 4:37 am


Jonathan Calloway

April 21, 2014 at 4:37 am

Greetings!
I am running WordPress 3.9
I installed EE3 with no add-ons.
This s a new installation.
My site is http://www.covenantchattanooga.org

As soon as I activate the plugin, the slider on my home page as well as some other java script elements on some of the other pages quit working. Once I de-activate the EE3, everything works again.

The theme I am using is Grand Restaurant from TemplateMonster.
http://www.templatemonster.com/wordpress-themes/38424.html

I ran the Event Espresso requirements checker, and the site passed with warnings:

Apache function apache_get_modules() was not found. This is most likely due to your PHP version or your PHP configuration. This function is used by the requirements check plugin to identify what Apache modules are enabled and, if not found will result in warning messages having to do with your server configuration. While this is not a problem, it does result in less-accurate results in the Espresso Requirements Check. Please contact your webhost if you are concerned and ask them if it is possible to run PHP as an Apache module rather than CGI.

I’ve de-activated all other plu-gins and re-activated them one by one to test for possible conflicts. I’ve also tried activating just EE3 by itself, and the home page still breaks.

I installed WordPress 3.9 and my theme on a test server, and EE3 works fine there. Therefore, I am submitting this on the forums rather than submitting it as a contact email.


Dean

April 21, 2014 at 5:35 am

Hi,

The reason for this is Event Espresso needs a higher version of jQuery than you are running (I believe as a minimum it is 1.8.3).

Your theme is de-registering the default version of jQuery that ships with WordPress (jQuery 1.11.0 for WordPress 3.9) and is instead loading an older version (jQuery 1.6.4)

In order to resolve this I would suggest first updating your theme. If there are no updates available then you have 2 choices:

1) Contact the theme developer and ask them to resolve this (as what they are doing does not follow WordPress guidelines).

2) Edit the theme to stop the old jQuery from loading and to allow WordPress to load the correct version.

The requirements check warning, as it states, is not a show stopper. It means that it cannot get the information needed to check that everything is in order. Generally this is not a problem, though if there are any issues (after the jQuery issue is resolved) it might be worth speaking to your host about this.


Jonathan Calloway

April 22, 2014 at 12:00 am

I’ve found where the theme deregisters default JQuery and uses it’s own (old) version. I’ve commented the line out, and it fixes it, but not quite. So now I have two questions:

1. Is there a way to use the old version of JQuery for just the theme only?
2. Would replacing all of the scripts in /<themename>/js work?

Completely replacing the theme is not really an option at this point. I’ve sent a request in to Template Monster, but haven’t received a response.


Dean

April 22, 2014 at 4:44 am

Hi,

1) No. There can only be one instance of jQuery running, otherwise things might break.

2) Depends what you are going to replace them with!

Looking at the site now, there are 3 main errors.

Uncaught TypeError: undefined is not a function jquery.equalheights.js?ver=1.0:2
Uncaught TypeError: undefined is not a function custom.js?ver=1.0:1
Uncaught TypeError: undefined is not a function (index):101

The first two are because the scripts are trying to use jQuerys noConflict mode incorrectly. So it is using the shorthand $ instead of jQuery, but as it’s doing it wrong it is breaking things – http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers

The third issue might be resolved once the first two are as it is unable to find a specific function, but this could be due to the other errors stopping that function from loading.

If the theme authors are unresponsive, it may mean that this theme will never be updated. As such, issues like this may crop up again in the future as both WordPress and jQuery evolve.


Jonathan Calloway

April 22, 2014 at 4:50 am

Dean,

As you can see, I made the change overnight, and installed EE3. Things appear to be working ok. The slider works, and the menu works. Anything other concerns I had, such as audio players, seem to work fine. There is only one thing that isn’t working as elegantly as I’d like. That is whatever JQuery functions control the accordion style roll downs on the “Our Fatth” page. That’s not a deal killer. If I can get this registration form done by Thursday, which is my deadline, I’ll delve further into fixing the JQuery problems in the theme (as you mentioned) or simply not use the accordion roll downs.

Thanks for your help!


Dean

April 22, 2014 at 6:22 am

Hi,

To resolve that issue you will need to resolve the other jQuery issues. Those errors are stopping the accordion effect as that too is jQuery. It’s like a cascade, anything below the error in the load order wont load, and will appear to break.

The support post ‘Hoe page not displaying properly afar installing EE3’ 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