- This topic has 10 replies, 3 voices, and was last updated 3 years, 6 months ago by Tom.
-
AuthorPosts
-
October 8, 2020 at 5:28 am #1478311Joao
Hio,
I’m trying to add footer blocks to a live website but once I start using GBlocks inside the block, update fails.
Biggest difference between staging (where everything seems to work) and live website is that staging doesn’t cache. I added a small video below.
Can you help?
JoaoOctober 8, 2020 at 5:57 am #1478345JoaoWhat does the JS script console say – below (private)
October 8, 2020 at 6:51 am #1478433DavidStaffCustomer SupportHi there,
does the issue happen if you choose a different hook ?
October 8, 2020 at 7:14 am #1478477JoaoI tried other only once (before footer if I’m not mistaken). Same issue occurred.
October 8, 2020 at 9:28 am #1478844TomLead DeveloperLead DeveloperStrange – what happens if you disable your SEO plugin?
October 8, 2020 at 10:33 am #1478968JoaoHi Tom, it’s a production site and owner owner is understandably feeling unconfortable with changing live settings. Besides, there’s a staging site and everything worked there.
With one exception: Cloudfare.
I found this https://kinsta.com/knowledgebase/wordpress-updating-failed/#step-2-reenable-the-rest-api-by-resolving-the-specified-error, decided to reopen chrome dev tools, open the network tab, found a failing request… I’m not a developer but somehow was able to see that I’m receiving a {“code”:”rest_forbidden”,”message”:”Sorry, you are not allowed to do that.”,”data”:{“status”:401}}
My focus/objective was/still is very simple: I wanted to replace Lightweight Social Icons with generate blocks button SVG social icons (because of spped issues and removing the fontello.wof call). Do you see other way I can achieve this objective?
October 8, 2020 at 2:47 pm #1479286TomLead DeveloperLead DeveloperHmm, strange – GenerateBlocks isn’t doing anything special that core blocks don’t do, no extra requests, nothing that requires authentication etc..
Shot in the dark – does clearing your browser cache make a difference?
October 8, 2020 at 4:41 pm #1479382JoaoNo difference: just tried logging and editing/saving in privacy mode and in different computer and no, keeps failing.
—
I can add GB containers and, for example, I can add paragraph and quote blocks inside containers.
However, I did some further testing and I now see that image and spacer blocks are also result in “Updating failed.”October 9, 2020 at 9:14 am #1480694TomLead DeveloperLead DeveloperCertainly sounds like something is going on with the server. The only way to debug that really is to disable things until the issue goes away – that way you can narrow down where the issue is coming from.
October 9, 2020 at 9:46 am #1480762JoaoTom, David.
I think you’re right; I need to find a way to debug this in production.
Thank you once again for your time.
JoaoOctober 9, 2020 at 10:50 am #1480888TomLead DeveloperLead DeveloperYou can always push the site to a staging server – that way you can mess with it without affecting the live site.
-
AuthorPosts
- You must be logged in to reply to this topic.