• I have been experiencing problems such as posts text box not working, new category creation link not working. fold down menus or popup menus not working on the wp admin dashboard and generally javascript is not working properly. I use SCRIPT_DEBUG and it fixed the errors and showed the following list of errors on the console. This happened with all of my sites (7), most of them were brand new installations, running only the standard included plugins and themes.

    Uncaught SyntaxError: Unexpected token * jquery-migrate.js:40
    Uncaught SyntaxError: Unexpected token * plupload.full.min.js:40
    Uncaught SyntaxError: Unexpected identifier json2.js:43
    Uncaught SyntaxError: Unexpected token * hoverIntent.js:40
    Uncaught SyntaxError: Unexpected token ( wp-ajax-response.js:40
    Uncaught SyntaxError: Unexpected token * jquery.query.js:40
    Uncaught SyntaxError: Unexpected token * suggest.js:40
    Uncaught SyntaxError: Unexpected token * jquery.ui.core.min.js:40
    Uncaught SyntaxError: Unexpected token * jquery.ui.widget.min.js:40
    Uncaught SyntaxError: Unexpected token * jquery.ui.mouse.min.js:40
    Uncaught SyntaxError: Unexpected token * jquery.ui.sortable.min.js:40
    Uncaught SyntaxError: Unexpected token * heartbeat.js:40
    Uncaught SyntaxError: Unexpected token * thickbox.js:40
    Uncaught ReferenceError: _ is not defined shortcode.js:142
    Uncaught ReferenceError: _ is not defined wp-util.js:55
    Uncaught ReferenceError: Backbone is not defined wp-backbone.js?ver=3.9.1:55
    Uncaught ReferenceError: _ is not defined media-models.js?ver=3.9.1:86
    Uncaught TypeError: Cannot read property ‘Attachments’ of undefined wp-plupload.js:410
    Uncaught SyntaxError: Unexpected token * mediaelement-and-player.min.js:40
    Uncaught ReferenceError: mejs is not defined wp-mediaelement.js:42
    Uncaught ReferenceError: _ is not defined media-views.js:6565
    Uncaught ReferenceError: _ is not defined media-editor.js:1076
    Uncaught ReferenceError: _ is not defined media-audiovideo.js:957
    Uncaught ReferenceError: _ is not defined wp-playlist.js:239
    Uncaught ReferenceError: _ is not defined mce-view.js?ver=3.9.1:70
    Uncaught SyntaxError: Unexpected token * jquery.imgareaselect.js:40
    Uncaught SyntaxError: Unexpected token * plugin.js:40
    Uncaught TypeError: undefined is not a function postbox.js?ver=3.9.1:72

    If you need the specific codes line of any of these errors let me know and I’ll post it.
    I’m not a programmer so I can’t get around a lot of this problems. I would appreciate any help anyone can give me concerning these issues. Thanks and advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder and wp-config.php & root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter ARTEDEIMPACTO

    (@artedeimpacto)

    The problems persist with or without plugins. This is happening with the default themes. I have reset the plugins folder and these is from a brand new wp install. I’ve done all that already. This has been happening for a month already and I’ve tried everything.

    Thread Starter ARTEDEIMPACTO

    (@artedeimpacto)

    I’ve checked permissions, nothing worked, included this code in the wp-config.php:

    /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    define(‘CONCATENATE_SCRIPTS’, false);

    but it did not work.

    I use SCRIPT_DEBUG and it fixed the errors

    It sounds like a server issue.

    Thread Starter ARTEDEIMPACTO

    (@artedeimpacto)

    Strangely i replaced the js forlder with a new one, cleared my cache and things worked for about 30 min and then the problem came back. The same happened in the other websites.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Java Script errors, Wp not working properly’ is closed to new replies.