Kevin Batdorf
Forum Replies Created
-
Forum: Reviews
In reply to: [Pattern CSS - The CSS Editor For Blocks] Essential for pro developersHey I appreciate the review! And always happy to help when I can. Reach out any time!
Hey @arcaswebdesign I just pushed a release with a fix for this! Thanks again for reporting. If something still isn’t working let me know.
Sure that would be great. Can you send it to my username here @ gmail?
HI,
I’ll try to install both today or this weekend and see if I can reproduce it. Can you link to the plugin/block? Is it a free plugin?
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedOkay so to clarify, you add code to the code block on the live server, it saves properly and works on the front end. But when you go back and edit the page, you get the warning that the block has an update, and accepting that update results in an empty block.
That indicates that something is transforming the code block in the editor during the initial rendering of the editor itself. Some plugins might be adding meta data or attempting to format other blocks (depending on the context of the plugin).
Another follow up question. If on the live site you only add one single code block to a page and nothing else (and delete any default blocks maybe your theme adds automatically), does it work then?
If still not working, and you’re confident the staging server matches the live server, could it be an mu-plugin from your hosting company perhaps? You can check here: https://share.cleanshot.com/P7mQ43v6
Otherwise we’d have to debug on the live server to see what’s different there vs your staging server. Something must be different.
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedDid the code block work at some point while testing your staging site or did it fail at every step?
I created a new post with some code blocks and then I re-enabled all my plugins one-by-one again until all my plugins were re-enabled again.
Especially during this step above. Did it ever work, then stop working?
If it never worked on the staging site, then it could be a conflict with kadence. But did the code block ever work on the live site (like last week) or did you only start using it yesterday?
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedYou could try just disabling all plugins at once. if you have the ability to do that without breaking things for everyone. Then you could at least validate its a plugin conflict. Do you have a lot of plugins? I could also install them locally if you have a list you can provide. It could be a conflict with a theme function too though, or a “mu-plugin” (which sometimes are installed and don’t show up in the plugins list)
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedThe line at the top shows
<div class="wp-block-kevinbatdorf-code-block-pro"></div>which means everything inside the code block is being stripped away by something else in the editor. Do you have other blocks added to this page? What fi you create a page and only add the code block? Can you debug that to isolate when exactly it breaks?Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedHi, yes the browser console. Here’s the instructions for Chrome. Make sure you’re on the “console” tab and reload the page.
You said you found something though. What did you find?
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedThis is usually a conflict with another plugin or block that’s on the page. Or a plugin that’s editing other blocks. Could you try isolating it? Can you also check in the browser console (let me know if you don’t know how) for errors? It will say something like “validation error”
hey @feelosov a forum moderator did that as they like to keep the threads relevant to the original poster. I saw your message in my email and I appreciate the follow-up. Unfortunately there are many things that could break the REST API and it’s usually a matter of narrowing it down.
Have you reported the underlining issue to the other plugin? That’s probably the best next step. If you need anything let me know.
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] Overlaps with contentCan you disable everything and check? It’s either going to be something in the theme, a plugin, or odd server caching done by your hosting company. So we just need to narrow it down so we can identify what it is.
If it were a bug this obvious in the code block plugin itself then no one would be using it at all.
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] Overlaps with contentEven plugins that don’t seem like they could be in conflict could actually be. My guess would be the other code plugin though. Or lightspeed cache
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] Overlaps with contentLooking at the site something is moving the pre tag inside the button, so the entire thing gets nested in he copy button. You’ll have to deactivate plugins until you identify which one is modifying the content, and if you let me know maybe I can find a way to make them work together. You might be able to disable the copy button too and get it working, but that’s not ideal and the conflict could show up in other cases too. Let me know
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] General settings featureI want to do it started in 2026 but It’s not as easy as just having a settings page. The code blocks are rendered in the browser as you edit, so I would have to load them all in one by one, render them, let the user confirm everything is ok, then update the post.
This bring a lot of little issue like whether it creates a post revision and updates the last_modified_at time for the post or not. Or is that something available as an option? That’s one example but there are others.
Would you be ok sitting there as they update? 1000 could take 20 minutes. Or otherwise would have to be done in batches as there are memory issues too.
I appreciate the feedback