Hi everyone, I’m using local wp to create a showcase site on WordPress, when I go to install the theme downloaded for free online it says Warning: File upload error - unable to create a temporary file in Unknown on line 0
Missing a temporary folder. but if I install it in an online hosting it doesn’t give me any problems, how can I solve it? thanks in advance
I think the tutorial here will help you out but let us know if you run into any issues:
Hi, thanks for the tutorial, I’ve already tried this procedure but it doesn’t work. This tutorial, like many others, explains how to solve on hosting, therefore by going to the cPanel dashboard, in this case I am working locally and I cannot do some steps. Do you have other solutions for the local problem?
Hey @Calogero
There are a few different things you can check but we’ll start here as I think this has helped another Local user I could find which is to ensure that the upload_tmp_dir
is set correctly in your php.ini
file.
You’ll want to find the php.ini
file (conf/php/) and search for the upload_tmp_dir
directive.
Make sure this is set it to a directory where PHP has permission to create files. For example:
upload_tmp_dir = /path/to/your/temp/dir
hi nick, thanks for helping me, the problem was in the php.ini configuration, finally I solved it. thanks a lot.
Glad to hear it @Calogero! Thank you for letting us know.
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.