Solution:
- Go to Your wp-content folder. You can access the wp-content folder by using a file manager on your hosting or using FTP. The location will be domain/wp-content (where domain is the website domain name)
- When you are in wp-content create new folder under wp-content and call it temp.
- Download your wp-config file from your server to your computer. This is just in case you make a mistake and have a backup which you can quickly restore. Open the wp-config file and search for the following line of code.
if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(FILE) . ‘/’);
- Add following line of code after that line.
**/Set WordPress temporary directory / define(‘WP_TEMP_DIR’, ABSPATH . ‘wp-content/temp’);
- Save the wp-config.php file. If you edited it on your PC upload it to the website