Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-08-12 11:14:12
- TimTops
- Member
- Registered: 2005-07-21
- Posts: 19
Just started getting upload_err_tmp_dir errors after no changes
Hello,
Strangley, after months and months with no issues, we’ve just today run into a stumbling block when trying to upload images. We have uploaded over 12K images over the last couple of years but today we can’t upload anymore without getting the error “upload_err_tmp_dir”.
I’ve searched for past occurences of this problem on the forum and chmoded the file to 777 without any luck. The path is intact and as I say, hasn’t changed since yesterday.
So I’m guessing something changed on our server? Or is there a disk limit or something? We’re running it from Dreamhost.
Diagnostic info:
Textpattern version: 4.0.6 (r2805)
last_update: 2008-02-14 17:22:11/2008-02-14 17:20:46
<snip>
Site URL: www.indielondon.co.uk
PHP version: 4.4.8
Register globals: 1
gd_library: gd_info: bundled (2.0.28 compatible), GIF, JPG, PNG
server_time: 2008-08-12 04:11:49
MySQL: 4.1.14-Debian_5-log
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.8 mod_ssl/2.8.22 OpenSSL/0.9.7e
php_sapi_mode: cgi
rfc2616_headers:
os_version: Linux 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194
active_plugins: chh_article_custom-0.41, glx_admin_db_tables-0.1, jcb_columnize-0.3m, rss_admin_db_manager-4.1, nhn_image_import-0.1, rss_admin_show_adv_opts-0.3, chh_related_articles-0.34, wet_article_thumb-0.2, bos_image_display-0.40, beb_jmrhacked-0.3m, zem_link-0.3, zem_article_info-0.1, cno_gallery-0.3m, upm_img_popper-0.8.6, rss_auto_excerpt-0.2, cab_social-0.2
.htaccess file contents:
————————————
Some redirects etc…
#php_value register_globals 0
————————————
Many thanks in advance,
Tim
Last edited by TimTops (2008-12-17 16:38:21)
Offline
#2 2008-08-14 10:46:24
- TimTops
- Member
- Registered: 2005-07-21
- Posts: 19
Re: Just started getting upload_err_tmp_dir errors after no changes
No ideas?
Offline
Re: Just started getting upload_err_tmp_dir errors after no changes
I’ve had a similar problem recently, and found the FAQ blames the hosting company:
http://textpattern.com/faq/263/safe-mode-move_uploaded_file-error
I contacted my hosting company, and they say it’s a problem with textpattern. The response was:
Hi Nickoli — This workaround might or might not apply to you as a solution, depending on your version of Textpattern:
https://members.nearlyfreespeech.net/forums/viewtopic.php?t=2219
Mainly the path /var/tmp is not one where Textpattern should be trying to create files. It’s referencing a $tempdir variable that isn’t set anywhere. You might want to kick this back to their developers.
I inserted a line in textpattern/lib/txplib_misc.php to set $tempdir – for me it looked like this:
$tempdir = “/f1/content/nickoli/public/tmp”;
created the directory /tmp, set it to 777, and that seemed to fix the problem. It shows up the error “Some Textpattern files have been modified: /lib/txplib_misc.php” on the pre-flight check, but that’s all.
Offline
Re: Just started getting upload_err_tmp_dir errors after no changes
upload_err_tmp_dir = “Missing a temporary folder, used by PHP to store uploaded files. Please consult your webhost.”
Nickoli, $tempdir is not the directory involved here. $tempdir is used by TXP itself to temporarily store files (that were previously stored by PHP in its own temp dir). You can set $tempdir in the preferences. No need to edit txplib_misc.php.
The FAQ is correct and applies to error messages such as this: “Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 1240 is not allowed to access /tmp/txp_ksI13a owned by uid 33 in /home/users/textpattern/lib/txplib_misc.php on line 1197”
Offline