Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-27 11:39:11

freischwimmen
Member
From: Cologne
Registered: 2007-05-28
Posts: 71
Website

Image Upload Problem - Missing a temporary folder...

Hi all,
i recently switched to a mac and now encounter a problem on a local installation i havent had before,
when i try to upload an image (locally) i get the following warning and no data is uploaded:

Missing a temporary folder, used by PHP to store uploaded files. Please consult your webhost.

I have a tmp / img directory assigned, CHMOD on both is 777 just to make sure.

Any hints are greatly appreciated, thanks in advance!

Offline

#2 2008-09-27 12:02:18

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Image Upload Problem - Missing a temporary folder...

It’s a different temporary folder. Not the one you set in the TXP preferences, but the one that PHP itself uses to store uploaded files. The location of this temporary directory is not the same on every webserver, so your webhost will know which one it is.

I’d revert the chmod action if I were you.

Offline

#3 2008-09-27 12:19:04

freischwimmen
Member
From: Cologne
Registered: 2007-05-28
Posts: 71
Website

Re: Image Upload Problem - Missing a temporary folder...

Thanks Ruud.
I figured it would be the issue you adressed,
as the site is in local environment i doubt that it has to do with webhost settings.
so i looked into the config_inc.php of phpmyadmin, is that correct?

i found this and added the temp dir without any visible effect:

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['TempDir'] = '';
?>

should i just put a valid path in there like this?
/Applications/xampp/xamppfiles/abc…

And yeah, i will set permissions differently when it goes live :)

Offline

#4 2008-09-27 14:14:51

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Image Upload Problem - Missing a temporary folder...

Ah, so you’re the webhost yourself ;)
It’s the “upload_tmp_dir” setting in php.ini

Offline

#5 2008-09-27 15:37:08

freischwimmen
Member
From: Cologne
Registered: 2007-05-28
Posts: 71
Website

Re: Image Upload Problem - Missing a temporary folder...

You`re the man :)

Thx a lot Ruud, that did the trick.
i wasn`t sure where to set this tmp directory, still pretty new to all this…

Great!

Offline

Board footer

Powered by FluxBB