ReferenceError: Can’t find variable: tinymce

#43538
  • Resolved Peter
    Rank Math free

    WordPress 5.4
    RankMath 1.0.42

    RankMath is not working, I am getting this in the editor:

    ReferenceError: Can’t find variable: tinymce
    plugins/seo-by-rank-math/assets/admin/js/classic.js:1:17588

    [Error] ReferenceError: Can't find variable: tinymce
    	value (classic.js:1:17588)
    	value (classic.js:1:19924)
    	value (classic.js:1:19532)
    	e (classic.js:1:15160)
    	construct
    	(anonymous function) (classic.js:1:18819)
    	a (classic.js:1:19186)
    	value (classic.js:1:60920)
    	value (classic.js:1:59868)
    	(anonymous function) (classic.js:1:61122)
    	dispatch (load-scripts.php:3:12375)
    	(anonymous function) (load-scripts.php:3:9094)

    How can I fix it?

    Thanks.

    • This topic was modified 4 years, 8 months ago by Peter.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Todd
    Rank Math free

    Hi Peter,

    Thanks a lot for your query and we are so sorry about the trouble this must have caused.

    Looks like the plugin didn’t install correctly.

    Please remove it and install it once again.

    If that doesn’t work, we might need to take a closer look at the settings. Please include your WP logins in the designated Sensitive Data section.
    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.

    Peter
    Rank Math free

    Hello,

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

    Thank you.

    Peter
    Rank Math free

    That did not work, I just replaced it from a fresh download and nothing.

    You now have the info to login, please be careful. See the 2 latest posts, all the ones before, without problems. Maybe the latest update is the problem.

    Thanks.

    • This reply was modified 4 years, 8 months ago by Peter.
    Todd
    Rank Math free

    Hi,

    I don’t see the error.

    I tried editing new and old posts.

    Please tell me the steps I need to follow to see the issue.

    Peter
    Rank Math free

    I just received an email from WordPress. The ones it sends when there are problems.

    Error
    ==================
    E_ERROR line 275 file /public_html/wp-content/plugins/seo-by-rank-math/rank-math.php. Error: Uncaught Error: Class 'RankMath\Rollbar' not found in /public_html/wp-content/plugins/seo-by-rank-math/rank-math.php:275
    Stack trace:
    #0 /public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(185): RankMath->instantiate()
    #1 /public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(164): RankMath->setup()
    #2 /public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(503): RankMath::get()
    #3 /public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(507): rank_math()
    #4 /public_html/wp-settings.php(377): include_once('/home/p...')
    #5 /public_html/wp-config.php(94): require_once('/home/p...')
    #6 /public_html/wp-load.php(37): require_once('/home/p...')
    #7 /public_html/wp-login.php(12): require('/home/p...')
    #8 {main}
     thrown

    Please tell me the steps I need to follow to see the issue.

    Just go to a post and edit it. You will not be able to use RankMath. Open console and see the error.

    Thanks.

    Hello,

    Thank you for contacting Rank Math today.

    We have released a new update with a couple of fixes. I cannot seem to reproduce the issue when editing the latest posts.

    Could you please test this again and let us know if you can still reproduce it?

    I can also recommend that you perform a hard refresh on your browser to clear any cached JS.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Peter
    Rank Math free

    Please go to the latest post in my site and add the keyword RankMath to it.

    Thanks.

    Hi Peter,

    Thank you for the reply.

    I’ve added the keyword and saved the post without any errors. Please check and let me know if you are still experiencing the problem.
    You might also want to test this from a different browser.

    Thank you.

    Peter
    Rank Math free

    Well yeah, the idea is that you have to see RankMath Working, not just inserting a forced keyword and that’s it.

    1- Why did you translate the published article to English and save it like that?

    2- Please send me a screenshot (private) with the rank keyword suggestion is showing you and Rank Math Working. (Without translating my articles to English please)

    So.

    I shared the console error.
    I shared an email WordPress sends when it has problems.

    Both shows exactly the problem and the lines.

    And you are telling me you are able to edit a post and Rank Math works perfectly fine?


    @Todd
    can you please login as well.

    Thanks.

    Todd
    Rank Math free

    Hi Peter,

    I have shared a screencast with you showing me creating a brand new post and adding focus keyword using Rank Math’s keyword suggestion.

    It works fine.

    If that is now how you use it, please share a screencast created using loom.com so we can check.

    Also, you can disregard any warnings unless you are encountering an actual problem.

    Thank you.

    Peter
    Rank Math free

    Hello,

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

    Thank you.

    Peter
    Rank Math free

    I added a video as well and after that I discovered the problem.

    I have the visual editor off in my user and I just disabled it in your profile as well.

    Now please go and try again. And please share the result.

    If I enable visual editor in my profile, it works.

    So, there you have the problem that needs a fix. That was broken in the latest updates, before there was no problem at all.

    At least I will be able to fix my posts using visual ON.

    Please let me know when you see the video and when you test, so I can delete the video. Also please delete yours.

    Thanks.

    Hi Peter,

    Thank you for sharing these findings.

    I have now been able to replicate this problem on my local test environment too.

    This has been submitted to our dev team and we will be deleting the videos as soon as the rest of the team have taken a look.

    We appreciate your continued patience. Thank you.

    Todd
    Rank Math free

    Hello,

    We released a quick Beta update to fix the issue.

    Please enable the Beta update by following this:
    https://rankmath.com/kb/version-control/#beta-updates
    beta update

    If you are unable to see an update, please clear Rank Math’s transients from:
    WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    remove transients rank math

    Please clear the caches, server, and WordPress after updating.

    If the issue is still not resolved, please let us know.

    We are here to assist. Thank you.

    Peter
    Rank Math free

    Thank you Todd, I can wait for the oficial release.

    Did you delete the video and can I delete mine?

    Thanks.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 16 total)

The ticket ‘ReferenceError: Can’t find variable: tinymce’ is closed to new replies.