-
Valerrr
Hello,
I would like to ask for your help. I inserted PHP code (see below) into the website via the Code Snippets plugin and activated it. Shortly afterwards, the GenerateBlocks and Greenshift blocks stopped working properly on the website and in the editor. As if the blocks had been removed.
I have PHP from you, and it allows me to activate the template and GB.
More in private information
add_filter( 'pre_http_request', function( $pre, $args, $url ) { // Check for GeneratePress URLs if ( 'https://generatepress.com' === $url || 'https://generatepress.com/' === $url ) { return wp_remote_post( 'https://api.generatepress.com', array( 'timeout' => $args['timeout'], 'sslverify' => $args['sslverify'], 'body' => $args['body'], ) ); } // Check for GenerateBlocks URLs if ( 'https://generateblocks.com' === $url || 'https://generateblocks.com/' === $url ) { return wp_remote_post( 'https://api.generateblocks.com', array( 'timeout' => $args['timeout'], 'sslverify' => $args['sslverify'], 'body' => $args['body'], ) ); } return $pre; }, 10, 3 ); -
George
Hello.
As if the blocks had been removed.
What do you mean by that? Are you trying to edit a page and the blocks seem to not be there anymore?
Also, the passwordless login link you have provided is not working anymore.
-
Valerrr
60% of blocks are not available. For example, the page says: Your website does not support the “Container” block. You can try to install the block, convert its content to your own HTML block, or remove it completely.
The login link should work. If it doesn’t, I don’t know how to fix it.
-
George
The login link should work.
Yes, it works fine, apologies.
Can you point me to a page in the admin where you face that problem so I could have a look? I have also set this code to only run in the admin and not the whole site.
-
Valerrr
Problems occur practically everywhere where I use generateblocks or greenshift. For example, the home page. (You need to run page editing.)
-
George
When editing the homepage I can see all the blocks fine, in the backend, am I missing something?
-
Valerrr
Please watch the video in the private message.
-
George
Very strange! As I said, I see the blocks normally on exactly the same page. I see 3 normal parent GB containers. Are you logged in with an admin account?
-
Valerrr
Yes, I am logged in as an administrator.
-
I can see the issue.
Any chance you can create a staging site so we can do some more testing?
Let me know 🙂
-
Valerrr
Hello, I created a copy using WP Staging (private information).
The website was working fine today, but errors are starting to appear again.
For example:
1. Instead of accrodion, it says: An error has occurred in this block and the preview cannot be displayed.
2. When I click on edit any post, it often refuses to load (even though the frontend of the website is working fine).Two days ago, I added a local font to the website using these instructions. I don’t know if the errors could be related to this. https://docs.generatepress.com/article/adding-local-fonts/
Thank you
-
Valerrr
If you find out anything, please let me know.
Thank you.
-
Thanks for the staing site!
I’ve disabled all plugins other than GP Premium, GB, GB Pro and GPCloud, then the issue is gone.
https://app.screencast.com/CVOMCxa1hy6P1So it’s likely one of your plugins is conflicting with GB blocks.
Can you try activate them one at a time to see which one is causing the issue?
-
Valerrr
I deactivated everything except Generatepress and generateblocks, and the problem persisted. That’s not the issue.
-
As I said, I no longer see the issue once all other plugins are deactivated.
This is what I see in the editor: GB blocks all behave normally.
https://app.screencast.com/sMeQLfR6l0qEZIf you are not seeing the same, can you try logging in with the account you created for us?
And via an incognito window or another browser?
-
Valerrr
Hello, today I’m having the same problem again, and it’s happening on all pages on the website.
Basic Gutenberg blocks are working ✅
Plugin blocks (Kadence, GenerateBlocks, Greenshift) are not working ❌➡️ I tried deactivating all plugins except GenerateBlocks. It didn’t help at all.
➡️ I tried clearing the database, but it didn’t help.
➡️ I reinstalled WordPress, and that didn’t help either.⭐The strange thing is that this error does not occur every time. Sometimes the website works fine, other times nothing works.
⭐ It doesn’t work here: https://imgur.com/a/3OGM3vJ
⭐ An hour later, everything is fine: https://imgur.com/a/twZOQYz
The error probably started on the day when I:
➡️ Uploaded your PHP code to update GP one.
➡️ Installed the Flyingpress plugin (I deleted it on the same day)
➡️ Uploaded a local font to the website using your instructions.At the same time, it often happens that when I click on edit page, WordPress does not want to open it. I only see a white screen. When I press ctrl+f5, it sometimes loads, but the blocks do not work.
When the page does not want to load, I look in the console and it shows me about 46 errors. See image + Private information.
For example, this error is strange – react-dom.min.js
- You must be logged in to reply to this topic.