Website breaks when I enable the snippet from the library

[ad_1]

Also when I toggle this snippet other snippets will break:

2023-07-20T06:15:56+00:00 preg_split(): Compilation failed: quantifier does not follow a repeatable item at offset 6

2023-07-20T06:15:56+00:00 Snippet “Disable Automatic Updates Emails” (#525) was automatically deactivated due to a fatal error.

2023-07-20T06:16:02+00:00 preg_split(): Compilation failed: quantifier does not follow a repeatable item at offset 6

2023-07-20T06:16:02+00:00 Snippet “Completely Disable Comments” (#3) was automatically deactivated due to a fatal error.

2023-07-20T06:16:09+00:00 preg_split(): Compilation failed: quantifier does not follow a repeatable item at offset 6

2023-07-20T06:16:09+00:00 Snippet “Allow SVG Files Upload” (#700) was automatically deactivated due to a fatal error.

Hi @dkexception,

Thank you for reporting this issue – it seems the problem is related to the way the regex in that snippet is imported. I made a small adjustment to the snippet code can you please:

  1. Delete the “Remove Query Strings From Static Files” snippet from your site
  2. Add the “Remove Query Strings From Static Files” again from the library like you did before
  3. Activate

That should fix the issue.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer