Site logo

Archived topic

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

7 replies · Started by Karina on August 24, 2022

Viewing posts 1–8 of 8

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 have the plugin Enable jQuery Migrate Helper but the problem remains. I have also try disabling all plugins except GP premium to test.

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 there,

I have also try disabling all plugins except GP premium to test.

So that didn't resolve the issue?

If so can you try #4 here?
https://docs.generatepress.com/article/debugging-tips/

We haven't had any other reports on this so I doubt it's a GP issue. PHP7.4 isn't new either.

Hello Leo
Thanks for looking into my problem.
I activated the core WordPress theme and the problem remained. So I would think that is not a Generatepress problem.
Anyway my host company insist that the problem is related to the theme. They wrote me the following msg:

We noticed in the theme section the message below:
"Broken Themes
The following themes are installed but incomplete."
You need to contact your theme developer about this issue.
And also we enabled the debug option in WordPress and there is no relevant information about this issue.
Based on our research, this kind of issue is all related to themes.

Does this make any sense for you?

Hi there,

can you resupply the admin user Login and Password in the Private Information Field.

Thanks!

OK, so in Dashboard > Tools -> Site Health. and there is a warning that site is NOT using HTTPS.
Go to Settings > General and update the WordPress Address (URL) and Site Address (URL) so they are https

Then go to Settings > Permalinks and click save changes this will regenerate any permalinks.

I cannot say if this is the cause of the block error but it needs to be fixed first.

If the issue only occurs with that image, then it maybe a database issue.
Delete that image.
Then re-upload that image to WordPress > Media with a different filename. ie. It must be different to: Chile-Fotos-Antartica.jpg

This archived topic is closed to new replies.