• Hello,

    When I upgraded my WP copy from 2.7.1 to 2.8, all JS and AJAX powered functions (like edit permalink for posts or insert image to post ‘window’) stop work. When I’m clicking some button to use function – nothing happen… I tried fresh install WP 2.8 – also nothing. When I return to 2.7.1 – all is ok.

    Don’t work in both local PHP without any restrictions and in server installation (I don’t know really restrictions, but 2.7.1 works correctly).

    Any help?

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you are using turbo then you should clear its cache and clear your browsers cache.

    Thread Starter wojtec

    (@wojtec)

    I’m not using turbo. I tried to clear cache – still not working ??

    I tested in FF3, CH, IE7 and IE8.

    Have you tried deactivating all plugins to see if this resolves the problem?

    Thread Starter wojtec

    (@wojtec)

    Yap. And also tried on fresh WP – on localhost and server.
    This version totally don’t work for me ;(

    PS: In 2.8.1b don’t work too…

    Thread Starter wojtec

    (@wojtec)

    Nobody? This script stop work and nobody can help?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Those scripts work fine for me and many others.

    Debugging WP Javascript issues: A crash course.

    The purpose here is to figure out where the problem is. Once you’ve identified the problem, then you can fix it, or ask somebody else how to fix it. These are debugging steps only, don’t think of them as solutions.

    1. Deactivate all your plugins. Really. Refresh your admin pages (ctrl-f5). Refresh your admin pages after every step, in fact, to be sure it’s trying anew.

    2. Switch to the default theme. Themes can cause issues too, just like plugins.

    3. If that doesn’t work, clear your browser cache and disable Google Gears (just to be sure that your browser is loading the right stuff).

    4. If that still doesn’t work, reload ALL the WordPress files onto your server. Make sure that every single file got uploaded correctly.

    5. Nothing yet? Try activating the “Use Google Libraries” plugin. This plugin switches many of the JS libraries to load from Google’s servers directly and it disables the script concatenation features of WordPress. Often this solves problems. Often it makes sites load much faster, in point of fact, since Google servers are way faster than most things on this planet. If it doesn’t work though, disable the plugin again. (Note: If this works, but you don’t want to keep this plugin, try adding define('CONCATENATE_SCRIPTS', false); to your wp-config.php file. That does the same thing, without the benefits of the plugin.)

    6. Still no joy? Okay, look at the error console in your browser. See what the error is. To do this, clear all the messages, reload the problem page, then perform the action that doesn’t work properly. If it’s “function undefined” or similar, then that indicates that some of the javascript is not getting to your browser from your server. Check to be sure that you can pull common JS files from the server directly, like jQuery and so on. You can find the URLs for these by viewing the source of any of the admin pages and looking for the script tags. If you get any errors when pulling the JS files, you have a server issue that you’ll have to work on. Could be bad permissions, could be mod_security.

    7. You’ve verified that you can indeed pull the files, and the error is not showing in the console or it’s not an “undefined” type of thing. This probably means your server is blocking AJAX requests. This is almost always mod_security interfering, so disable mod_security in your .htaccess file (Google or your webhost will tell you how).

    8. Still nothing? Google for the error messages and see if somebody else has the problem.

    9. Last resort, post the errors on these forums, in a new thread. Give the error, give a link to your site, and give a precise description of the exact issue. What specifically does not work? What are you clicking on? Detail matters.

    (need your help)
    i have done the crash course until step 4, but this is the error message founded in my site https://indodesain.org :

    Not Found
    Sorry, but you are looking for something that isn’t here.

    no one of my posting shown, but if click the page menu Home, the content will show on.

    i try to log into site admin, if i clik one of the menu like Appearance the site will be show the user and password to login again, not all ways success to log in, even the user and password are matches…sometimes show error message :

    ERROR: Invalid username. Lost your password?

    i have try with difference browser (IE,FF,Safari,Gg.Chrome), also the same result.

    sorry for my broken english :d
    thank’s
    muhazir

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JS and AJAX functions stop work in 2.8’ is closed to new replies.