WordPress Basics

How To Fix Common WordPress Errors With FTP

Recover WordPress when you’re locked out of wp-admin by using FTP (or SFTP) safely.

Nothing is more stressful than a broken WordPress site and an admin dashboard that you can’t even log into. A white screen, 500 error, or “There has been a critical error on this website” message usually means a plugin, theme, or file-level problem that WordPress itself can’t fix from inside wp-admin.

The good news: you can often rescue your site by fixing these issues directly at the file system level using FTP or SEO and UX, and where you will see it in daily work.”>SFTP. With a secure FTP client, you can disable bad plugins, switch themes, repair .htaccess, increase memory limits, and even replace corrupted WordPress core files.

This tutorial walks you through step-by-step FTP fixes for the most common WordPress errors, so you can get your site back online quickly while still following solid security and backup practices (for a broader security picture, see WordPress security best practices).

Prerequisites

Before you start changing files via FTP, make sure you have a safe working environment. You’re bypassing the WordPress admin, so small mistakes can have big effects.

  • Hosting account access – Logins for cPanel, Plesk, or your host’s custom dashboard to view or reset FTP/SFTP credentials.
  • FTP/SFTP client installed – Such as FileZilla, Cyberduck, or WinSCP.
  • Recent full backup – Files and database, so you can roll back if something goes wrong. If you don’t have one, prioritize setting up backups with a guide like Beginner Guide to WordPress Backup and Restore Strategies.
  • Basic familiarity with WordPress folders – Especially wp-content, plugins, themes, and wp-config.php.
Warning: Never work on live site files without a backup. If your host offers staging, consider testing these fixes on staging first.

Step 1: Connect to Your WordPress Site via FTP or SFTP

Most fixes in this guide start with connecting to your server and browsing your WordPress installation. Using SFTP (encrypted) is strongly recommended over plain FTP whenever possible.

  1. Find your FTP/SFTP credentials. In your hosting control panel, look for a section like “FTP Accounts”, “SFTP Access”, or “File Access”. Note the:
    • Host (often your domain or server name)
    • Port (21 for FTP, 22 for SFTP/SSH – your host will specify)
    • Username and password
  2. Open your FTP client. Enter your host, username, password, and port. Choose SFTP if listed.
  3. Connect and locate your WordPress folder. After connecting, on the remote side look for:
    • public_html or www (common root folders), or
    • A domain-specific folder (e.g. example.com)

    Inside, you should see files and folders such as wp-admin, wp-content, wp-includes, wp-config.php.

Note: If you don’t have a favorite FTP app yet, check out tools from this guide to the best FTP clients for WordPress users to make ongoing maintenance easier.

Step 2: Disable Problem Plugins via FTP

Many “white screen” or “critical error” issues are caused by a bad plugin update or conflict. When you can’t access wp-admin, using FTP to disable plugins is the fastest way to test this.

  1. In your FTP client, open wp-content > plugins.
  2. Disable all plugins at once: Right-click the plugins folder and rename it to plugins-disabled.
    • Reload your site in an incognito/private browser tab.
    • If the site loads again, a plugin is almost certainly the cause.
  3. Re-enable plugins one by one:
    1. Rename plugins-disabled back to plugins.
    2. Open the plugins folder and rename each plugin folder individually, for example:
      • contact-form-7contact-form-7-off
    3. After renaming a plugin, reload the site. When the error disappears, the last plugin you renamed is the culprit.
Pro Tip: Once you identify the broken plugin, delete it via FTP, then reinstall the latest stable version from the WordPress plugin directory after you regain dashboard access.

Step 3: Switch or Repair Themes via FTP

A broken or incomplete theme can cause layout issues, PHP errors, or white screens—especially after a theme update gone wrong. FTP lets you force WordPress to fall back to a default theme.

  1. In your FTP client, go to wp-content > themes.
  2. Identify your active theme folder (it usually matches the theme’s directory name in Appearance > Themes).
  3. Rename the active theme folder, for example:
    • my-business-thememy-business-theme-broken
  4. If a default theme exists (like twentytwentyfour), WordPress will try to activate it automatically once the active theme folder is missing.
  5. Reload the site:
    • If it loads with the default theme, the problem is with your original theme.
    • You can then reinstall or update that theme, or debug it further.
Warning: Avoid editing theme PHP files directly in the FTP client’s built-in editor unless you’re confident in your PHP skills. A single syntax error can cause a new white screen.

Step 4: Repair .htaccess and Permalink-Related Errors

If your homepage loads but posts return 404s, or you see generic “500 Internal Server Error” messages, a corrupted .htaccess file is often to blame. FTP is the safest way to fix it.

  1. Connect via FTP and navigate to your site root (where wp-config.php lives).
  2. Download a copy of .htaccess to your computer for backup.
  3. Delete the existing .htaccess file on the server.
  4. Try loading your WordPress site:
    • If it loads normally, the old .htaccess was corrupt.
  5. Once you can access wp-admin again, go to Settings > Permalinks and click Save Changes to regenerate .htaccess automatically.

If you can’t access wp-admin yet, you can create a fresh .htaccess manually:

  1. On your computer, create a new text file named .htaccess.
  2. Paste the default WordPress rules into it:
