• Resolved anadavosagency

    (@anadavosagency)


    When I try to edit seo setting in a page I get the follwing error: The module ‘yoast-seo’ has encountered an error and cannot be rendered.. And if I acces yoas settings – posts, or page, I get the following error: Cannot read properties of undefined (reading ‘EditorState’). All plugins where checked, theme, also. Please help

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @anadavosagency

    I’m sorry about your experience. Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Thread Starter anadavosagency

    (@anadavosagency)

    Hi.

    I deactivated all plugins except Yoast SEO, and I have the same error. I activated a standard theme and have the same error. I installed Force Update Translations plugin, and forced translation to Yoast SEO plugin, and have the same error. What else can I try?

    Plugin Support Maybellyne

    (@maybellyne)

    I’m sorry you still get the error with only Yoast SEO and a standard WP theme. Still in that state, can you please check if there are Javascript errors on your browser’s console? You may follow the steps here – https://yoast.com/help/how-to-find-javascript-errors-with-your-browsers-console/

    Thread Starter anadavosagency

    (@anadavosagency)

    This is what appears in console when I’m in yoast seo settings. https://dariusbabaioana.ro/wp-content/uploads/2023/10/console1.png

    Thread Starter anadavosagency

    (@anadavosagency)

    And this is how it looks with all plugins deactivated: https://dariusbabaioana.ro/wp-content/uploads/2023/10/Screenshot_1.png

    can you help me resolve this issue? It never happened before

    Plugin Support Maybellyne

    (@maybellyne)

    The screenshots are very helpful, @nadavosagency. Apart from the cannot read properties of undefined (reading ‘EditorState’) in the console, I also see Uncaught SyntaxError: Invalid regular expression: /[!-/:-@[-`{-~?€-???—?·a€€-aˉ?a?€-a1?]/: Range out of order in character. These errors may provoke conflicts and cause other WordPress plugins like Yoast SEO to behave unexpectedly.

    Some time ago, we investigated a similar issue where a user was receiving the same JavaScript error because their site was using UTF-7 character encoding. It could be that your setup does not use the WordPress recommended charset standard.

    In WordPress > Settings > Reading, enter the value UTF-8 and update the settings on your site. Next, refresh the post edit screen and the errors should no longer show up. See screenshot.

    Furthermore, we recommend creating regular backups of your site and database for your site’s health and safety. A backup is crucial before making important changes on your website and provides you with a safety net if something were to go wrong. Learn more about the?benefits of regular backups.

    • This reply was modified 1 year, 4 months ago by Maybellyne.
    Thread Starter anadavosagency

    (@anadavosagency)

    Hi. I dont’t have that option in wordpress-settings-reading. As said in the documentaion, By default, WordPress uses the Unicode UTF-8 (utf8) character set for the?WordPress MySQL database tables.

    Also, in my wp-config file is defined define( ‘DB_CHARSET’, ‘utf8mb4’ );. I also tried with define( ‘DB_CHARSET’, ‘utf8’ );

    The errors are still there.

    Do you have other suggestions?

    Thank you!

    Thread Starter anadavosagency

    (@anadavosagency)

    I resolved the problem.

    Solution: In wordpress wp-config.php file I commented DB_CHARSET and DB_COLLATE. So now it looks like this:
    //define( ‘DB_CHARSET’, ‘utf8mb4’ );

    //define( ‘DB_COLLATE’, ” );

    Now , Yoast SEO works, and the icons in my dashboard are displayed.

    Thread Starter anadavosagency

    (@anadavosagency)

    UPDATE!!!!!

    After I commented the 2 lines, the element settings returned to the default ones. So I reactivated the 2 lines in wp-config.php. Fortunately, the site is back to normal, and Yoast SEO is working.

    So, the solution would be to comment the 2 lines, and then reactivate them ??

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for sharing your workaround

    I have the same problem and none of these solutions have fixed it

    https://i.postimg.cc/Vs0bf2Wd/yoast-error.png

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Cannot read properties of undefined (reading ‘EditorState’)’ is closed to new replies.