Cloudflare blocking rest API calls from WordPress’ Gutenberg editor.

Recently WordPress has updated their WYSIWYG editor to Gutenberg which is absolutely fantastic!  The only issue thus far is that when editing or updating a post within WordPress you see is the following.

This prevents the auto save and publish functions from working.  WordPress and Cloudflare are working on the issue and have a workaround in place.   The fix involves disabling two rules in the WordPress rules set in the Web Application Firewall settings in your Cloudflare account.

  1. Once you are logged in click on the domain that you need to edit.
  2. Click on Firewall from the top menu.
  3. Scroll down to the section titled IP Firewall Button.
    1. Click the button to the left titled Web Application Firewall.
  4. Look for the section titled Package: Cloudflare Rule Set.
    1. Click Rule Details.
  5. Scroll down to the section titled Cloudflare WordPress and click the link.
  6. Click on page 4 from the pagination at the bottom of the section.
  7. Look for the rules WP0025A and WP0025A.
  8. On the far right side of the section under the Mode heading you will see a drop down list.
  9. Choose disable for both rules.
  10. You should see a green par across the bottom of the screen indicating that the settings are saved.
  11. Click the Close button.
  12. Go back to your WordPress Admin area and try to edit a post.

Unfortunately this workaround has never worked for me even after Gutenberg was updated and Cloudflare pushed out patches on their end.  As a last resort I had to whitelist my IP from the Firewall Events section of the Firewall page.

Now I am once again able to edit posts and whatnot in WordPress!

Views: 13

