WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] jQuery Update? Site crashed! (39 posts)

  1. karacozier
    Member
    Posted 8 months ago #

    I'm kind of freaking out. I just updated to the latest version of WP (apparently a huge mistake). I started getting the blockUI jQuery pop up error saying I have to update jQuery. I tried to download various plugins to do that and now all I see is a gray dot in the middle of my screen. Now I'm lost.

    http://www.lifesanity.com

    Thanks!
    Kara

  2. ChipsOnFire
    Member
    Posted 8 months ago #

    I just posted this as a separate topic, but to help you out in case you missed it, here is what I found:

    I saw that many people have been having some issues with jQuery.BlockUI versions after upgrading to WordPress 3.6. So did I. Having looked into it, this is what I discovered in my setup.

    1. WordPress 3.6 uses the newer (latest) version of jQuery, which is 1.10.2.

    2. Lots of plugins use a function call jQuery.BlockUI which requires jQuery 1.2.2 or above.

    3. Now, 1.10 IS higher than 1.2, but older versions of the BlockUI code have a little bugler - the code tests for versions BUT drops the trailing '0', so instead of asking is 1.10 greater than 1.2, it test is 1.1 greater than 1.2, and so it fails.

    4. This is NOT a WordPress problem - WordPress 3.6 merely uses the latest version of jQuery. Previous versions up to 1.9 would obviously pass the buggy test in jQuery.BlockUI code.

    5. The answer is NOT to downgrade jQuery in WordPress. Well - that might work, but don't do it!

    6. The answer is to get your PLUGIN provider to update their plugin.

    7. My plugin used a file called wf-an-jqery-plugins.js. Inside that file was a chunk of jQery.BlockUI code that said it was v2.39.

    8. I went to the following link for the latest jQuery.BlockUI code (v2.64) and then just replaced the v2.39 code in that plugin file with the code form this link. Hey presto, it all works again: http://malsup.github.io/jquery.blockUI.js

    9. So, folks, find out which plugins you have that are using OLDER jQuery.Block UI code and have your plugin provider update it - and in the meantime if you understood what I wrote above, perhaps you can fix your plugin(s) yourself.

    I hope this helps.

  3. karacozier
    Member
    Posted 8 months ago #

    Thanks for the reply BUT my site appears to be completely down. I can't even access the dashboard. :(

  4. ChipsOnFire
    Member
    Posted 8 months ago #

    Lucky you - when I look at your site I don't even get the dot, it's just a blank screen, so you're getting more than me! :-)

    Sorry - NOT helpful! OK, as plugins seem to be the CAUSE of the problem, I think you might need to manually remove a few! To do that, there are two ways:

    1. Can you reach the admin panel directly by URL? i.e. NOT by going to the homepage and clicking on a login link, as clearly you can't do that right now. If you can enter the full URL of the login.php and it works, then try deactivating all plugins, and then re-activate them 1 by 1 until your site break - the last one you activated will be a problem one, which is the plugin you will need to fix.

    2. If you cannot access it by URL in a browser, then you will need to FTP in and remove plugins directly. I would FTP in using whatever client you prefer (I use FileZilla) and MOVE the plugins to a local drive on your PC, removing them from the server. Then, see how your site works, and hopefully it will, then start adding them back 1 by 1 until the site breaks, and again you will know which plugin needs fixing.

    Let me know how you get on.

  5. ChipsOnFire
    Member
    Posted 8 months ago #

    Kara, someone else just pointed out a known issues shown in the Master List:
    http://wordpress.org/support/topic/troubleshooting-wordpress-36-master-list?replies=5#post-4484014

    This is a different, but related issue. Not knowing your site, you need to look into it. Essentially, WP uses jQuery, and you could have problems if parts of your site, like plugins, are using their own version of jQuery. This should really be avoided! See that link above.

  6. ChipsOnFire
    Member
    Posted 8 months ago #

    Kara - the other thing I noticed is that your site might be hosted on host monster.com and right now it seems that their site is completely down! Maybe this is nothing to do with your upgrade - maybe this is to do with your hosting provider having technical issues on their servers?????

    Keep us posted.

  7. karacozier
    Member
    Posted 8 months ago #

    I just saw that too! I really need to figure out what to do to host on WP. I only know how to do a little of this website stuff. Above average but not a ton. I don't understand the whole picture.

  8. ChipsOnFire
    Member
    Posted 8 months ago #

    If you want to contact me directly I would be happy to try to help with advice and guidance based on my own experiences. I'm happy to answer any questions you have.
    If you want you can eMail me directly [email address moderated - these forums do not provide support via email]

  9. Chris Thomas
    Member
    Posted 8 months ago #

    I also received this message after downloading the latest version of wordpress and I have no access to my website control panel:

    Fatal error: Call to undefined function get_post_format_slugs() in /websites/123reg/LinuxPackage23/ox/an/ad/oxanadodon.com/public_html/website/wp-includes/theme.php on line 1262

    I can get in via FTP but have no idea what to do?

    Please help.

  10. ChipsOnFire
    Member
    Posted 8 months ago #

    Chris, that seems like a completely different error. Did you get the jQuery version error?
    Can you post your website link?

  11. ChipsOnFire
    Member
    Posted 8 months ago #

    Chris, I just founb your other post, and someone called saas has answered it. The functionality used by your Theme has been removed from WP3.6. Downgrade to 3.5 or update your Theme!

  12. karacozier
    Member
    Posted 8 months ago #

    Holy crap. Why would I ever update WP ever again? What a nightmare!

  13. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 8 months ago #

    So that you don't get hacked by security flaws that were fixed in updates - @ChipsOnFire try not to recommend people downgrade because of this.

  14. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Where did you download this theme from?

  15. karacozier
    Member
    Posted 8 months ago #

    ChipsOnFire---I emailed you

  16. karacozier
    Member
    Posted 8 months ago #

    My theme? I used Catalyst and I think I had the Dynamik theme.

  17. karacozier
    Member
    Posted 8 months ago #

    I get it Andrew Nevins. I appreciate that! But, right now, I don't have a site to hack. :(

  18. Are you using the latest version of that theme? I know they just switched to using Genesis on the backend recently (or are switching....)

  19. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Try:
    - switching to the default theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

    - resetting the plugins folder by FTP or phpMyAdmin.

    Either your theme or one of your plugins is relying on an older version of jQuery.

  20. ChipsOnFire
    Member
    Posted 8 months ago #

    @Andrew Nevins - don't talk nonsense. I recommended to Chris that he downloaded to the version he was using YESTERDAY instead of using some newly released code today! I understand about security flaws in old software, but seriously - going back to what he had yesterday in order to make his site work is hardly going to bring the hackers of the world down on his head - and in his case where his Theme does not support v3.6, then it makes complete sense (to me!) for him to do so as a (safe) quick-fix until his Theme is made compatible with v3.6, Otherwise it will take much longer to get his site back up, which is his primary concern I believe.

    Kara, don't get confused - I don't think your problem is the same at all. I have eMailed you :-)

  21. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    @ChipsOnFire: It was not nonsense! Andrew's comment was perfectly correct. You specifically suggested that the user downgraded to WordPress 3.5 - a practice that we very much do NOT recommend here for obvious security reasons.

    going back to what he had yesterday in order to make his site work is hardly going to bring the hackers of the world down on his head

    Going back to WordPress 3.5 will open more than seven security holes in the site - all probably well known by now.

    it makes complete sense (to me!) for him to do so as a (safe) quick-fix until his Theme is made compatible with v3.6,

    That is most definitely NOT safe! The safe way to approach this is to continue to use WordPress 3.6 and switch to another, compatible theme, until such time as the OP's previous theme is updated.

    And, by the way, these are community forums - which means that all support here happens here - where everyone can benefit from it. Encouraging people to contact you via email is frowned upon. Please do not do that again.

  22. ChipsOnFire
    Member
    Posted 8 months ago #

    You are quite correct. I DID say 3.5. I can see now how that use of shorthand might be misinterpreted. Doh!

    What I actually meant was "go back to your version from yesterday, whatever version that might have been, as it was perfectly good for you yesterday, so will be perfectly good for you today - until your theme is fixed and you can upgrade safely to 3.6 again."

    I did not add the option of staying at 3.6 and changing the entire theme of his site, as it seemed to me that most people would want the site that they had working and looking nice yesterday to work and look nice in exactly the same way today.

    I hope my meaning is more clear now :-)

  23. ChipsOnFire
    Member
    Posted 8 months ago #

    The reason I gave Kara my eMail is that her problem was absolutely nothing whatsoever to do with WordPress, it was to do with failing servers at her ISP, causing her hosting platform to fail. I am happy to continue to discuss completely non-wordpress related issues here, but I thought I was doing the right thing by moving a non-wordpress ISP-specific technical issue offline, so as not to clutter what appeared to me to be a WordPress related forum. Sorry.

  24. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    What I actually meant was "go back to your version from yesterday, whatever version that might have been, as it was perfectly good for you yesterday, so will be perfectly good for you today - until your theme is fixed and you can upgrade safely to 3.6 again."

    That's still not an approach we would ever recommend. It's the theme that needs fixing - not WordPress. Staying 1 or 2 versions behind the current one is about the worst thing you can do from a security pov. See http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html

    With regard to offering up your email address, this is frowned upon whatever the reason. You can - via your forum profile - provide contact details (click on my forum username for an example) if you want but it's up to the poster to use, or seek, those details out. All you can really do is point people to your contact details when asked for them specifically. This is to try and provide some protection against less scrupulous posters who have been known to use bait & switch tactics.

  25. Are you using the latest version of that theme? I know they just switched to using Genesis on the backend recently (or are switching....)

    Catalyst and Dynamik will continue working for the foreseeable future. They don't have anything to do with Genesis but they will be dropping support for Catalyst/Dynamik because they are moving their business to a product that runs w/ Genesis called Dynamik Website Builder.

    Also, I updated more than 50 sites this morning to 3.6 (all running Catalyst) and no problems so far.

  26. karacozier
    Member
    Posted 8 months ago #

    Fun fun fun! Hostmonster is down so that is definitely part of my issue. Coincidence maybe that I upgraded on the same day. I'm going to have to look into the Genesis issue and also my jQuery and plugins. I appreciate everyone's help! I know enough to be dangerous and that's about it. :)

  27. ChipsOnFire
    Member
    Posted 8 months ago #

    I think we might have to agree to disagree on the approach I gave Chris. Chris had a problem - the problem was that his site was dead. The fastest way to get it running was to put it back to how is was the day before. Then his immediate problem would be solved, and he could take as much or as little time as he chose to fix the upgrade (and security) issues. I would still recommend that approach to anyone. Saying that going back to how a site was yesterday is not recommended is 'technically' correct, but does not address the issue of getting a site up and running and working FAST.

    My approach does not introduce ANY additional security risks over and above what his site was exposed to as of yesterday. IF you are saying he made a major mistake in going back to how it was yesterday, then you are also, for all intents and purposes, saying that every single website that did not upgrade to 3.6 NOW has made that same mistake!

    When giving advice, I agree it is good to give 'theoretical best practice' advice - but I would always try to also give real-world practical advice.

    Chris did not have a problem with security issues, chris had a dead website he wanted to be working again. If someone needs their site working fast, and going back to how it was the previous day is fast, then that surely is the best advice to solve his immediate problem. You 'best practice' advice is great, and something to be taken care of, AFTER he has solved his immediate issue.

  28. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    I think we might have to agree to disagree on the approach I gave Chris.

    I'm sorry but the policy here is that we do not recommend rolling back to an earlier version of WordPress.

    then that surely is the best advice to solve his immediate problem

    No. The correct advice would to to suggest that they:
    - switch to the default theme by renaming the current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

    - reset the plugins folder by FTP or phpMyAdmin.

    - re-upload all files & folders - except the wp-content folder - from a fresh download of WordPress- making sure that they delete the old copies of files & folder before uploading the new ones.

    - finally run the upgrade manually via wp-admin/upgrade.php

  29. ChipsOnFire
    Member
    Posted 8 months ago #

    As this would have left his site working, but with a totally different theme and utterly different look & feel, I am afraid I will always have to disagree. Nothing will ever make me believe that making a site work today just the same as it did less than 24-hours before is a bad thing. Fix the big things first (website up and running as it was yesterday) would always be no.1 priority for me and my customers. Fixing 'other' stuff would be priority 2. Were we talking downgrading many levels, or many months, I would of course agree with you.

  30. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    I am afraid I will always have to disagree.

    Then I'm afraid that you will find yourself being repeatedly countermanded by one of the forum's regulars. When that does happen, please do not dismiss their comments as "nonsense".

Reply »

You must log in to post.

About this Topic