Support

Home Forums Event Espresso Premium Event Expresso asked me to upgrade PHP to version 8.0 and it is not working now

Event Expresso asked me to upgrade PHP to version 8.0 and it is not working now

Posted: October 11, 2022 at 11:24 am

Viewing 5 reply threads


Shea

October 11, 2022 at 11:24 am

Hi,

I was asked to upgrade my PHP version and the plugin Event Espresso to version 4.1.40.p and after that was done, now the Event Espresso tool is not working, we are only getting this: Video

Let me know if you need to have an admin account or what.

Regards


Tony

  • Support Staff

October 11, 2022 at 2:25 pm

Hi there,

As your site is currently in maintenance mode I’ll need either login details to view the page or maintenance mode disabling.

If you would like to send temp login details over you can do so using this form:

https://eventespresso.com/send-login-details/


Shea

October 11, 2022 at 2:36 pm

Credentials sent.


Tony

  • Support Staff

October 11, 2022 at 4:46 pm

Hi there,

The issue on your site is caused by this snippet:


// Load 'Working' jQuery
add_action( 'init', 'jquery_register' );
// register from google and for footer
function jquery_register() {

    if ( is_admin() )
        return;

    wp_deregister_script('jquery');
    wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js", false, null);
    wp_enqueue_script('jquery');
}

Which sits in your Theme’s functions.php file.

That code is replacing the version of jQuery in use on the site with a different version (now an older version), which then causes issues with the calendar. I can’t explain why you’ve only run into issues with that code as doing the above has been discouraged for a long time now, for example, this blog entry from 2013:

https://pippinsplugins.com/why-loading-your-own-jquery-is-irresponsible/

I’ve commented out the add_action() line from the above and the calendar now functions on your site, however, you may find you’ll need other custom Javascript on your site will need to be updated to function correctly which will need the help of a developer.

THis isn’t an issue with EE or the Calendar per se, its outdated code in use on the site which should be updated correctly.


Shea

October 14, 2022 at 5:21 am

Thanks, that solved the issue.


Tony

  • Support Staff

October 14, 2022 at 5:25 am

You’re most welcome 🙂

Viewing 5 reply threads

The support post ‘Event Expresso asked me to upgrade PHP to version 8.0 and it is not working now’ 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