Similar Posts

  • Auto update your brew casks and formulas

    If you use the popular Homebrew package manager on MacOS you are very familar with running something similar to this command on a regular basis.

    brew update && brew upgrade && brew cleanup

    this type of command informs Homebrew to update it’s list of package versions, locate any that need to be updated, and clean up any left over files generated by there processes. If you remember to run this all the time then it is a pretty quick command, but if like me, you forget to do this for weeks or months at a time it can start to take quite some time to finish it’s maintenance.

    Yesterday, I was looking into ways to automate this process through adding the command to Cron or to have Cron run a shell script or apple script file with the commands in it. After some quick searching on my search engine of choice, Kagi, I found a great Github project called Homebrew Autoupdate.

    The project describes itself thusly.

    An easy, convenient way to automatically update Homebrew.

    This script will run brew update in the background once every 24 hours (by default) until explicitly told to stop, utilising launchd.

    brew upgrade and brew cleanup can also be handled automatically, but are optional flags.

    Notifications are enabled by default using a new, code-signed, universal AppleScript applet.

    https://github.com/DomT4/homebrew-autoupdate

    If you decide to install this project every morning you can look forward to notifications like this.

    Screenshot 2024 07 14 At 8.44.13 am

    Do you already use this project? If you tried it, what did you think? Hit me up on Mastodon or my Contact page so we can discuss it or you can ask me any questions you might have.

    Views: 67
  • Determine MacOS version from Terminal (CLI)

    As you may or may not know the way most people determine what version of MAcOS they are running is by clicking on the Apple Menu in the upper left hand corner of the screen and selecting About this Mac. You will see a popup dialog that looks something like this.

    Apple Photos Document
    I am using MacOS’ Dark Mode so you might not see this exact window.

    If you would like a geekier and possibly faster way to determine this you can launch Terminal by either using Spotlight Search (Click the magnifying class (🔍) in your Mac’s Menu Bar or use the hand keyboard shortcut of ⌘(Command)+Space. Once the appliation finsihes launching you will see a window that looks something like this:

    Screenshot 2024 06 12 At 12.41.33 pm
    I have gone a little nuts with customizing my terminal experience so your will most likely look totally different. 🙂

    There are two commands you can now run that will display your MacOS version:

    #Simple Output:
    gatewayy@Swordfish-II ~ sw_vers -productVersion
    15.0
    
    #More detailed Output:
    gatewayy@Swordfish-II ~ system_profiler SPSoftwareDataType
    Software:
    
        System Software Overview:
    
          System Version: macOS 15.0 (24A5264n)
          Kernel Version: Darwin 24.0.0
          Boot Volume: Macintosh HD
          Boot Mode: Normal
          Computer Name: Swordfish II
          User Name: Brett Elliff (gatewayy)
          Secure Virtual Memory: Enabled
          System Integrity Protection: Enabled
          Time since boot: 1 day, 17 hours, 29 minutes

    I keep having to search for this, so I thought I might as well put this down so others can benefit from the knowledge. If you have any questions, thoughts, etc. you can reach me via my Contact page or feel free to DM me on Mastodon.

    Via: SuperUser

    Views: 37
  • How to correct a WSL VM so that it can use a VPN

    This is a really weird edge case that I came across at work. After an update to Windows subsystem for Linux (WSL) I was no longer able to use my Cisco AnyConnect VPN connection to connect to any of the infrastructure I manage.

    WSL (112) ERROR: CreateProcessParseCommon:782: Failed to translate

    Currently, the only method that I have to use a WSL Virtual Machine (VM) is to use this great third party script so that my VM knows how to actually use a network. I do with Microsoft had an easier way to do this, WSL has no network connectivity once connected to a VPN. 🤦🏻‍♂️

    At any rate, all of these weird tech issues aside with how I choose to SSH into the systems I manage at work, this is how you correct the error WSL (112) ERROR: CreateProcessParseCommon:782: Failed to translate when attempting to use a WSL VM on a VPN Connection. You will need to edit the .profile folder in your home directory (/home/your_userneame_here) and add the following line to the end of the file.

    wsl.exe -d wsl-vpnkit --cd /app service wsl-vpnkit start

    To apply the fix, power cycle your WSL VM with your method of choice. I hope this helps and same you time having to search all over the Internet or watch a Youtube “tutorial” what wastes your time. If you have any questions, etc. hit me up via one of the methods on my contact page. Thanks for stopping by! 🙂

    Views: 14
  • A nice Windows Task Manager tip I stumbled across this weekend

    A screenshot of the Windows 10/11 Task manager application.

    I stumbled across this interesting article this week from The Verge from my beloved NetNewsWire feeds. The article is titled Today I learned you can easily pause the Windows Task Manager to stop apps moving around. The gist of the article is the below quote for those in a hurry. 😝

    I can’t believe I’ve been struggling with apps in the Task Manager randomly moving around without realizing there’s a simple keyboard shortcut to pause the Task Manager and stop its contents in their tracks. Yup, all you have to do is hold down the CTRL key and it will pause the Task Manager on both Windows 10 and Windows 11, and perhaps even older versions of Windows, too.

    Tom Warren via The Verge

    This tip only applies to Windows 10 and 11 and I wish I had known this years ago! At any rate as you can see in the original article at your leisure and I hope it helps out others out there in this wide world.

    Views: 8
  • How to Find Out What Version of Linux You Are Running

    ---------- On Red Hat Linux ---------- 
    $ cat /etc/redhat-release
    
    ---------- On CentOS Linux ---------- 
    $ cat /etc/centos-release
    
    ---------- On Fedora Linux ---------- 
    $ cat /etc/fedora-release
    
    ---------- On Debian Linux ---------- 
    $ cat /etc/debian_version
    
    ---------- On Ubuntu and Linux Mint ---------- 
    $ cat /etc/lsb-release
    
    ---------- On Gentoo Linux ---------- 
    $ cat /etc/gentoo-release
    
    ---------- On SuSE Linux ---------- 
    $ cat /etc/SuSE-release

    AS you can see this various depending on on which form of the original Linux Operating System so I usually end up searching for this as it is not something that I use day to day in my professional or work life. I hope it makes somees’s day that much easier. 🙂

    Views: 7
  • Increase the Docker image size for UNRAID

    I keep having to look this up so I might as well save myself some time. 😉

    • From the UNRAID Web UI stop the RAID array under Main > Array Options > Stop Array.
    • When the UI reloaded go to Settings > Docker.
      • You should now be able to change the size of the array in GB.
    • Click the Save button.
    • Start the RAID array back up.

    Views: 74