Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-23 16:47:42

osugodfan
Member
Registered: 2008-03-16
Posts: 16

Temporary directory undefined, please update your Advanced Preferences

I’ve just upgraded to Txp 4.06, getting this error when trying to upload an image via the traditional tab. I checked the tmp directory in textpattern folder and it’s chmod 777. Not really sure what’s going on. Any ideas?

Offline

#2 2008-07-23 17:07:47

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Temporary directory undefined, please update your Advanced Preferences

Have you checked the Advanced Preferences whether it’s specified there properly?

Sometimes /tmp/ is enough, but most of my installations use a full server path such as
/users/home/somename/web/public/textpattern/tmp

Offline

#3 2008-07-23 17:10:28

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Temporary directory undefined, please update your Advanced Preferences

Have you tried emptying the temporary-field contents and saving?

Offline

#4 2008-07-23 17:23:41

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

Re: Temporary directory undefined, please update your Advanced Preferences

Have you updated the language pack as well? (preferences, tab ‘language’)?

Please post your diagnostics.

Offline

#5 2008-07-23 21:05:27

osugodfan
Member
Registered: 2008-03-16
Posts: 16

Re: Temporary directory undefined, please update your Advanced Preferences

I’ve tried everything you (wonderful) folks have said but nothing, yet. Here are the diagnostics (low).

Textpattern version: 4.0.6 (r2805)
Last Update: 2008-07-12 18:16:15/2008-01-28 00:59:11
Document root: /home/doublelr/public_html
$path_to_site: /home/doublelr/public_html
Textpattern path: /home/doublelr/public_html/textpattern
Permanent link mode: section_title
open_basedir: /home/doublelr/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp
Temporary directory path: /home/doublelr/public_html/textpattern/tmp
Site URL: www.doublelranchok.com
PHP version: 4.4.7
Register globals: 1
GD Image Library: version bundled (2.0.28 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-07-23 16:03:50
MySQL: 4.1.22-standard
Locale: en_US.UTF-8
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.7 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Apache version: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.7 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.6.9-67.0.1.ELsmp
Active plugins: hak_tinymce-0.7.1, zem_contact_reborn-4.0.3.19, zem_contact_lang-4.0.3.6, vdh_flickr-0.8.10m, wow_gallery_lib-0.6, wow_gallery-0.6, rss_admin_db_manager-4.3, mdp_calendar-1.0, smd_lib-0.21b, smd_slimbox-0.24, rah_metas-0.5

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

php_flag session.use_trans_sid off
————————————

Last edited by osugodfan (2008-07-23 21:06:47)

Offline

#6 2008-07-23 21:42:43

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

Re: Temporary directory undefined, please update your Advanced Preferences

This language string does not exist anymore (just updated US english to match UK english):

Temporary directory undefined, please update your Advanced Preferences

If you update the language in TXP, you’ll now get this one instead:

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

I’m guessing this language string isn’t updated in all languages yet, causing the confusion.

Last edited by ruud (2008-07-23 21:47:19)

Offline

#7 2008-07-23 21:51:10

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Temporary directory undefined, please update your Advanced Preferences

Just out of curiosity and for learning purposes: htaccess is OK like that, 1 line instead of 4?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#8 2008-07-24 03:05:04

osugodfan
Member
Registered: 2008-03-16
Posts: 16

Re: Temporary directory undefined, please update your Advanced Preferences

I updated the language pack and checked the status of that folder, it’s not missing it’s there—right in the textpattern directory like it should be. I deleted it and added another with the same name and chmod it 777 just to be sure, but still, nothing. I’ll send an email to my website just in case. In any case, it’s an interesting dilemma.

Last edited by osugodfan (2008-07-24 03:05:21)

Offline

#9 2008-07-24 08:03:40

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

Re: Temporary directory undefined, please update your Advanced Preferences

osugodfan, It’s not the TXP temporary directory that’s causing this, but a missing directory that PHP itself uses to store uploaded files. This directory is used by all PHP scripts that upload stuff, not just Textpattern. Perhaps you deleted it by accident. Your webhost will be able to tell you which directory it is.

uli, no that doesn’t look okay, but I’m guessing that’s just a result of pasting it here.

Offline

#10 2008-07-24 16:15:57

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Temporary directory undefined, please update your Advanced Preferences

uli wrote:

1 line instead of 4?

Uli, if you hit ‘quote’ for that post you will see it looks okay. It’s just the lack of bc. :)

Offline

Board footer

Powered by FluxBB