If you’ve encountered issues trying to update WordPress, you can simply follow the steps below to resolve them.
Open your wp-config.php file with the cPanel file manager and increase your WordPress memory limit. Include the following line in the “define” section:
Update WordPress again, if for some reason it is still failing,be sure to check your file permissions on your wp-content folder, and make sure it’s set to 755 so that the server can write to it.
Attempt to retry the automatic upgrade process. You should be successful.