• Getting some errors while editing a new blog post, this happens on some of my other blog posts that haven’t been published yet as well.

    I can’t get to the Text Editor to put in HTML. I click on the Text Editor tab and nothing happens.

    The blog entry is 1328 words, but the word count at the bottom of the Visual editor says it is 0 (zero) words.

    I click on the Help at the top of the page and like the Text Editor tab, nothing happens.

    What I have tried:
    I have disabled all plugins and this still happens.
    I have cleared the cache and reloaded the page and there is no change in the behavior.
    I have tried reinstalling the version and the errors persisted.

    JavaScript console errors (multiple of the same one):
    Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
    at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,thickbox,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,suggest,jquer&load[]=y-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autoco&load[]=mplete,tags-suggest,tags-box,underscore,word-count,post,editor-expand,shortcode,backbone,wp-util,wp-backbone,media-models,wp-plu&load[]=pload,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,edito&load[]=r,wplink,media-upload,wp-embed&ver=4.9.5:712)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:9)
    at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2)
    at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2)
    at a.fn.init.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at Object.<anonymous> (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11)
    (anonymous) @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,thickbox,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,suggest,jquer&load[]=y-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autoco&load[]=mplete,tags-suggest,tags-box,underscore,word-count,post,editor-expand,shortcode,backbone,wp-util,wp-backbone,media-models,wp-plu&load[]=pload,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,edito&load[]=r,wplink,media-upload,wp-embed&ver=4.9.5:712
    dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3
    r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3
    trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3
    a.event.trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:9
    (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2
    trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3
    (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11
    i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2
    fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2
    y @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:4
    c @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:4
    XMLHttpRequest.send (async)
    send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:4
    ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:4
    j @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11
    (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11
    setTimeout (async)
    k @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11
    m @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11
    n @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11
    (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:11
    dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3
    r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jcnordyke

    (@jcnordyke)

    One other thing that I’ve tried is using Safari as well as using Chrome. The errors were present in both browsers.

    Hi @jcnordyke,

    Try the following:
    Open wp-config.php in your FTP and add the line
    define('CONCATENATE_SCRIPTS', false);

    Test your backend again.
    If this is not working check your php.ini if magic_quotes is enabled.
    If so disable it.

    Let us know if this solved your issue.

    Thread Starter jcnordyke

    (@jcnordyke)

    Thanks for the help.

    I added the CONCATENATE_SCRIPTS line to the wp-config.php file and three things happened.

    1. It didn’t fix the problem.
    2. The error from my original post is persisting.
    3. It introduced a new error.

    Fixed wp-config.php file

    The new error is :

    Uncaught TypeError: a(…).get_hash is not a function
    at HTMLAnchorElement.<anonymous> (post_page.min.js?ver=2.5.11:1)
    at HTMLAnchorElement.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at HTMLAnchorElement.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:9)
    at HTMLAnchorElement.<anonymous> (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2)
    at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:2)
    at a.fn.init.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,heartbeat,autosave,moxiejs,plupload&ver=4.9.5:3)
    at HTMLDocument.<anonymous> (post_page.min.js?ver=2.5.11:1)

    So, I tried to check the php.ini. My instance of WP didn’t have a php.ini in the wp-admin folder. I added one and added the following line to it.

    magic_quotes = Off

    I logged back in and still no change.

    Hi @jcnordyke,

    Have you tested disabling your theme and test it on a standard theme of WordPress?
    The JavaScript library has been removed and might be needed adding manually in your theme.

    Thread Starter jcnordyke

    (@jcnordyke)

    Going to a standard WP theme seems to have fixed it. I’m was using the OptimizePress theme. How do I continue to use that theme and get it to work? You mentioned manually adding the JavaScript library. Is that what I need to do?

    Hi @jdnordyke,

    Well there are two ways you can include a library.
    1. With a plug-in.
    2. Enqueue a script in functions (this is probably the best way to go as you would like to reduce plug-ins as much as possible).

    1. The plug-in ‘Use Google Libraries‘ can be used.

    2. To enqueue an external script you first need to de-register the official script being used by WordPress (it’s probably not there, but just to be sure), and then register the new external script. Just add the following code in functions.php of your theme.

    // include custom jQuery
    function Optimizepress_include_custom_jquery() {
    
    	wp_deregister_script('jquery');
    	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array(), null, true);
    
    }
    add_action('wp_enqueue_scripts', 'Optimizepress_include_custom_jquery');

    Let me know if it solved your issue.

    Thread Starter jcnordyke

    (@jcnordyke)

    Thanks for helping get me this far. Neither of those worked. I tried #2 first and then #1, but neither of them solved the issue.

    I just found out that I have OptimizePress 2.5.11 and I may need to update that now.

    Hi @jcnordyke,

    Thanks for letting us know, indeed always keep your theme and plugins updated.
    Hope updating your theme solves the issue.

    EDIT: I checked OptimizePress website, this should solve your issue according to their post.

    • This reply was modified 8 years, 1 month ago by helldog2018. Reason: Added OptimizePress post about issue
Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Post editing page not working, java errors’ is closed to new replies.