Fix : LayerSlider conflict with Fast Velocity Minify Plugin in WordPress

Do you use LayerSlider and Fast Velocity Minify WordPress plugins together? Did your Slider(s) stop to work after activating Fast Velocity Minify plugin? If the answer to any of the questions is Yes, you’ve to possibly exclude few LayerSlider scripts from Fast Velocity Minify.

Here are the steps you can follow to fix LayerSlider conflict with Fast Velocity Minify plugin in WordPress and get your Slider(s) working back.

(1) Go to Settings > Fast Velocity Minify

Step 1 - LayerSlider conflict with Fast Velocity Minify Plugin in WordPress

(2) Click on the Pro tab

Step 2 - LayerSlider conflict with Fast Velocity Minify Plugin in WordPress

(3) Add the following paths under Ignore List
/greensock.js
/layerslider.kreaturamedia.jquery.js
/layerslider.transitions.js

Step 3 - LayerSlider conflict with Fast Velocity Minify Plugin in WordPress

(4) Click on Save Changes

Step 4 - LayerSlider conflict with Fast Velocity Minify Plugin in WordPress

(5) Purge FVM Cache by clicking Delete button under Status tab

Step 5 - LayerSlider conflict with Fast Velocity Minify Plugin in WordPress

That’s it! Now check your site. Your Slider(s) should start to work again.

🗣 Do you need help with a new or existing WordPress site? Get in touch with me to discuss your requirements.

How to fix 403 Forbidden Error in WordPress caused by ModSecurity

403 Forbidden Error in WordPress

✓ What is 403 Forbidden Error

The 403 Forbidden Error is an HTTP status code that is sent back by the server when the client (user) who initiated the request doesn’t have permission to access a specific page or resource.

✓ Causes of 403 Forbidden Error

There are many scenarios that can trigger 403 Forbidden Error in WordPress. The following are the common causes:

• Corrupt .htaccess file
• File permission issues
• Incompatible or faulty plugins

✓ Solution

WPBeginner has written an in-depth article on fixing the 403 Forbidden Error in WordPress that will help you to fix the corrupt .htaccess file, repair folder and file permissions, and finding out the incompatible or faulty plugins. If you’ve tried everything described in that article and you still facing 403 Forbidden Error, then it’s the time now to look into ModSecurity configuration.

Fix 403 Forbidden Error in WordPress caused by ModSecurity Click To Tweet

What is ModSecurity (mod_security)

ModSecurity is an open-source firewall application (or WAF) supported by different web servers such as Apache, Nginx and IIS, and protects web applications such as WordPress from various code injection attacks. It uses regular expressions and rule sets to block commonly known code injections.

WordPress 403 Forbidden Error and ModSecurity (mod_security)

ModSecurity might give you false-positive results when you work with WordPress posts and comments. When you post (save or update) any data to admin-ajax.php, page.php, post.php (and bb-post.php if you’ve BBPress active) pages, ModSecurity sometimes consider it (of course, falsely) as code injection and respond with 403 Forbidden Error. To fix this, you can either add specific rules for WordPress exclusion into ModSecurity config or disable ModSecurity completely.

• Add specific rules for WordPress exclusion under ModSecurity (mod_security)

Follow the steps given below to whitelist WordPress under ModSecurity.

☑ Find whitelist.conf or exclude.conf file under /usr/local/apache/conf/modsec2/ (CentOS in my case, your’s path can be different)

☑ Add the following rules

☑ Add the following rules only if you’ve BBPress installed and active

You’re done!

• Disable ModSecurity (mod_security) completely if the above WordPress exclusions doesn’t work

You can disable ModSecurity completely by accessing your web hosting Control Panel (different for each control panel) if you’ve VPS or Dedicated Server. Alternatively, you can ask your web hosting provider to disable it completely for you.

* Don’t forget restart your web server after making changes in ModSecurity configuration or after disabling it.

That’s it! You shouldn’t see 403 Forbidden Error anymore now.

Why you should choose Dedicated Hosting?

Over the years research has shown that nearly half of web users expect a site to load in 2 seconds or less, and they tend to abandon a site that isn’t loaded within 3 seconds. Website speed is the first impression you ever make and website hosting provider and technology you choose can have a significant effect on your page load times.

What is Dedicated Hosting?

Dedicated hosting is a service provided by web hosting companies that allows users to rent out entire dedicated servers. Using dedicated hosting is ideal if you have a growing site or if you already have a high-traffic website and you are seeking a dedicated source of bandwidth.

Dedicated hosting is always preferable over shared as you don’t need to worry about other websites hosted on the same server, sharing the same resources that can slow down your website.

Why Dedicated Hosting is better for your #WordPress website? Click To Tweet

Benefits of Dedicated Hosting:

  • Enhanced performance
  • Completely customizable
  • Better security

Enhanced performance: Dedicated hosting is not shared in any way with other users. All the hardware and software resources on the server are dedicated to your account only which maximise your overall site performance.

Completely customizable: Shared hosting force every user to share their hosting space under the same common operating system and web server, whereas dedicated hosting does not have this restriction and is fully customizable. You can add your preferred programs, applications, and scripts whenever you want. This full customization potential makes dedicated hosting the best choice over shared hosting.

Better security: Dedicated hosting provides better security over shared hosting as their resources are dedicated to your account only, hence there are very less chances of acquiring viruses, malware and spyware.

To provide blazing speed and tougher security to my client’s WordPress sites, I always use and recommend SiteGround.