error 404-not found

The downside of WordPress, which is now the most popular CMS in the world, is that one wrong move can cause an entire site to fail, or even delete all of its content.

This article details the causes of gateway errors such as 402,403,404,500 and 502 on WordPress and how to resolve them.

How to resolve Error 402 on WordPress?

Error 402 is most likely due to a plugin or theme installation error on your WordPress site.

The problem with 402 is that it doesn’t allow site owners to log in to their admin panel. In this case, you can manually reset the plugins on the site theme without having to visit the admin panel.

  • Log in to the host board.
  • Find the “PHPMyAdmin”.
  • Click 402 on the wrong WordPress site database.
  • In the WP_options table, find active_plugins under option_NAME.
  • Change the option_value of active_plugins to a: 0: {}.
  • Save the changes.

If the manual reset plug-in does not resolve the 402 error, you can also try disabling the theme on your WordPress site by following these steps.

  • Download and install the FTP client.
  • Log in to the server by entering the required credentials to the FTP client.
  • Locate the “WP-Content” folder in the root database folder, and then click the “Topics” folder.
  • Find the root folder of the theme running on the site.
  • Rename the root folder of your site’s current theme to something you can remember later.
  • Save the changes. If disabling the WordPress theme does not resolve error 402, try contacting your host provider for a solution, as error 4402 is sometimes caused by server-related problems. If resetting the plug-in resolves the 402 error, try manually switching each plug-in installed on the site until you find the one that caused the error.

    How to resolve Error 403 on WordPress?

    The 403 error occurs when the server does not allow access to a particular page. 403 errors can occur in different places, such as when installing WordPress or when visiting any particular page on your site.

The 403 error on WordPress is also caused in most cases by an incorrect plug-in installation. To solve the 403 problem, try manually resetting the plug-in by following the steps described earlier.

3. How to fix WordPress Error 404?

404 is probably the most common WordPress error. It usually occurs when a user tries to access a post or specific content on a website.

In most cases, the 404 error is related to the permalink Settings of your WordPress site. Here’s how to fix it:

  • Log in to the WordPress administration panel.
  • On the side panel, click the Settings option.
  • From the drop-down menu that appears, click the permalink option.
  • When the permalink page loads, make no changes and click the “Save Changes” option.
  • Try to access the page that previously displayed error 404. This will update the permalink Settings and should fix the problem.

If not, follow these steps to edit the. Htaccess file on the WordPress website.

  • Log in to the Web server using an FTP client.
  • Find the “. Htaccess “file. The. Htaccess file can be found in the same root folder that contains wp-content, wp-admin, and wp-includes.
  • Add the following code to the.htaccess file:
    #BEGIN WordPress <IfModule mod_rewrite. C > RewriteEngine On RewriteBase/RewriteRule ^index\.php$-- [L] RewriteCond %{REQUEST_FILENAME} ! -f RewriteCond %{REQUEST_FILENAME} ! -d RewriteRule . /index.php [L] </IfModule> # END WordPressCopy the code
  • Save the changes. Then reload the page that previously displayed error 404.

    4. How to resolve WordPress Error 500?

    The cause of the 500 error could be a corrupted.htaccess file on the site or a PHP memory limitation problem. Follow these steps to rename the. Htaccess file and resolve the corrupted. Htaccess file.

  • Log in to the Web server using an FTP client.
  • Locate the. Htaccess folder and right-click the folder name.
  • Rename the folder name to “.htaccess_older “. Reload the page and the error will disappear.

To recreate the. Htaccess file on your website, follow these steps:

  • Log in to the WordPress administration panel.
  • Click the “Settings” option on the side panel.
  • Then click on “Fixed links”.
  • Click the Save Changes option without making any changes to the option. A new.htaccess file is generated.

If renaming the. Htaccess file does not resolve the error, try following the instructions below to increase the PHP limit to resolve the 500 error.

  • Log in to the site server using an FTP client.
  • Locate and download the ‘wp-config’ folder in the same root folder as’.htaccess ‘.
  • Use the code editor tool and open the downloaded wp-config.php file.
  • After the file is opened, the text “That’s all, stop editing! Happy Blogging “.
  • Before the above text, paste the following code and save the file:
    Define (' WP_MEMORY_LIMIT ', '300 m');Copy the code
  • Pass the edited wp-config.php file back to the directory where it was downloaded.
  • If prompted to overwrite an existing file, the operation is allowed. Then try to reload the page.

For the 502 gateway error, you can also refer to the detailed guide written at 000Webhost.com.

By Aashish Sharma

Translation: sugarain

Original link:

Hackernoon.com/what-are-40…