Site logo

Archived topic

This block has encountered an error and cannot be previewed.

9 replies · Started by Yann on April 1, 2021

Viewing posts 1–10 of 10

I installed a Vanilla website which was working fine. And with just GP Premium and get this error while editing any posts, pages. Same for new and old ones. And if I deactivate the GP Theme and plugin I still have the errors.

Here is what I get when I click on copy error.

TypeError: r is not a function
at http://ya.nnpoi.re/wp-includes/js/dist/components.min.js?ver=863b0e64189bf5cd6b5aced6797bc2d6:7:309054
at Bh (http://ya.nnpoi.re/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:126:456)
at Dj (http://ya.nnpoi.re/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:162:476)
at unstable_runWithPriority (http://ya.nnpoi.re/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
at Da (http://ya.nnpoi.re/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280)
at xb (http://ya.nnpoi.re/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:162:231)
at mk.Events.current (http://ya.nnpoi.re/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:236:102)
at Ei (http://ya.nnpoi.re/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:41:59)

Hi there,

Same for new and old ones. And if I deactivate the GP Theme and plugin I still have the errors.

Since this occurs even w/o GP theme and GP premium then we could cross it out as the culprit.

Can you recheck the plugin list and make sure to test with ALL plugins deactivated and test again?

This is error is usually from a plugin conflict.

Let us know how it goes.

Note: make sure WordPress is up to date as well.

I mean once deactivated, the errors that the plugin and theme generate STAY after deactivating. Before activating them for the first time everything is good. I reinstall 3 times and followed all the normal procedures. Checking cache, routing, permission, etc.

Hi there,

Not sure, but it looks as though your core WP install has loaded older JS scripts that are not supported in the newer version of jQuery that WP now installs. Generally most WP installs have jQuery Migrate enabled to fix those issues.

If jQuery Migrate isn't installed then can you try installing this plugin:

https://en-gb.wordpress.org/plugins/enable-jquery-migrate-helper/

Thank you David, you put me on the right track. I finally figure out that it was optimization of the server OUTSIDE of WordPress that messed up with GeneratePress Theme and plugin. And I prefer using the template over the optimizations.

Thats great to hear - glad to be of help.

Hello
I upgraded my hosting to a PHP version to 7.4.
After the upgrade I have been getting the following error when I try to add some pictures in a draft (not all)

“This block has encountered an error and cannot be previewed”.

I tried with the plugin Enable jQuery Migrate Helper but the problem remains.

My hosting company wrote the following msg:
The issue might be that the theme or some of the plugins are not compatible with PHP 7.4.

Can you help me?

Hi Karina,

GP is fully compatible with PHP 7.4.
Can you try disabling all plugins except GP premium to test?

I did what you say but the problem remains

Can you open a new topic, and tell us the steps to replicate this issue?

You can use the private info field to enter the admin login to your site along with your site link, we can take a look for you.

This archived topic is closed to new replies.