Automatic Update Fails – How to Manually Update WordPress

How to Manually Update WordPress to Latest Version

How to Manually upgrade to Latest WordPress core

If restrictive file permissions are set on your site, you may have to upgrade your WordPress core manually. You may be other reasons for doing a manual update but either way it has to be done.

This article explains how to do this…

Upgrading WordPress Core Manually

  1. Alway create a full backup of your website including if possible a database backup. This is very important in case you make a mistake.
  2. Download the newest WordPress
  3. Unzip the file into a directory on your computer  extract it but double clicking.
  4. Deactivate all of the plugins on your WordPress site.
  5. Go to your website root directory and delete your ‘wp-includes’ and ‘wp-admin’ directories.
  6. Upload the new wp-includes and wp-admin directories from the new freshly extracted version of WordPress, replace the directories you just deleted.
  7. Never delete your wp-content directory it contains themes, plugins and Uploads.
  8. Delete the WordPress .maintenance file

    If you are upgrading manually after a failed auto-update, remove the .maintenance file from your WordPress root directory. To do this navigate to root force showing hidden files

  9. Visit your main WordPress page at /wp-admin/.  Go to the plugins folder, where you can bulk activate and individually activate your plugins.
  10. Your upgrade is now complete and you should be running the newest version of WordPress.

Default WordPress .htaccess file

Copy and paste the code for the default WordPress .htaccess file. This file is needed to test if repairing your WordPress i.e. Internal Server Error or white screen errors.

# 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

View WordPress .htaccess file or Download a fresh WordPress .htaccess

Some computer systems don’t show any file with the . before it for security reasons, so you may have to rename it as “.htaccess” there is no extension required or needed for this type of file. The .htaccess file is the most powerful file on your website. If it is wrong your website wont display.

 

Most browsers strip the . before they will download the file.

Internal Server Error WordPress

Fixing Internal Server Error

A code 500 Internal Server Error. Is one of the common WordPress errors, it can put a WordPress user in a absolute panic of deleting and backtracking. Thinging to remember there last actions, before the error.

Pinguis Web fix errors like the internal server error, error establishing database connection, white screen of death, and many similar errors for our users.



Why do you get Internal Server Error in WordPress?

Internal server error is not specific to WordPress. Due to the lack of description of this error, it does not tell the developer anything.

Most internal server error in WordPress are caused by a plugin or the theme. Internal server error in WordPress can be corrupted .htaccess file and low PHP memory limit.

Checking for a Corrupt .htaccess File

Internal server error in WordPress may come from a corrupted .htaccess file. Renaming your main .htaccess file to something like 1.htaccess. To rename the .htaccess file, you will need to login to your site using the FTP.

How to deal with internal server error website not appearing or Website is Blank

The .htaccess file will be located at the domain level of your website in the same directory where you will see folders like wp-content, wp-admin, and wp-includes or files begining with wp-*****.php example wp-config.php.

Once you have renamed the .htaccess file, try re-loading your site to see if this solved the problem. If this works congrats, get a fresh copy of .htaccess file here.

 

Before you continue troubleshooting, make sure that you go to Settings » Permalinks and click the save button. This will generate new proper rewrite rules to ensure that your post pages don’t return a 404, when viewing your website.

How to Increase the PHP Memory Limit

The error can happen if you have exhausted your PHP memory limit. Either way it has to be fixed the internal server error only may show when you try to login to your WordPress admin or uploading an image, if this is your error you should increase the memory limit by following these steps:

  1. Create a blank text file called php.ini
  2. Paste this code in there:
    define( 'WP_MEMORY_LIMIT', '256M' );

    or download a pre-made php.ini

  3. Save the file
  4. Upload it into your /wp-admin/ folder using FTP
Save php.ini in wp-admin folder

Doing the above should fix the problem. Retest your Website.

 

If increasing the memory limit fixed the problem for you, then you have fixed the problem temporarily. There has to be something that is exhausting your memory limit. This could be a plugin or even a theme problem.

If increasing the PHP memory limit did not fix the problem for you Deactivate all plugins.

Deactivate all Plugins

If none of the above solutions worked for you, then this error is most likely being caused by a specific plugin. It is also possible that it is a combination of plugins that are not playing nice with each other.

A quick tip, if you have ftp access, comment out the plugins folder. for example – 1plugins. This will disable all plugins at once allowing you to test the website. Has it come back…

If disabling all plugins fixed the error, then you know it is one of the plugins that is causing the error. Simply go through and reactivate one plugin at a time until you find the one that caused the issue. Get rid of that plugin, and report the error to the plugin author.

Re-load Core Files WordPress files

If the plugin option didn’t fix the internal server error, then it is worth re-uploading the wp-admin and wp-includes folder from a fresh WordPress install. This will NOT remove any of your information, but it may solve the problem in cases of corrupt wordpress core files.

Make sure not to upload the wp-contents folder, it will overwrite all your themes, plugins and more importantly your uploads folder(images).

If your website is still not online, talk to your hosting company, have you paid your hosting fee, have you renewed your domain.

Ask yourself questions, maybe it will remind you of something vital, that you may not have considered when troubleshooting.

force showing hidden files ftp

Save