Cannot read properties of undefined (reading ‘documentOptionsMenu’)

#1056462
  • Resolved Kristof Gheyssens
    Rank Math free

    When I open a page in the Elementor editor, I immediately get this error message:

    elementor.js?ver=1.0.247:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘documentOptionsMenu’)
    at t.value (elementor.js?ver=1.0.247:1:48977)
    at new t (elementor.js?ver=1.0.247:1:48690)
    at elementor.js?ver=1.0.247:1:54848
    at elementor.js?ver=1.0.247:1:55757

    and when I click on SEO:

    Uncaught Error: Routes: panel/elements/rank-math not found.
    at Routes.error (web-cli.min.js?ver=3.29.2:3:105410)
    at Routes.validateRun (web-cli.min.js?ver=3.29.2:3:67953)
    at web-cli.min.js?ver=3.29.2:3:102219
    at Routes.validateRun (web-cli.min.js?ver=3.29.2:3:103808)
    at Routes.run (web-cli.min.js?ver=3.29.2:3:68134)
    at Routes.to (web-cli.min.js?ver=3.29.2:3:104340)
    at API.route (web-cli.min.js?ver=3.29.2:3:59794)
    at HTMLButtonElement.<anonymous> (editor.min.js?ver=3.29.2:3:1150901)
    at HTMLButtonElement.dispatch (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,underscore,backbone,wp-api-request,wp-hooks&ver=6.8.1:2:40035)
    at v.handle (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,underscore,backbone,wp-api-request,wp-hooks&ver=6.8.1:2:38006)

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    We apologize for the issue you are facing with Elementor and the error messages you are encountering. This type of error can often be caused by a conflict with another plugin or a JavaScript issue in the editor.

    Here are a few steps you can take to troubleshoot this issue:

    1. Check for Plugin Conflicts: Deactivate all other plugins except for Rank Math and Elementor to see if the issue persists. If the error goes away, reactivate the plugins one by one to identify which one is causing the conflict.

    2. Clear Cache: Clear your browser cache and any caching plugins you may have on your site. Sometimes, cached files can cause issues with JavaScript.

    3. Update Plugins and Themes: Ensure that both Elementor and Rank Math, as well as your theme, are updated to their latest versions. Outdated versions can lead to compatibility issues.

    4. Check Console for Errors: Open the Developer Tools in your browser (usually F12 or right-click and select "Inspect") and check the Console tab for any additional errors that might provide more context about the issue.

    5. Firewall Settings: If you have a firewall or security plugin, ensure that it is not blocking any scripts or resources that Rank Math needs to function properly.

    If these steps do not resolve the issue, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math

    Hello,

    Please click this button and paste the data here so we can check your site

    clipboard

    Looking forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Go to Rank Math → Status & Tools → Database Tools and remove Rank Math Transients, then clear all cache and check the issue again.

    Once both plugins are up to date and caches are cleared, the Elementor editor and SEO panel should load without errors.

    If the issue persists, try deleting, reinstalling and reconnecting Rank Math.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Clearing Transients doesn’t work.

    Client has already filled in most of the SEO via the Classic Editor. When I delete RM, will I loose all SEO data?

    Hello,

    You will neither lose your SEO settings nor data when you delete Rank Math, as those information are safe in the database.

    Kindly let us know how the resolution goes.

    We look forward to helping you.

    Thank you.

    I have deactivated, deleted and reinstalled RM, still does not fix the issue.
    The JS error shows as soon as the page loads, even before I can click on SEO in the Elementor Tab.

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    We logged in to your website and are unable to replicate the issue.

    We checked, and there is no Rank Math-related error showing in the log. The SEO tab also works fine.

    Are you seeing this error on any specific page?

    Let us know how it goes.

    The issue has been resolved by the latest Elementor update.

    Hello,

    Glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this ticket.