EDITS.WS

Tag: common wordpress errors

  • What is 414 Request URI Too Long Error and How to Fix It

    Have you ever encountered a 414 request URI too long error on your WordPress website?

    The error is usually caused when there is a critical error between your web browser and a server. You’ll see this error when clicking on a link or any action performed by a WordPress plugin.

    In this article, we will show you what is the ‘414 request URI too long’ error and how to fix it.

    What is 414 request URI too long error and how to fix it

    What is 414 Request URI Too Long Error?

    A 414 request URI too long error occurs when a URL or an action you’re requesting is too long for the server to handle.

    Do note that there is a difference between URI and URL. A URI or Uniform Resource Identifier can be a resource’s name, location, or both. On the other hand, a URL or Uniform Resource Locator can only be the location of a resource.

    Both terms are usually used interchangeably because URL is part of URI. However, the 414 error can be triggered by both components, so let’s look at the causes.

    What Causes 414 Request URI Too Long Error?

    You might see the 414 error when you click on the link, and the server is unable to process it because it’s too long.

    One situation where a link might to very long is using UTM (Urchin Tracking Module) parameters. If you’re using UTM codes to track conversions on your WordPress website and there are a lot of parameters in the URL, then it can cause this error.

    Another situation that can cause a 414 error is a redirect loop. This is when a misconfiguration or a setting in a WordPress plugin causes a lot of redirect requests.

    As a result, you get incredibly long URLs and 414 requests URI too long error.

    Similarly, some plugins can also generate lengthy URIs as part of their functionality. You’re most likely to encounter this error if you have all-in-one WordPress security plugins installed on your site.

    In a rare event, a developer-side issue can also trigger a 414 error when a POST request converts into a GET request with query information being too long. Lastly, cyber attacks on your website server can also result in 414 URI too long issues.

    That said, let’s see how you can fix the 414 error on your WordPress website.

    Fixing 414 Request URI Too Long Error

    A quick way to fix this issue is by increasing the size of the URI your website server can process.

    Before we move forward, we recommend creating a WordPress backup. That’s because fixing the 414 error involves editing the website configuration files. In case anything goes wrong, you’ll have a backup copy of your site ready to restore.

    For more details, please see our guide on how to backup a WordPress site.

    Determine if Your Website is Using Apache or Nginx

    First, you’ll need to find out the type of server your WordPress website is using. There are 2 main types of servers, which includes Apache and Nginx.

    A simple way to do that is by opening your site in a browser. After that, you can right-click on the homepage and select the ‘Inspect’ option.

    Open inspect element

    Next, you’ll need to switch to the ‘Network’ tab at the top.

    From here, you can select any element under the Name column. After that, you will need to scroll down to the ‘Response Headers’ section and see the ‘Server’ details.

    View server type of your site

    This will show you whether your site is using Nginx or Apache.

    If you’re still unsure which server type to use, then you can reach out to your WordPress hosting provider to get more details.

    Once you’ve determined the server type, let’s look at how to fix the 414 request URI too long error for Apache and Nginx.

    Fixing 414 Request URI Too Long Error in Nginx

    First, you’ll need an FTP or file transfer protocol client to access website configuration files.

    There are many FTP clients you can use. For this tutorial, we will use Filezilla. If you need help setting up FTP and accessing website files, then please see our guide on how to use FTP to upload files to WordPress.

    Once you’re logged in, you’ll need to download the ‘nginx.conf’ file. You can access this by following this path: /etc/nginx/nginx.conf

    Access Nginx file

    After locating the file, go ahead and download it on your computer and then open it in a notepad software.

    From here, you can search for large_client_header_buffers 4 8K settings. If it’s not there, then simply add it to the end of the file.

    You will see 2 sets of values, which relate to a number and size. Simply edit the size from 8K to 128K. This will increase the URI size and allow the site server to process long URLs.

    Increase URI size in Nginx

    Once you’re done, simply save the text file and reupload it to your website using the FTP client.

    For more details, please see our guide on how to use FTP to upload files to WordPress.

    Fixing 414 Request URI Too Long Error in Apache

    If you’re using the Apache server type, then the process is similar to that of Nginx. First, you’ll need an FTP client to access website files.

    Once you’re logged in, you’ll need to locate the ‘apache2.conf’ file. Simply head to the following path using the FTP client: /etc/apache2/apache2.conf

    Access apache config files

    Next, you’ll need to download the file and open it in notepad software.

    After that, you can look for LimitRequestLine 128000 settings. If you don’t see one, then simply add it to the end of the file.

    Usually, LimitRequestLine is set to 128000. However, you can increase this to 256000 or higher to remove the 414 error. Just make sure that the value you set is a multiple of 2.

    Increase URI size in apache

    Once you’re done, simply upload the file back to the website using the FTP client. This should help resolve the 414 error on your WordPress website.

    We hope this article helped you learn about what is 414 request URI too long error and how to fix it. You may also want to see our guide on WordPress security and the most common WordPress errors.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post What is 414 Request URI Too Long Error and How to Fix It first appeared on WPBeginner.

  • How to Fix the ERR_CONNECTION_REFUSED Error in Chrome

    Are you seeing the ERR_CONNECTION_REFUSED error when trying to access a website or when viewing a website resource using your browser’s inspect tool?

    This error message appears when your browser is unable to connect to the website you’ve requested. You might also see it in your browser’s inspect tool when you are exploring why a certain resource on the website won’t load.

    In this article, we’ll show you how to fix the ERR_CONNECTION_REFUSED error in Chrome.

    How to Fix the ERR_CONNECTION_REFUSED Error in Chrome

    What Is the ‘ERR_CONNECTION_REFUSED’ Error in Chrome?

    The ERR_CONNECTION_REFUSED message is displayed in Google Chrome when it is trying to open a web page or website resource but is unable to do so. This error code is usually included inside an error message such as:

    • ‘This site can’t be reached’
    • ‘Failed to load resource’

    There are lots of common WordPress errors, but this error may stop you from visiting your own website and logging in to the WordPress admin area. You’ll typically want to solve this problem as quickly as possible.

    Often when you see this error message, your WordPress website is still working, but something is stopping the browser from accessing it. In many cases, you will only need to fix a problem with your own browser or internet connection.

    With that being said, let’s take a look at how to fix the ERR_CONNECTION_REFUSED error in Chrome. First, we’ll look at how to fix the error when you can’t access an entire website, then we’ll show the solution for when you can’t access a specific file or resource on a website.

    How to Fix the ‘This Site Can’t Be Reached’ Error

    Usually, this message is displayed when you can’t access an entire website.

    You will see the Chrome error message ‘This site can’t be reached’ along with the ERR_CONNECTION_REFUSED error code. The message may even suggest a few things to try to fix the error, such as checking the connection, proxy, firewall, and DNS configuration.

    This Site Can't Be Reached Error

    Other browsers will display similar messages, such as:

    • ‘Unable to connect’
    • ‘Hmmm…can’t reach this page’

    There are many things that can interfere with your connection to the website, and you will need to follow some troubleshooting steps to identify and fix the problem.

    We’ll briefly cover the steps you should take below. For detailed instructions, see our guide on how to easily fix the ‘This site can’t be reached’ error in WordPress.

    Check Your Internet Connection

    The simplest fix is to check that you’re connected to the internet and restart your modem and router. Resetting your internet connection may be all it takes to reconnect to your website.

    If not, you should check to see whether your website is working. Simply visit the Website Uptime Status Checker website, then enter the URL of your own site.

    IsItWP Uptime Checker Tool

    If your site is down, then you should contact your WordPress hosting provider to let them know your website is down.

    Clear Your Browser Cache

    Your web browser stores files and data from the websites you visit, so it doesn’t have to download them again. However, this can cause problems if the cached files become outdated or corrupt.

    You can easily clear the browser cache in Google Chrome by clicking on the three-dotted icon in the upper-right corner and then selecting ‘More Tools,’ followed by ‘Clear Browsing Data…’

    How to clear the browser cache in Google Chrome

    In the popup that appears, check the box next to ‘Cached images and files’ and then click the ‘Clear data’ button.

    Now try revisiting the website to check whether you can access it.

    Troubleshoot the Software on Your Computer

    Some of the security and networking software you run on your computer may be interfering with your connection to the website. This can include your firewall, antivirus software, VPN, and proxy server.

    We offer detailed instructions on how to troubleshoot each of these in our guide on how to fix the ‘This site can’t be reached’ error.

    Troubleshoot Your DNS Settings

    Similar to the browser cache, your computer stores the IP addresses of all the websites you visit. This means the browser doesn’t have to look up the same IP address multiple times.

    By flushing your DNS cache, you’ll get the very latest information about a website, including its new domain name or address.

    To help you out, we’ve created a complete guide on how to clear your DNS cache for Mac, Windows, and Google Chrome.

    If you still can’t access the website after doing this, then you can try changing your DNS server as well. You can follow the detailed instructions in the change the DNS server step of our guide on how to fix the ‘This site can’t be reached’ error.

    Add the Addresses for Google's DNS Servers

    Reset the TCP/IP Settings

    Finally, if there’s a problem with how your internet connection is configured, then renewing your TCP and IP protocol will return the connection to its default settings, which may solve the problem.

    You can learn how to do this step-by-step in the reset the TCP/IP settings section of our guide on how to fix the ‘This site can’t be reached’ error.

    Click the 'Renew DHCP Lease' Button

    How To Fix the ‘Failed To Load Resource’ Error

    You might notice that, while your website loads, a certain resource or file doesn’t. This file could be an image or other media file, JavaScript, or a CSS stylesheet. A missing resource can cause your website to misbehave or not function properly.

    When that happens, the browser will add a notice in the error console for debugging purposes.

    In most cases, you would see this error in your browser’s error console when using the Inspect tool. You might see the error message Failed to load resource: net::ERR_CONNECTION_REFUSED.

    Refused to Load Resource Error

    This error message happens when your website’s code mentions the file, but your browser is unable to download it. This can happen when there is a problem with the file itself, or the URL that points to it.

    To fix the problem, you will need to either replace the resource in question or fix the URL. We offer detailed instructions for both of these in our guide on how to fix the ‘Failed to load resource’ error in WordPress.

    We hope this tutorial helped you learn how to fix the ERR_CONNECTION_REFUSED error in Chrome. You may also want to see our ultimate WordPress security guide, or check out our list of easy ways to increase your blog traffic.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post How to Fix the ERR_CONNECTION_REFUSED Error in Chrome first appeared on WPBeginner.