The editor has encountered an unexpected error.

  • Author
    Posts
  • #3297813

    rwayneshoaf
    Member

    Hi,

    I’m using the the block editor in https://vampirecomics.wordpress.com/wp-admin/ and as of a couple of days ago began getting the error below when I try to create, copy, or edit a page.

    I don’t have any plug-ins as I’m using the Blogger Plan of wordpress.com with the theme Baskerville 2.

    I saw several other posts with the same generic error message but didn’t see any solutions posted, or any with the same specific error.

    Wayne

    The generic error:
    “The editor has encountered an unexpected error.”

    The specific error is:

    TypeError: Cannot read property ‘raw’ of undefined
    at https://s2.wp.com/_static/??-eJyFksFuwzAIhl+orrNKnXqp9iyJQQuJDRYmTfv2cy87beRmi08/+MNxr4E45Q2wxaVFoGYRpJwL8Xlpp/hXfbaSA7KRETaXbLOoJQF0qSlLWv2gBzKIxiKl93XJFV/vhn6cUpqD4dOPSlKqcG/ohyVRDDDa6FId8C0AVsXUKXAxFqN08Dzenm7dZEUOuR996YR77Qt0oV0UkmwHW0EgEz3+BX2oSUd9+aakBMUR/qX6Fct0ILLm7ZvYF/keO1T59fRV7h/X6/A5DMPtsvwAK5gwtw==:110:186337
    at Array.map (<anonymous>)
    at https://s2.wp.com/_static/??-eJyFksFuwzAIhl+orrNKnXqp9iyJQQuJDRYmTfv2cy87beRmi08/+MNxr4E45Q2wxaVFoGYRpJwL8Xlpp/hXfbaSA7KRETaXbLOoJQF0qSlLWv2gBzKIxiKl93XJFV/vhn6cUpqD4dOPSlKqcG/ohyVRDDDa6FId8C0AVsXUKXAxFqN08Dzenm7dZEUOuR996YR77Qt0oV0UkmwHW0EgEz3+BX2oSUd9+aakBMUR/qX6Fct0ILLm7ZvYF/keO1T59fRV7h/X6/A5DMPtsvwAK5gwtw==:110:186277
    at Ed (https://s1.wp.com/_static/??-eJyNy0sOwjAMANEL4bqIIpUF4ixuYoRDfoqdInF6WLBEhfW8wUcFyS52z4pB0YsaUrdShyR5CLrDb2KJZfkF3B2Um1CUJ5mUDJ6v1KNBpfYOm/vK2ZeGjcnZ3xB8SZuY1VFluFmKH3dJ5/1xOszTOJ/G8AKnt2Ia:121:310)
    at ph (https://s1.wp.com/_static/??-eJyNy0sOwjAMANEL4bqIIpUF4ixuYoRDfoqdInF6WLBEhfW8wUcFyS52z4pB0YsaUrdShyR5CLrDb2KJZfkF3B2Um1CUJ5mUDJ6v1KNBpfYOm/vK2ZeGjcnZ3xB8SZuY1VFluFmKH3dJ5/1xOszTOJ/G8AKnt2Ia:133:391)
    at eg (https://s1.wp.com/_static/??-eJyNy0sOwjAMANEL4bqIIpUF4ixuYoRDfoqdInF6WLBEhfW8wUcFyS52z4pB0YsaUrdShyR5CLrDb2KJZfkF3B2Um1CUJ5mUDJ6v1KNBpfYOm/vK2ZeGjcnZ3xB8SZuY1VFluFmKH3dJ5/1xOszTOJ/G8AKnt2Ia:160:307)
    at fg (https://s1.wp.com/_static/??-eJyNy0sOwjAMANEL4bqIIpUF4ixuYoRDfoqdInF6WLBEhfW8wUcFyS52z4pB0YsaUrdShyR5CLrDb2KJZfkF3B2Um1CUJ5mUDJ6v1KNBpfYOm/vK2ZeGjcnZ3xB8SZuY1VFluFmKH3dJ5/1xOszTOJ/G8AKnt2Ia:161:168)
    at wc (https://s1.wp.com/_static/??-eJyNy0sOwjAMANEL4bqIIpUF4ixuYoRDfoqdInF6WLBEhfW8wUcFyS52z4pB0YsaUrdShyR5CLrDb2KJZfkF3B2Um1CUJ5mUDJ6v1KNBpfYOm/vK2ZeGjcnZ3xB8SZuY1VFluFmKH3dJ5/1xOszTOJ/G8AKnt2Ia:173:237)
    at fa (https://s1.wp.com/_static/??-eJyNy0sOwjAMANEL4bqIIpUF4ixuYoRDfoqdInF6WLBEhfW8wUcFyS52z4pB0YsaUrdShyR5CLrDb2KJZfkF3B2Um1CUJ5mUDJ6v1KNBpfYOm/vK2ZeGjcnZ3xB8SZuY1VFluFmKH3dJ5/1xOszTOJ/G8AKnt2Ia:172:115)
    at gg (https://s1.wp.com/_static/??-eJyNy0sOwjAMANEL4bqIIpUF4ixuYoRDfoqdInF6WLBEhfW8wUcFyS52z4pB0YsaUrdShyR5CLrDb2KJZfkF3B2Um1CUJ5mUDJ6v1KNBpfYOm/vK2ZeGjcnZ3xB8SZuY1VFluFmKH3dJ5/1xOszTOJ/G8AKnt2Ia:170:196)

    The blog I need help with is vampirecomics.wordpress.com.

    #3297819

    Hi there,

    I have added MODLOOK to this thread so staff can help you with this issue.

    Please keep patience while someone from support staff gets back to you.

    https://en.support.wordpress.com/getting-help-in-the-forums/#how-do-i-get-a-moderatorstaff-reply-for-my-question

    Thanks!

    #3297849

    fstat
    Staff

    Hi there,

    This looks like an issue with your browser. Please try the following:

    * Clear your browser’s cache and cookies:

    https://en.support.wordpress.com/browser-issues/#clearing-your-browser-cache

    * Check that JavaScript is enabled and supported by your browser:

    http://enable-javascript.com/

    * Disable any ad-blocking and security extensions on your browser

    * Check that you’re using the latest version of your browser:

    http://www.whatbrowser.org/

    * Try another browser:

    https://browsehappy.com/

    If all of the above doesn’t work or you have more questions, just let me know and I’ll be happy to help!

    #3299118

    rwayneshoaf
    Member

    Hi,

    Thanks for getting back to me so quickly.

    I did everything on the list you sent and the problem disappeared — for a couple of days. Now it’s back again.

    This time I repeated the same steps. I’m using Chrome. But no go. I still get that error (The editor has encountered an unexpected error.) and can’t edit pages.

    I’ve now tried with clean installs of Edge, Internet Explorer, FireFox, and Opera. They all either give me that error, or in the case of Edge, refuse to connect to vampirecomics.wordpress.com/admin (Can’t connect securely to this page. This might be because the site uses outdated or unsafe TLS security settings.).

    I’m running Windows 10 on a computer that was purchased in January. Our local cable provider (Spectrum) is our ISP.

    Any other suggestions?

    Wayne

    #3299161

    fstat
    Staff

    Since it’s happening in all your installed browser’s the cause might be your antivirus software. Can you please disable any anti-virus, anti-malware, or any security software you have currently running and see if you can get the site to load?

    #3299259

    rwayneshoaf
    Member

    I disabled all of Norton 360 and it no impact on my ability to edit. I still get that error: The editor has encountered an unexpected error.

    Wayne

    #3299361

    rwayneshoaf
    Member

    btw, this problem only occurs when I use the block editor. I would be fine to switch to classic but classic doesn’t support galleries and most of my pages (100+) use galleries.

    This gets me wondering too if the gallery is what might be causing the issue. I don’t have plug-ins (at least not ones I can manage) because I’m not on the business plan.

    Wayne

    #3299659

    kokkieh
    Staff

    I would be fine to switch to classic but classic doesn’t support galleries and most of my pages (100+) use galleries.

    The classic editor does support galleries. Galleries has been a feature of WordPress.com for many years, since before the block editor was even conceived:

    https://en.support.wordpress.com/gallery/

    Are you using multiple galleries on a single page? And just to confirm, this only happens when you try to edit existing pages, not when you create new pages?

    Can you please check if it makes any difference to edit the pages from My Site ->Pages rather than directly via WP-Admin?

    Also please check if you see any errors in the browser developer console. If you do, please take screen shots of those and upload them to the media library at My Site ->Media ->Add so we can take a look.

    https://en.support.wordpress.com/browser-issues/advanced-browser-troubleshooting/#javascript-errors

    #3300179

    rwayneshoaf
    Member

    Regarding galleries, I am so new to WP that it took me a while to find the gallery creator in the classic editor; but it doesn’t seem to have the same ease of creation, ordering, and editing as do the block galleries. Also I was unable to apply the “alignwide” class to them in the same way I can with block galleries. Until the current problem is resolved, I’ve been creating HTML block galleries by hand using classic editor (painful). Anyway, I’ll do some studying on classic editor galleries. Thanks for the link.

    I am using multiple galleries on some pages, this page for instance, which doesn’t give me an error when I open it for edit:
    https://vampirecomics.wordpress.com/vampi/

    The page below is one of many that always gives me the “editor has encountered an unexpected error” whether I try to edit it or copy it from WP-Admin or My Site > Pages. I do not get the error when I create a new page from scratch. The page below has only one gallery:
    https://vampirecomics.wordpress.com/vampi/vampi-harris-anarchy-15-2002-february/

    Here are two images from the console when I try to edit or copy the page above:
    https://vampirecomics.files.wordpress.com/2019/04/console-edit-page.jpg
    https://vampirecomics.files.wordpress.com/2019/04/console-copy-page.jpg

    I really appreciate your help.

    #3300239

    kokkieh
    Staff

    Here are two images from the console when I try to edit or copy the page above:

    Thanks for that. Those runtime errors point to a connection issue – what could be happening is that the editor is taking too long to load in your browser, causing the connection to time out before all the code finishes loading. I’m also able to edit the page you linked to above without any issues in the block editor, which supports the theory that the problem is something local to your setup, rather than a problem with your site or the editor themselves.

    Please try unplugging your modem/router for a few seconds to clear its connection cache. It might also help to flush your computer’s DNS cache – that’s OS-specific, so please search online for the instructions for your specific setup.

    Otherwise, it might also be good to try a different connection if that’s possible, to see if that makes any difference.

    but it doesn’t seem to have the same ease of creation, ordering, and editing as do the block galleries.

    If you’re using the My Sites editor, creating a gallery in the classic editor should work exactly the same as creating a gallery in the tiled gallery block, as described in the support page I provided above.

    Also I was unable to apply the “alignwide” class to them in the same way I can with block galleries.

    That is not possible in the classic editor, no, as the alignwide feature is a new feature introduced in the block editor which had never existed before.

    ============

    As an aside, I’m curious why you’re doing everything on pages. Personally I think posts would be better for this type of content. Then people can subscribe to your site and be notified each time you add new content – this doesn’t happen when you add new pages.

    Posts also rank higher in search engine results than pages, and with posts you can then use categories to organise content on your site and in the menu, instead of having to maintain an extremely complex menu structure by listing each page individually.

    I also have to warn you that if you keep adding new pages to the menu it will break eventually, and having to many menu items can also affect your site’s loading time.

    You know what your end goal is with the site and what will work best for you, so if you’re happy with the current setup that’s perfectly fine, but please keep these points in mind.

    #3300765

    The classic editor does support galleries. Galleries has been a feature of WordPress.com for many years, since before the block editor was even conceived:

    https://en.support.wordpress.com/gallery/

    Are you sure? I thought classic galleries were removed from the classic editor a few weeks ago. The video in the link you posted seems to be presenting obsolete information.

    I much prefer classic galleries to block galleries, so if you can provide some instructions on how to create a classic gallery, your help would be greatly appreciated.

    #3300787

    rwayneshoaf
    Member

    Re connection speed, I unplugged and turned off the modem/router for 45 seconds. Running speed tests before and after didn’t make any difference (69+ Mbps download speed and 5.8 Mbps upload speed). I also tried editing that page before and after, still got the error both times. But I also tried to edit the page using a connection at my day job where I’m on a 1 Gbps line. I didn’t get the error there. So you may be onto something there. Still I would think 69+ Mbps download speed is pretty respectable. Or is that not the case? Also if the speed were the major issue, wouldn’t I encounter the error on the biggest pages? The example I sent you is one of the smaller pages.

    I also cleared the DNS cache. That made no difference.

    ————

    I appreciate you asking me questions about why I’m doing various things the way I am because I’m not really certain I’m taking the best approach. I’m definitely a newbie to WordPress.

    1) Why pages instead of posts? Because I don’t really want to use the functionality of a blog. I’m just interested in the site as a way to organize information that won’t have a broad appeal.

    2) Why did I pick WordPress then? Because it has a good reputation and after testing several other services over a month or so, it came the closest to fulfilling all my requirements. Also because the site is mostly for me and to have access to the information on it when I’m not at home. So high page ranking is not a priority for me.

    3) Regarding the number of pages and menu items. I’m particularly interested in your comments in this regard. I currently have 4 top menus and 67 sub menus. I expect that to grow to 6 or more top menus and 120 or more sub menus with a total of about 2700 pages. This is because I’m moving from another site that has the same scope at http://www-bcf.usc.edu/~shoaf/vampirella/. The universe of organizational catagories is limited to around 200 or so and will grow very slowly, so I’m trying to tightly organize that known universe rather than having a looser organization. Maybe I should be using a database-driven site. Maybe WordPress is the wrong choice for me. I would really appreciate your comments in this regard.

    To recap, the error still occurs — unless I just work on it at my day job — not really an option ;) — unless I switch over the classic editor for pages that give me that error.

    Wayne

    #3300832

    kokkieh
    Staff

    @rodrigospacecraft

    Are you sure? I thought classic galleries were removed from the classic editor a few weeks ago. The video in the link you posted seems to be presenting obsolete information.

    Have you tried it? I just did, and I was able to create a gallery, using the classic editor at My Site ->Posts, exactly as shown in that video. If you’re using WP-Admin it works differently – there you click the Add Media button, and then the Create Gallery option – but there also hasn’t been any changes to that process.

    There is no reason at all why we would remove galleries from the classic editor.

    @rwayneshoaf

    But I also tried to edit the page using a connection at my day job where I’m on a 1 Gbps line. I didn’t get the error there. So you may be onto something there. Still I would think 69+ Mbps download speed is pretty respectable.

    I doubt it’s the connection speed. I’m on a 5Mbps connection (yes, I know!), and I can edit your pages without problem. So rather, something between your computer and our servers are causing the connection to time out.

    In your screen shots of the console errors I see a > 6 in a red frame next to the runtime errors. Do you see any additional info if you click on that?

    1) Why pages instead of posts? Because I don’t really want to use the functionality of a blog. I’m just interested in the site as a way to organize information that won’t have a broad appeal.

    Fair enough :)

    Many people use their sites like that.

    2) Why did I pick WordPress then? Because it has a good reputation and after testing several other services over a month or so, it came the closest to fulfilling all my requirements

    That’s good to hear!

    I currently have 4 top menus and 67 sub menus. I expect that to grow to 6 or more top menus and 120 or more sub menus with a total of about 2700 pages.

    I would definitely expect that you’ll start experiencing problems with a menu containing 2700 links. A menu is one of the elements on your page that loads in full when someone views your site, and 2700 links on a single page load is a lot.

    Maybe I should be using a database-driven site. Maybe WordPress is the wrong choice for me. I would really appreciate your comments in this regard.

    Perhaps just having an alternative to a menu would work. For example, create pages for the different categories, and manually create an index of links on each respective page. Then you can only add links to the index pages to your menu.

    As the Gutenberg project that gave us the block editor expands into full-site editing we might also be seeing the introduction of menu blocks, which would allow you to create menus inside pages, rather than just a plain list of links, so that’s something to keep in mind.

    But otherwise a wiki-type site, or another format that is more based on a searchable database as you say, might be a better fit. I’m afraid I’m not able to suggest possible platforms in that regard, though.

    #3300955

    Have you tried it? I just did, and I was able to create a gallery, using the classic editor at My Site ->Posts

    It doesn’t work for me. About 2 weeks ago the “+” icon disappeared. I just checked in both Safari and Chrome. Neither have a “+” icon to the left of the “Paragraph” menu for a “Classic” block. You’re saying that wasn’t intentional?

    #3301078

    Howdy – I’ve read over this a couple times to get caught up. Yes, you can still create galleries on pages with the classic editor.

    Click on Pages – Add New – Media – Create Galleries

    Same rules apply to add a gallery in to a post.

    Click on Posts – Add New – Media – Create Galleries

    You should see these options.

    If you see something different, please take a screen shot, and add it to the media library. From there we can view it. Also, copy + paste the link from the browser bar where you’re working on the galleries from. That will give us a solid understanding of where you’re working from. Thanks :)

    #3301314

    rwayneshoaf
    Member

    In your screen shots of the console errors I see a > 6 in a red frame next to the runtime errors. Do you see any additional info if you click on that?

    There were a lot more errors this time. I uploaded the screen shots of the console. There are 10 of them all numbered from:
    https://vampirecomics.files.wordpress.com/2019/04/console-edit-01.jpg
    thru
    https://vampirecomics.files.wordpress.com/2019/04/console-edit-10.jpg

    I also expanded some the collapsed errors.

    #3301364

    kokkieh
    Staff

    @rodrigospacecraft, I think it would be better if you open your own thread so we can troubleshoot there why you’re not seeing that option:

    https://en.forums.wordpress.com/?new=1

    Add the tag modlook, and we’ll reply to you there.

    #3301367

    kokkieh
    Staff

    @rwayneshoaf,

    Thanks for the screen shots.

    It looks like it’s just repeated instances of the errors we already know of, so unfortunately no new information.

    Earlier @fstat asked you to disable your anti-virus software. I wonder if your firewall might be blocking something, though. Can you try temporarily disabling that and seeing if it makes a difference?

    I also just want to confirm, you created these pages in the block editor from the start, correct? You didn’t start with the classic editor and then later converted it into blocks?

    #3301372

    kokkieh
    Staff

    @rwayneshoaf, it looks like this might actually be a known issue, so we’ve added your report to the ongoing investigation about this. Please do still try the firewall step I suggested above.

    #3301916

    rwayneshoaf
    Member

    I had turned off the firewall previously and it had no effect. But on your instructions I tried it again. The error didn’t reoccur. I turned the firewall back on. Miraculously the error still didn’t reoccur.

    I probably should have tried to get the error to occur before turning off the firewall, but I was convinced it would do no good.

    When I continued working in block editor with the firewall back on, I noticed that the settings panel was closed, so I opened it, and almost immediately I got the error again. So I turned the firewall off again and opened a page that always errors. The settings panel was open and I almost immediately got the error. I reopened the same page and quickly closed the settings panel and the error never occurred.

    So my conclusion is that something about the settings panel being open is what causes the error. It has nothing to do with the firewall.

    By the way, in response to your other question, I was never able to predict which pages would cause the error. But after it happened once on a given page, that page consistently caused the error every time thereafter. All of the pages were created using the block editor. I only switched to the classic editor after it became impossible to work using the block editor due to the error. Some pages continued to be editable using the block editor, but gradually the number of pages impacted by the error was increasing.

The topic ‘The editor has encountered an unexpected error.’ is closed to new replies.