backint2
New Member
- Messages
- 25
- Reaction score
- 1
- Points
- 3
Hi, i need someone to modify for me the file.php because i cannot upload images due to this error that says "Missing a temporary folder" This is causing me more problems, i run an online shop with woocommerce and when a client purchase something, the purchase is cancelled automatically.
The instructions i get to find are here and are the following:
"I had this same problem and it was from WordPress working in a different directory than the root, trying to upload to a tmp folder that doesn't exist.
If you are using WordPress 2.7, go to wp-admin/includes/file.php, and after line 260, add this line temporarily:
echo getcwd();
This will tell you the current working directory. If there is more than just "/", you will need to add this to your PHP temporary directory line as well instead of just the usual "/tmp"
So, I changed my php.ini file from upload_tmp_dir ="/tmp/" to
upload_tmp_dir ="/usr/home/usernamehere/tmp/"
Works now!"
Hope someone can help me, thanks!
________________________________________________________________________________
Hola, necesito que alguien me ayude modificando el archivo file.php porque no puedo subir imágenes a mi web ya que "Falta un directorio temporal" Esto me está causando más problemas, ya que tengo una tienda online con woocommerce y cuando un cliente compra algo, el pedido se cancela de forma automática.
Las instrucciones que he podido encontrar están en este link y son las siguientes:
"I had this same problem and it was from WordPress working in a different directory than the root, trying to upload to a tmp folder that doesn't exist.
If you are using WordPress 2.7, go to wp-admin/includes/file.php, and after line 260, add this line temporarily:
echo getcwd();
This will tell you the current working directory. If there is more than just "/", you will need to add this to your PHP temporary directory line as well instead of just the usual "/tmp"
So, I changed my php.ini file from upload_tmp_dir ="/tmp/" to
upload_tmp_dir ="/usr/home/usernamehere/tmp/"
Works now!"
Espero que alguien pueda ayudarme, gracias!
The instructions i get to find are here and are the following:
"I had this same problem and it was from WordPress working in a different directory than the root, trying to upload to a tmp folder that doesn't exist.
If you are using WordPress 2.7, go to wp-admin/includes/file.php, and after line 260, add this line temporarily:
echo getcwd();
This will tell you the current working directory. If there is more than just "/", you will need to add this to your PHP temporary directory line as well instead of just the usual "/tmp"
So, I changed my php.ini file from upload_tmp_dir ="/tmp/" to
upload_tmp_dir ="/usr/home/usernamehere/tmp/"
Works now!"
Hope someone can help me, thanks!
________________________________________________________________________________
Hola, necesito que alguien me ayude modificando el archivo file.php porque no puedo subir imágenes a mi web ya que "Falta un directorio temporal" Esto me está causando más problemas, ya que tengo una tienda online con woocommerce y cuando un cliente compra algo, el pedido se cancela de forma automática.
Las instrucciones que he podido encontrar están en este link y son las siguientes:
"I had this same problem and it was from WordPress working in a different directory than the root, trying to upload to a tmp folder that doesn't exist.
If you are using WordPress 2.7, go to wp-admin/includes/file.php, and after line 260, add this line temporarily:
echo getcwd();
This will tell you the current working directory. If there is more than just "/", you will need to add this to your PHP temporary directory line as well instead of just the usual "/tmp"
So, I changed my php.ini file from upload_tmp_dir ="/tmp/" to
upload_tmp_dir ="/usr/home/usernamehere/tmp/"
Works now!"
Espero que alguien pueda ayudarme, gracias!