{"id":36184,"date":"2021-12-06T11:17:00","date_gmt":"2021-12-06T05:32:00","guid":{"rendered":"https:\/\/rarathemes.com\/blog\/?p=36184"},"modified":"2024-08-21T11:54:06","modified_gmt":"2024-08-21T06:09:06","slug":"fix-corrupted-broken-files-databases","status":"publish","type":"post","link":"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/","title":{"rendered":"How to Fix Corrupted or Broken Files and Databases in WordPress"},"content":{"rendered":"\n<p>WordPress\u2019s remarkable performance and unmatchable stability make it a top choice for website owners.&nbsp;<\/p>\n\n\n\n<p>However, errors in an online platform are inevitable as many components work together, and the same goes for WordPress. Most of these errors are fixable. But, when it comes to corrupted files and database connection errors, things can be tricky.&nbsp;<\/p>\n\n\n\n<p>That&#8217;s because a file can get corrupt in many different ways, and its cause can be hard to determine.&nbsp;<\/p>\n\n\n\n<p>Fortunately, there are different ways to deal with WordPress corruption and breakage issues even if you\u2019re not 100% sure why they\u2019re happening. In this article, we\u2019ll teach you how to fix these corrupted files using different proven methods.<\/p>\n\n\n\n<p>Now, let\u2019s get started!<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#What_is_a_Corrupted_or_Broken_File\" >What is a Corrupted or Broken File?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#Server_Issues\" >Server Issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#Incorrect_File_Permissions\" >Incorrect File Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#Database_Error\" >Database Error<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#Errors_With_the_Version_of_PHP\" >Errors With the Version of PHP&nbsp;<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#4_Methods_to_Fix_Corrupted_or_Broken_Files_and_Databases\" >4 Methods to Fix Corrupted or Broken Files and Databases<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#1_Restoring_Your_Website_From_a_Backup\" >1. Restoring Your Website From a Backup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#2_Repairing_WordPress_Database\" >2. Repairing WordPress Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#3_Replacing_WordPress_Core_Files\" >3. Replacing WordPress Core Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#4_Debugging\" >4. Debugging<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/rarathemes.com\/blog\/fix-corrupted-broken-files-databases\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_a_Corrupted_or_Broken_File\"><\/span>What is a Corrupted or Broken File?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You may have come across an instance when you cannot access the file previously located in a specific location. This is a case of file corruption. A corrupted file is a file that cannot be accessed from its previous location.&nbsp;<\/p>\n\n\n\n<p>When it comes to WordPress, file corruption can be of different types. You may not be able to access some of the core files, face the most common database connection error, and so on.&nbsp;<\/p>\n\n\n\n<p>Many factors lead to file corruption. The list is quite long. But, in most cases, these are the common causes of file corruption:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Server_Issues\"><\/span>Server Issues<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The most common issue with the server is a server failure. A server failure can occur due to multiple reasons like server hardware failure, server interruption, server crash, server&#8217;s firewall, and so on.&nbsp;<\/p>\n\n\n\n<p>Whenever server failure occurs during any WordPress file update, it can get corrupted as the changes are not saved correctly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Incorrect_File_Permissions\"><\/span>Incorrect File Permissions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Incorrect file permissions is another common problem leading to file corruption. This issue can cause malfunctioning of WordPress files. Since only users with the right permission can access the file, wrong file permissions can corrupt your WordPress files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Database_Error\"><\/span>Database Error<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The database connection error is an error relating to the database. These include entering wrong credentials, database server crash, hardware failure, a bug, etc. This can be another reason for corrupted or broken files.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Errors_With_the_Version_of_PHP\"><\/span>Errors With the Version of PHP&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When there&#8217;s a server update, usually, the <a href=\"https:\/\/rarathemes.com\/blog\/update-php-version-wordpress-website\/\">PHP version<\/a> is also updated. This can cause compatibility issues leading to corruption of WordPress files and their databases. Besides, crossing the PHP memory limit can also cause server interruption leading to file corruption.&nbsp;<\/p>\n\n\n\n<p>Remember, you may not even know that your file is corrupted as WordPress does not provide you with any explicit error message for file corruption. Based on different causes of file corruption, you may receive various error messages. For example, database file corruption does not let you establish a database connection, whereas WordPress core file corruption may make your WordPress site unusable.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Methods_to_Fix_Corrupted_or_Broken_Files_and_Databases\"><\/span>4 Methods to Fix Corrupted or Broken Files and Databases <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Regardless of the reason, there are a few ways to fix corrupted or broken files and databases in WordPress. Some of these include:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Restoring_Your_Website_From_a_Backup\"><\/span>1. Restoring Your Website From a Backup<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Backups are the ultimate way to restore a website to its previous state before any damage. For a corrupted file, backups can be the best way to reverse corruption on your installation.&nbsp;<\/p>\n\n\n\n<p>Restoring a website using a backup and restore plugin is easy. But, things can get tricky when you can&#8217;t access your WordPress dashboard.&nbsp;<\/p>\n\n\n\n<p>Usually, web hosts provide automatic backup, or a server restores feature that lets you roll back the changes. So, if you&#8217;ve your backup files, including a database file, plugins, themes, uploads, and other files in place, you can restore them in just a few steps. If you want to dig deeper on <a href=\"https:\/\/rarathemes.com\/blog\/backup-wordpress-website\/\">how to backup your WordPress website<\/a>, we\u2019ve got an article tailored for you. Do not forget to check it out.&nbsp;<\/p>\n\n\n\n<p>In case your web host does not provide such an option, you&#8217;ll need to restore your site manually.&nbsp;<\/p>\n\n\n\n<p>To restore your database manually, you&#8217;ll need to access your phpMyAdmin dashboard using the cPanel.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"418\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/selecting-PHP-version.png\" alt=\"selecting the PHP version on cPanel\" class=\"wp-image-33311\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/selecting-PHP-version.png 697w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/selecting-PHP-version-300x180.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/selecting-PHP-version-100x60.png 100w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p>Locate your database once you&#8217;re in and get it clean. You can select all the tables and drop them and start with a clean slate.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"567\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/drop-database.png\" alt=\"drop database\" class=\"wp-image-36188\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/drop-database.png 729w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/drop-database-300x233.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/drop-database-77x60.png 77w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/figure>\n\n\n\n<p>Now that it&#8217;s all clean, go to the <em>Import <\/em>tab within the same database. Once you click on <em>the Import<\/em> tab, look for a <em>Choose File<\/em> button and click on it.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"340\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/choose-import-database-from-cpanel.png\" alt=\"choose import database from cpanel\" class=\"wp-image-36189\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/choose-import-database-from-cpanel.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/choose-import-database-from-cpanel-300x140.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/choose-import-database-from-cpanel-129x60.png 129w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>Find the database backup file, which is in the .sql format. Choose the file and hit the <em>Go <\/em>button. That&#8217;s it, and you&#8217;ll see the restored website within a few seconds.&nbsp;<\/p>\n\n\n\n<p>Similarly, to restore your WordPress files manually, you can log in to your server using the FTP client, access the WordPress root directory, and look for<em> <\/em>the<em> pubic_html <\/em>file. Sometimes the root directory files may be under <em>the www<\/em> directory or inside the directory with your website&#8217;s name.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"365\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/public-html-file.png\" alt=\"public html file\" class=\"wp-image-36190\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/public-html-file.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/public-html-file-300x150.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/public-html-file-120x60.png 120w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/public-html-file-476x238.png 476w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/public-html-file-358x179.png 358w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>Once you&#8217;re inside, select all the files and delete them. Then, re-download WordPress core files from the official site. Once the download is complete, return to your FTP Client and access the local WordPress folder.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"502\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/delete-all-files-from-public_html.png\" alt=\"delete all files from public_html\" class=\"wp-image-36191\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/delete-all-files-from-public_html.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/delete-all-files-from-public_html-300x215.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/delete-all-files-from-public_html-84x60.png 84w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Select all the files from the local directory and upload them. If you&#8217;ve followed the steps properly, you&#8217;ll see the files in the right place where your old WordPress setup used to be. This will take a while as there are many files.&nbsp;<\/p>\n\n\n\n<p>When this is done, you then need to go to <em>wp-content\/plugins <\/em>and upload your plugins files from the backup. Select all the folders you want to restore and upload them using the <em>Upload<\/em> option through your FTP client.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"448\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp.png\" alt=\"upload plugins files from the backup in ftp\" class=\"wp-image-36192\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp-300x192.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp-94x60.png 94w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Similarly, repeat the same process with your themes and upload to restore them. Go to wp-content\/theme and wp-content\/uploads and repeat the same process as you did for plugins. Once you finish with plugins, themes, and uploads, you&#8217;ll be able to access your website without any errors.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Repairing_WordPress_Database\"><\/span>2. Repairing WordPress Database<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Repairing a database is the option you could go for when you don&#8217;t have proper backups. Though WordPress does provide an option for repairing, this option is turned off by default.&nbsp;<\/p>\n\n\n\n<p>To turn the repair option on, go to your FTP client and access the WordPress directory. There you&#8217;ll see a file named <em>config.php.&nbsp;<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"436\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/03\/access-the-wp-config-file.png\" alt=\"access the wp-config file\" class=\"wp-image-30043\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/03\/access-the-wp-config-file.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/03\/access-the-wp-config-file-300x179.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/03\/access-the-wp-config-file-100x60.png 100w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>Right-click the wp-config.php file and click on the \u2018Edit\u2019 option. Open the file with your default text editor.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"448\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config.png\" alt=\"how to edit the wp-config\" class=\"wp-image-33208\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config-300x192.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config-94x60.png 94w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>You can then add the following line to your code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define(\u2018WP_ALLOW_REPAIR\u2019, true);<\/code><\/pre>\n\n\n\n<p>You can add this line anywhere in the code; however, it is best to add it last. Once you&#8217;ve added the code, you can navigate to<em> http:\/\/yourwebsite.com\/wp-admin\/maint\/repair.php.<\/em>This leads you to a new screen where you&#8217;ll see two options like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"354\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/repairing-database-in-WordPress.png\" alt=\"repairing database in WordPress\" class=\"wp-image-33158\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/repairing-database-in-WordPress.png 699w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/repairing-database-in-WordPress-300x152.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/repairing-database-in-WordPress-118x60.png 118w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p>Click on the &#8220;Repair database&#8221; and see how WordPress works its magic. You can then access your database without any error.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Replacing_WordPress_Core_Files\"><\/span>3. Replacing WordPress Core Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When you do not have backups or cannot restore your website, you&#8217;ll need to replace your WordPress core files. Remember, you will lose all your previous customizations once you opt for this process.<\/p>\n\n\n\n<p>Download the latest WordPress version and unzip it. Open the folder where you decompressed the .zip file.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"413\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/extract-wordpress-file-in-folder.png\" alt=\"extract WordPress file in folder\" class=\"wp-image-31932\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/extract-wordpress-file-in-folder.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/extract-wordpress-file-in-folder-300x177.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/extract-wordpress-file-in-folder-102x60.png 102w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Consecutively, access your website through the FTP client on the other window of the same screen.&nbsp;<\/p>\n\n\n\n<p>Now, navigate to WordPress\u2019s root folder and upload all the files from your WordPress local directory. You&#8217;ll get an option to overwrite the existing duplicate files. Choose the &#8220;Yes for all&#8221; option, and sit back and relax.&nbsp;<\/p>\n\n\n\n<p>It&#8217;s important to note that this process only changes your WordPress core files and does not affect your plugins and themes settings.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Debugging\"><\/span>4. Debugging<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Lastly, if you&#8217;ve tried everything from the above methods, you can try debugging your WordPress site. For this, you&#8217;ll need to turn on the WordPress debugging mode. You can find plenty of <a href=\"https:\/\/www.youtube.com\/watch?v=j6s3iaaYmFw\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">tutorials<\/a> on how to do that on the internet.<\/p>\n\n\n\n<p>Another option is to check your error logs and see if you can identify the issue. To check your error logs, look for the file called <em>debug.log<\/em> within your \/<em>wp-content\/ folder<\/em>.&nbsp;<\/p>\n\n\n\n<p>You can also take help from your host. Sometimes there might be problems of misconfiguration or internal malfunction that your host can fix. In such cases, sending your error log files to your host is the ultimate solution.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, you&#8217;ll find everything you need to know about corrupted files and fixing corrupted or broken files and databases in WordPress. Starting from the description of corrupted files and how they are corrupted, the article explains ways of fixing corrupted files and databases.&nbsp;<\/p>\n\n\n\n<p>The best way to protect your site files and databases from being corrupted is to have a proper backup in place. We also have an article on<a href=\"https:\/\/rarathemes.com\/blog\/backup-wordpress-website\/\"> how to backup your WordPress site<\/a>. Feel free to check it out if you&#8217;re in a dilemma.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u2019s remarkable performance and unmatchable stability make it a top choice for website owners.&nbsp; However, errors in an online platform are inevitable as many components work together, and the same &hellip; <\/p>\n","protected":false},"author":15,"featured_media":36253,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_be_single_description":"","_be_image_uploader":0,"_be_meta_button_label":"","_be_meta_button_url":"","_be_meta_button_newtab":false,"_be_meta_rel_attribute":"","footnotes":""},"categories":[16,3],"tags":[],"class_list":["post-36184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced-tutorials","category-tutorials","latest_post"],"_links":{"self":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/36184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/comments?post=36184"}],"version-history":[{"count":0,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/36184\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media\/36253"}],"wp:attachment":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media?parent=36184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/categories?post=36184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/tags?post=36184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}