Upload problem due failing to write tmp directory

t4c

Joined: 2011-02-09
Posts: 9
Posted: Mon, 2014-04-07 11:02

Hi folkz,

after upgrading my gallery3 I experience some problems with uploading files.
My tmp directory ist set to:

/var/www/$VHOST/tmp

via php.ini.

Now if I try to upload some files, I get a message that my uploads fail, so I turned on debugging via local.php and saw:

2014-04-07 12:50:19 +02:00 --- error: Kohana_PHP_Exception [ 2 ]: File upload error - unable to create a temporary file
Unknown [ 0 ]
#0 [internal function]: Kohana_PHP_Exception_Core::shutdown_handler(NULL)
#1 /var/www/digital-bit.ch/htdocs/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#2 /var/www/digital-bit.ch/htdocs/gallery3/system/core/Kohana.php(553): Event_Core::run('system.shutdown')
#3 [internal function]: Kohana_Core::shutdown()
#4 {main}

so I took a look to files where the tmp may be set and I found the index.php with:

define("TMPPATH", VARPATH . "tmp/");

which I switched to:

define ("TMPPATH", "/var/www/$VHOST/tmp/");

this did not work :).
So may you have some help for me to fix this problem?

PHP 5.5.10-pl0-gentoo (cli) (built: Mar 11 2014 14:58:56) is my acutal PHP build

Fixed it... sorry for disturbing, needed to create a temp directory within rootpath of G3

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2014-04-07 15:57

what is $VHOST value? Try replacing with the actual value.