Today I pushed to live (using Softaculous) a staged version of my WordPress website which was working perfectly. Afterwards, the only thing that doesn't work properly is uploading files/media.
The error I get is "Missing a temporary folder."
Now, I made good use of the internet and went on quite a lot of websites which detailed a few steps to fixing this, but to no success. Whatever I do, the error persists.
The "fixes" i tried so far are as follows:
a. Define temp folder in wp-config.php
define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
b. Define temp folder in the php.ini file
c. Change folder permission from the default 755
I also checked the functions.php file for the function to make sure nothing is broken, but it is all fine as far as I can tell and can't find a reason why it doesn't execute as it should.
What other methods should I try without having to reinstall the whole website (for obvious reasons)?