# 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 WordPress 
  1. Upload this new .htaccess file to your WordPress root via FTP.
Note: If errors persist, your host’s error logs may show deeper server issues (like PHP configuration problems) that go beyond WordPress files.

Step 5: Increase PHP Memory Limit with wp-config.php

“Allowed memory size of X bytes exhausted” errors usually mean PHP ran out of memory. You can raise the limit for WordPress by editing wp-config.php via FTP.

  1. In your site root, locate wp-config.php.
  2. Download wp-config.php to your computer and open it in a code editor (not Word or a rich text editor).
  3. Find the line that says:
    /* That's all, stop editing! Happy blogging. */
  4. Directly above that line, add:
    define( 'WP_MEMORY_LIMIT', '256M' );
  5. Save the file and upload it back to the server, overwriting the existing wp-config.php.
  6. Reload your site to see if the memory error is resolved.
Warning: If your host enforces a lower memory limit at the server level, this setting may be ignored. In that case, contact support to increase memory or upgrade your hosting plan.

Step 6: Replace Corrupted WordPress Core Files via FTP

Sometimes, incomplete updates or malware infections corrupt core WordPress files. Symptoms include strange admin behavior, missing files, or repeated update failures. Replacing core files via FTP is often cleaner than trying to patch them one by one.

  1. Download a clean copy of WordPress from WordPress.org that matches your current major version if possible.
  2. Unzip the download on your computer. You’ll see folders like wp-admin, wp-includes, and files like index.php, wp-settings.php.
  3. In your FTP client, connect to your site root.
  4. Upload and overwrite the following from the fresh WordPress package:
    • Entire wp-admin folder
    • Entire wp-includes folder
    • Root WordPress files (index.php, wp-settings.php, etc.), but do not overwrite:
      • wp-config.php
      • Anything inside wp-content
  5. After uploads complete, reload your site and log into wp-admin.
Note: This doesn’t affect your themes, plugins, or uploads stored in wp-content, but always keep a backup in case you accidentally move or delete the wrong files.

Restore Your WordPress Site Confidently with FTP

Using FTP (or preferably SFTP) turns a scary “site down” moment into a manageable troubleshooting task. By renaming plugin and theme folders, repairing .htaccess, increasing memory limits, and replacing core files, you can resolve many common WordPress errors even when wp-admin is completely inaccessible.

As you get comfortable with these techniques, combine them with a solid backup routine and regular maintenance so you’re not scrambling during the next outage. With safe FTP workflows and a little practice, you’ll spend less time firefighting and more time growing your WordPress site.

Further Reading

Frequently Asked Questions

What kinds of WordPress errors can FTP help me fix?

FTP is most useful for fixing errors that stop you from logging into wp-admin or that are caused by file-level problems. Examples include the white screen of death, “There has been a critical error on this website,” 500 Internal Server Errors caused by .htaccess, memory exhausted errors, and issues created by broken theme or plugin updates. By renaming or replacing problematic folders and files, you can often bring the site back online without touching the database.

My FTP client wonu2019t connect. What should I check first?

Start by confirming your host, username, and password directly in your hosting control panel—reset the password if needed. Make sure you\u2019re using the correct protocol (SFTP vs FTP) and port number as specified by your host. If you recently changed your domain\u2019s DNS or nameservers, the hostname may not be resolving yet, so try using the server\u2019s IP address instead. Finally, disable any local firewall or VPN temporarily to rule out connection blocking, and check with your host to ensure FTP/SFTP access is enabled.

I renamed the plugins folder but my site still shows an error. What next?

If disabling plugins doesn\u2019t fix the issue, the problem may be with your theme, .htaccess, or core files. Try renaming your active theme folder so WordPress falls back to a default theme, and see if the error disappears. If not, back up and then delete or recreate .htaccess as shown above, and consider replacing core WordPress files with a fresh copy. Also check your host\u2019s error logs for more specific messages pointing to the failing file or function.

Is it safe to edit WordPress files directly over FTP?

Editing files over FTP is powerful but risky if you aren\u2019t careful. Always download files and edit them in a proper code editor rather than using the FTP client\u2019s quick editor, keep a backup copy of any file you change, and avoid editing theme or plugin PHP if you\u2019re not comfortable with the language. Never set permissions to 777 or make your wp-config.php world-writable. When in doubt, work on a staging site and test changes there before applying them to production.

Will fixing errors with FTP affect my data or SEO?

Most FTP-based fixes in this guide (disabling plugins, switching themes, repairing .htaccess, raising memory, replacing core files) do not touch your database content, so your posts, pages, and settings remain intact. Short periods of downtime are normal during troubleshooting but shouldn\u2019t hurt SEO if resolved promptly. However, deleting a plugin or theme may remove its features and shortcodes, and restoring an old backup can roll back recent content changes, so always weigh the impact and keep the outage as brief as possible.

Andreas Weiss

Andreas Weiss is a 47-year-old WordPress specialist who has been working with WordPress since 2007. He has contributed to projects for companies like Google, Microsoft, PayPal and Automattic, created multiple WordPress plugins and custom solutions, and is recognized as an SEO expert focused on performance, clean code and sustainable organic growth.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button