1

I am using an outdated WordPress Theme; the developer has not offered updates since about 2015.

It was working great until yesterday. Now my dropdown menus are not working, and neither is my slideshow. Looking in Console, it appears to me that there are jquery errors. This is the page I'm working on: http://www.cedartreeschool.org/

These are the errors I'm seeing:

Uncaught TypeError: Cannot read property 'version' of undefined
    at n.fn.init.$.fn.preloader (custom.js?ver=3.8:383)
    at (index):754

Uncaught TypeError: Cannot read property 'msie' of undefined
    at (index):754

Uncaught TypeError: jQuery(...).live is not a function
    at HTMLDocument.<anonymous> (custom.js?ver=3.8:32)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at Function.ready (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)

Are there any options for me to get this theme working again, or do I need to update to a newer theme? Thanks for any help.

9
  • So what was changed since it was working properly?
    – charlietfl
    Aug 15, 2020 at 2:23
  • As far as I know, nothing has changed. I have two sites using two different themes from the same developer, and both sites broke yesterday. So I wonder if something with jQuery changed yesterday? Or something in the browser? Or on the server? I am stumped.
    – McFarnell
    Aug 15, 2020 at 2:29
  • 1
    Version of jQuery in the page is 1.12.4 but live() was removed completely from the library in version 1.9. That method was deprecated many years ago
    – charlietfl
    Aug 15, 2020 at 2:35
  • 1
    Problem is that I am a developer. Been doing html/css/php/javascript for 20 years. Maybe I just don't have the skills for this issue. I'm happy to learn, it's just that I don't even know where to look for to get started.
    – McFarnell
    Aug 15, 2020 at 4:22
  • 1
    It looks like the auto upgrade and jquery is a problem for a lot of people: google.com/…
    – McFarnell
    Aug 15, 2020 at 4:37

1 Answer 1

0

Found out in the Advanced WordPress Facebook group that jquery-migrate was removed in WP 5.5. Using this plugin solved my issue https://wordpress.org/plugins/enable-jquery-migrate-helper/#utm_medium=referral&utm_source=facebook.com&utm_content=social

2
  • 1
    To clarify: You didn't solve the issue. You put a Band-Aid over it. To properly solve the issue, you'd need to update the JavaScript code to get rid of deprecated functions.
    – isotrope
    Aug 18, 2020 at 12:50
  • Does anyone know of a good resource that outlines the changes that most often need to be made. ie, What are some of the code changes does the plugin temporarily hack over for us. If anyone has a good resource for this, it would jumpstart the ability for people to manually update their old, unsupported themes themselves.. It seems that the main breaking issues are drop-down menus no longer drop down (so menu items are not accessible), and slideshows no longer show images. For a good start, anyone know which deprecated jquery functions to look for that are often used for dropdown menus? Aug 18, 2020 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.