Site logo

Archived topic

Block Elements failing to update

11 replies · Started by Patrick on February 8, 2022

Viewing posts 1–12 of 12

I am unable to update my active Elements, block types. When I attempt to update, I get the error "updating failed". I can update the Hook types. The error occurs only with block types.
Also, when I try to create a new Block element, I cannot save it. I get the same error message.
This is a new problem, after updating to WordPress 5.9. I have tested for conflicts on my staging site, and the problem persists after disabling all other plugins. And I have latest versions of the GP and blocks.
Can someone help resolve this issue,please?
Patrick

Hi there,

first thing to check is the permalinks. Are you using a custom permalink structure in Dashboard > Settings > Permalinks?
If so can you change it to the default ID or Page structure.
And if yes or no Save Changes to rebuild permalinks.

Let me know.

Thank you David. I am using the post name for my permalinks.
I have switched to a plain on the staging site and it has fixed the problem. The hook element is now updating there in the staging.
On the live site, I just switched to plain and back to post name and saved. Still not updating.
Since I do not want to change my permalink structure for the live site, how do I fix the problem?
Thank you,
Patrick

Hi Patrick,

It sounds to me like something is up with the way your hosting is handling permalinks - it's possible that mod_rewrite is misconfigured.

Does the regular post/page editor (using Gutenberg) have the same issue saving, or is it only Elements? Are there any recent errors in the error_log file on your server?

Let us know :)

Thanks Tom for the respondse. I host the site on WPEngine and I just called them and discussed your concerns.They have gone over it, and could not find any mod_rewrite misconfiguration or error logs related to this.
No, all posts and pages update well. In fact, other elements like Hook types are updating well, just the Block elements.

When I switched the permalinks to post ID, it fixes the problem, but I do not want to continue and change my permalink structure.

WPEngine support says they cannot see any problem from their end and I should reach back to your team to see if there is something specific they could look into or change.
Patrick

It's a tricky one to debug on our end as we're not experiencing the same issue. It's definitely something server-related as it has to do with your permalinks structure and a core WordPress feature (saving a custom post type in the block editor).

Out of curiosity, what happens if you deactivate your other plugins on the staging site? Does the issue continue?

Thanks Tom. When I deactivate all other plugins on the staging site, the issue remains. The only thing that has fixed the problem so far is changing the permalink structure in both the staging and live site.

I have hired a developer to take a look at it and the guy could not figure out what is wrong.
It started after I upgraded to WP 5.9.
Can the GP team help look at this issue for me, please? Or recommend a developer I can pay to find out what the problem is.
I feel like I am stuck and the only way out is switching themes, something I would rather avoid.
Thank you,
Patrick

Hey Patrick,

Totally get it, I'm happy to take a look.

Can you send me the following in the Private Information area?:

1. Create a staging site (or main site if it has no traffic)
2. WP admin login details
3. sFTP login details

That way I can edit some files to add some debugging functions and see what's going on.

Thanks!

Thank you Tom. I really do appreciate that.
I have sent the logging details in the private area.
Patrick

I believe there's either:

a) An issue with one of the other plugins you're using. Have you tried on the same server using a blank install?
b) Something misconfigured on the server causing the custom post type REST API URL to the return a 404 error

For example, try going to this URL in your browser: https://your-domain.com/wp-json/wp/v2/gp_elements/

This is returning a 404 error instead of returning the data needed for the custom post type to function (including save).

Is it possible to do up another temporary site on the same server with nothing but GP and GPP installed so we can see if it resolves the issue?

Thank you Tom for helping me out here. Finally figured out the cause and fixed it.
I installed on new site and it worked perfectly.
I then disenabled all the plugins and yet it still did not work.
Then realized there is a Pluging Block by AppPresser than I had installed through FTP
https://docs.apppresser.com/article/438-plugin-blocker. I use it for my WP site app.
That was the cause. The Apppresser team says this blocking block should not affect your site but apparently, that is not the case.
Everything is working well so far.
I really do appreciate your assistance with this problem.
Patrick

I'm glad you were able to find the problem. Thanks for letting us know :)

This archived topic is closed to new replies.