Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-11 20:11:57

jarmonkeys
New Member
Registered: 2005-09-12
Posts: 2

Can't upload files or images

Hello,

I’m having trouble uploading files and images. I get the message:

“Temporary directory undefined, please update your Advanced Preferences.”

The temp directory is defined (/home/katiehnet/public_html/textpattern/tmp) and set to 777.

I tried the upload.php file that was suggested in another post an got the following:

array(1) { [“myfile”]=> array(5) { [“name”]=> string(28) “KatieWeb_HOME_revised_03.jpg” [“type”]=> string(0) “” [“tmp_name”]=> string(0) “” [“error”]=> int(6) [“size”]=> int(0) }
}

Any ideas?

Many thanks

Textpattern version: 4.0.5 (r2466)
Last Update: 2007-09-04 19:17:33/2007-07-01 20:03:44
Document root: /home/katiehnet/public_html
$path_to_site: /home/katiehnet/public_html
Textpattern path: /home/katiehnet/public_html/textpattern
Permanent link mode: messy
open_basedir: /home/katiehnet/public_html
Temporary directory path: /home/katiehnet/public_html/textpattern/tmp
Site URL: www.katie-holland.net
PHP version: 4.4.7
Register globals: 1
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2007-09-11 21:06:51
MySQL: 4.1.20
Locale: en_GB.UTF-8
Server: Apache/2.0.52 (CentOS)
Apache version: Apache/2.0.52 (CentOS)
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Linux 2.6.20.4a
Active plugins: rss_admin_db_manager-4.3, hak_tinymce-0.7.3

Pre-flight check:
————————————
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: escapeshellcmd, escapeshellarg, disk_free_space
————————————

Offline

#2 2007-09-11 20:53:21

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

Re: Can't upload files or images

It’s not the TXP temporary directory that it is referring to (even though the error message says so), but the temporary directory where PHP stores it’s temporary files. Ask your webhost where that temporary directory should be, perhaps you erased it by mistake.

Offline

#3 2007-09-11 21:08:59

jarmonkeys
New Member
Registered: 2005-09-12
Posts: 2

Re: Can't upload files or images

Many thanks, Ruud.

I did a little digging around my host control panel and it seems upload_tmp_dir defaults to a “central server” tmp folder (I guess outside of the writable webspace?). I’ve changed it to a folder in the root directory. Hopefully this will sort it – I’ll find out in 12 hours when the server is rebooted.

Cheers,

Jon

Edit :

That was a quick 12 hours :-)
Problem fixed – thanks again!

Last edited by jarmonkeys (2007-09-11 22:19:41)

Offline

Board footer

Powered by FluxBB