[SmartCrawl Pro] wds-metabox.js Javascript error

When we attempt to load a page or post to edit, the smartcrawl panel shows a continuously spinning daisy wheel next to the SEO tab.
New pages/posts created fail to auto-populate the meta data under the "edit meta" area of this panel.

Looking at my browser's developer tools, I see the following js error:

wds-metabox.js?ver=2.2.5:132 Uncaught TypeError: Cannot read property 'server' of undefined
at is_edited_post_dirty (wds-metabox.js?ver=2.2.5:132)
at refresh_preview (wds-metabox.js?ver=2.2.5:389)
at handle_page_load (wds-metabox.js?ver=2.2.5:192)
at dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,underscore,moxiejs,plupload&ver=630f97c0c5f20c16e02a21a1032ac2f7:3)
at r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,underscore,moxiejs,plupload&ver=630f97c0c5f20c16e02a21a1032ac2f7:3)

  • Kasia Swiderska
    • Support nomad

    Hello brandicoot,

    An error like this usually means that there's some sort of conflict but we'd need to investigate it. I would like to take a closer look at the issue so could you please:

    - enable support access to the site for me? To do that, please go to the "WPMU DEV -> Support" page in your site's back-end, click on "Grant support access" button there and let me know here once it's done

    I'll then access the site and check what might be causing it and how could we fix that for you.

    kind regards,
    Kasia

  • brandicoot
    • Site Builder, Child of Zeus

    Hi Kasia

    No need for back end access. I've been able to determine what causes the conflict.

    We have a custom functions file that contains the following function:

    add_action( 'init', 'stop_heartbeat', 1 );
    function stop_heartbeat() {
    wp_deregister_script('heartbeat');
    }

    When the above is commented out, smartcrawl behaves itself. The above is a legitimate function and we'd like to keep using it. Please pass this on to your developers so they can make the necessary adjustments.

    Kind regards,
    Chris

  • Jayman Pandya
    • Recruit

    Hi Brandicoot,

    Thank you for the debug information and pin pointing to the exact issue. :slight_smile:

    To escalate this to the development team, we would require some more details from you. You can provide that to us by using our contact form (https://premium.wpmudev.org/contact/#i-have-a-different-question) in the following format.

    Subject: "Attn: Jayman Pandya"
    
    - login URL:
    
    - WordPress admin username:
    - WordPress admin password:
    
    - FTP/SFTP credentials
    
    Host:
    Username:
    Password:
    Port:
    
    - Cpanel credentials
    
    Host:
    Username:
    Password:
    
    - Folder path to the site in question:
    
    - Link back to this thread for reference
    
    - Any other relevant URLs/info:

    Note: Don't leave your login details in this ticket.
    Please, reply to the ticket once you have sent the information.

    Thank you
    Jayman

  • brandicoot
    • Site Builder, Child of Zeus

    Hi Jayman

    Theres' no way I'm giving you that level of access to our network and server.

    The information I've provided you with is enough for your development team to replicate the issue on your own servers. Please pass the info on.

    Regards,
    Chris

  • Patrick Freitas
    • Staff

    HI brandicoot

    Hope you are doing well.

    I wasn't able to replicate using the provided function.

    It is possible that another plugin is causing the conflict between this function and SmartCrawl, wouldn't you mind please, run a plugin conflict test?

    Remember, is important that you run this test in a staging site, if you can’t do it you must create a full backup.

    Please deactivate all plug-ins just keep the reported one and the script, and check if the problem is gone. If so, then enable all plugins one by one and find which one is creating the issue.

    If you still having this issue, could you do a theme test, much the same as the plugin test, but now you’re testing themes!

    Activate one of the default WordPress themes, like Twenty Sixteen or Twenty Seventeen.

    Here you will find more information: https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-2

    Let me know the results that you get,
    Best Regards,
    Patrick Freitas

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.