Hi,

while uploading images, i am getting following error

“Missing a temporary folder”,

i have changed in wp-config.php and created temp folder in wp-content but still problem is same.

could help me out from this error.

Regards,
Raja

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hi @rajviswas,

Can you confirm you’ve followed these steps :

Copy paste the following code to the file before the line that says `That’s all, stop editing! Happy blogging’.

define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/tmp/');

Go to /wp-content/ folder.

cd /path/to/website/wp-content

Create a new folder named tmp:

cd /path/to/website/wp-content && touch tmp

If the solution mentioned above does not work for you, then you should check the directory permissions of your wp-content folder. That directory needs to have 755 permissions.

To change the permissions, you can run the following

chmod 755 /path/to/website/wp-content

Please remember to change ’/path/to/website’ with the actual path on the server.

Regards,
KDSys

Hello,

I am facing the same error.
I’ve done all the instructions above but still got an error

did find the way to fix it please @rajviswas @KFSys
Kindly advice

  • Hi @waddahhallak,

    Please make sure you have the proper permissions and ownership configured on your WordPress installation.

    Depending on what WebService you are using you’ll have different user and group which you’ll need to assign to your files.

    Regards,
    KFSys

Submit an Answer