Title: Adding Custom Pattern Blocks
Last modified: April 14, 2021

---

# Adding Custom Pattern Blocks

 *  Resolved [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/)
 * I had previously added a custom pattern block for *.amazonaws.com and I see it
   in the blocks7 table. The name is there that I gave it “Would never have a person
   from there.” and the parameters field is: {“ipRange”:””,”hostname”:”*.amazonaws.
   com”,”userAgent”:””,”referrer”:””}
 * However, when I go back into the Create Blocking Rule page, it does not show,
   nor can I save a value I add as the save button never enables. I would expect
   the existing value to be populated and have the ability to edit the field.
 * Am I missing something?
 * Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14322273)
 * Hi [@ghandlin](https://wordpress.org/support/users/ghandlin/)
 * That sounds like something breaking our JavaScript on the Blocking page.
 * We have a guide here:
 * [https://www.wordfence.com/help/advanced/troubleshooting/](https://www.wordfence.com/help/advanced/troubleshooting/)
 *  Thread Starter [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14339062)
 * I just did a test by spinning up a fresh install of WP 5.7.1 and only adding 
   the Wordfence plugin. No change in behavior and nothing of any significance in
   the dev tools of either Edge or Chrome.
 * Thoughts?
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14342082)
 * Hi [@ghandlin](https://wordpress.org/support/users/ghandlin/)
 * Thank you for the update.
 * Did you use the same theme or are you using a default WordPress theme such as
   Twenty Twenty One?
 * Were you using the same database or did you create a new database?
 *  Thread Starter [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14342099)
 * Fresh database, default theme. Only thing I did after the WP setup wizard was
   install Wordfence. Wondering if it has something to do with the jQuery cleanup
   that is happening from WP?
 *  Thread Starter [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14342102)
 * BTW, I am a developer of 20 years, but I’m a MS stack guy.
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14342118)
 * Hi [@ghandlin](https://wordpress.org/support/users/ghandlin/)
 * Thank you for the update.
 * Wordfence is fully compatible with all of the jQuery and jQuery migration development
   tool changes in WordPress.
 * Have you tried in a different browser where the browser cache has been cleared?
 *  Thread Starter [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14342571)
 * Well, there shouldn’t be any cache since it was completely new, so the url had
   never been accessed. Regardless, I just tried it in an incognito window with 
   Chrome with the same results. I then tried it on a different computer and had
   the same issue.
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14342643)
 * Hi [@ghandlin](https://wordpress.org/support/users/ghandlin/)
 * Your normal browser may have been malfunctioning so we have at least ruled that
   out.
 * I would like to have a look at your Wordfence diagnostics report. Please go to
   the top of the “**_Diagnostics_**” tab on the Wordfence “**_Tools_**” page. There
   will be a “**_SEND REPORT BY EMAIL_**” button to send the diagnostics report.
   Enter **_wftest [at] wordfence [dot] com_** as the email and **_ghandlin_** as
   the forum username please.
 * Once you have emailed me the diagnostics report can you reply here to let me 
   know that it has been sent. This is important in the unlikely event that your
   installation of WordPress is having an issue with sending mail.
 *  Thread Starter [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14342855)
 * I just sent it from the original site I noticed the issue with. When I went in
   there, there was a message saying the configuration was corrupt. I chose to rebuild
   it. Unfortunately, the problem still exists.
 * Thank you for your help!
 *  Thread Starter [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14369823)
 * Hi Phil, I was wondering if you saw anything?
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14374505)
 * Hi [@ghandlin](https://wordpress.org/support/users/ghandlin/)
 * Can you setup WordPress debugging.
 * Add these lines of code to your WordPress **_wp-config.php_** configuration file:
 *     ```
       // Enable WP_DEBUG mode
       define( 'WP_DEBUG', true );
   
       // Enable Debug logging to the /wp-content/debug.log file
       define( 'WP_DEBUG_LOG', true );
   
       // Disable display of errors and warnings 
       define( 'WP_DEBUG_DISPLAY', false );
       @ini_set( 'display_errors', 0 );
       ```
   
 * NOTE: You must insert this ABOVE the line that says `/* That's all, stop editing!
   Happy blogging. */`
 * Reload the **_Firewall_** >> **_Blocking_** page and look for the **_debug.log_**
   file in the location below, download it and send to **_wftest [at] wordfence [
   dot] com_**. Make sure to put your username **_ghandlin_** in the email subject
   field and let me know when it is sent:
 * **_~/wp-content/debug.log_**
 *  Thread Starter [ghandlin](https://wordpress.org/support/users/ghandlin/)
 * (@ghandlin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14407569)
 * Thank you Phil, I just emailed the results. Sorry it took so long, thank you 
   again for your help.
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14421094)
 * Hi [@ghandlin](https://wordpress.org/support/users/ghandlin/)
 * Sorry for the late reply.
 * I see this error:
 * **_Unable to open [redacted]/wp-content/wflogs/config-synced.php for reading 
   and writing._**
 * If you are not able to find or fix any file or ownership problems then you may
   find that using the MySQLi firewall storage engine fixes this:
 * [https://www.wordfence.com/help/firewall/mysqli-storage-engine/](https://www.wordfence.com/help/firewall/mysqli-storage-engine/)

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Adding Custom Pattern Blocks’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [wfphil](https://wordpress.org/support/users/wfphil/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/adding-custom-pattern-blocks/#post-14421094)
 * Status: resolved