Home Forums WordPress Plugins Hide My WP Script.js error on line 9

This topic is: resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25819
    b8engl
    Post count: 84

    scripts.js:9 Uncaught TypeError: Cannot read property ‘contents’ of undefined

    jQuery(document).ready(function () {
        /*
         * Buddypress Nonce solution
         */
        jQuery(document).ajaxSuccess(function (event, xhr, settings) {
            if (hmwp_tr_arr.enable_nonce == 'on') {
                var content = xhr.responseText;
                var new_js = jQuery.parseJSON(content);
                var get_content = new_js.data['contents'];
                var get_content_n = get_content.replace(/_wpnonce=/g, "_nonce=");
                jQuery('#activity-stream').replaceWith(get_content_n);
            }
        });
    });
    #25823
    Suman M.
    Post count: 12478

    Hi, can you please generate debug report from HMWP Start Tab and post it here as private reply? And which page can I see the above error?
    Is this error only when HMWP is active? If so, can you please try emptying out “Ajax URL” field in HMWP Permalinks & Urls tab?
    Let us know!

    #25830
    b8engl
    Post count: 84
    This reply has been marked as private.
    #25831
    b8engl
    Post count: 84

    I have disable the Replace in AJAX – Replace content of AJAX responses in Source Code option and activated again, the error disappear…

    #25849
    Suman M.
    Post count: 12478

    The features marked * are still in experimental mode and might not work in all the site and conditions. So, if you enable such feature, please check the site thoroughly and if causes any issue, disable that option.

    #25853
    b8engl
    Post count: 84

    I have disable this feature ( Replace in AJAX – Replace content of AJAX responses in Source Code ), no error now!

    #25855
    Suman M.
    Post count: 12478

    Alright! Do let us know if any further issues. Thanks!

    #25857
    b8engl
    Post count: 84

    I will, thanks for the help!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.