php - missing a temporary folder wordpress upload -


i have wordpress installed . host provider 1&1. if tried upload media file show me error missing temporary folder . define path fpr temp directory . refer link link . , created php.ini file in home directory . php.ini file content

upload_max_filesize = 16m upload_tmp_dir = on upload_tmp_dir = /epigram.co.uk/tmp 

i tried change wp-config file , added

define('wp_temp_dir','/epigram.co.uk/tmp'); 

also tried full path .

define('wp_temp_dir',$_server['document_root'].'/tmp'); 

nothing helped me . appreciated .thanks

problem : wordpress giving error on image upload : "image.jpg" has failed upload due error "missing temporary folder."

if receiving error please follow these simple instructions below:

  1. create "tmp" folder in wordpress root directory 777 permissions. can done ftp program.

  2. also create "php.ini" file in same location.

  3. add following in php.ini file:

    upload_max_filesize = 16m

    upload_tmp_dir = on

    upload_tmp_dir = /home/username/public_html/wordpressdir/tmp

please make sure replace username hosting username, , wordpressdir directory name of wordpress install. if have installed wordpress on homepage path like: upload_tmp_dir = /home/username/public_html/tmp

  1. copy same php.ini file wp_admin folder.

that's it.


Comments