Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-09 15:22:47

dominik.osterholt
Member
Registered: 2006-01-13
Posts: 18

Problem with image uploads: Notice: Undefined index: thefile in...

Hi there,

I’ve read the FAQ, and searched for similiar problems, but only found this similar thread, in which the questioner solved the problem by installing a new linux version, which I can’t.

When trying to upload images or files, I’m getting:

Notice: Undefined index: thefile in /home/www.mydomain.com/html/neu/textpattern/include/txp_image.php on line 186

tmp, images and files are all chmod 0777. As you can see in Diagnostics, htaccess is missing, but I’m pretty sure this hasn’t got to do with it, has it?

Diagnostics says:

Textpattern version: 4.0.3 (r1188)
Last Update: 2006-09-19 09:51:25/2006-09-19 09:48:19
Document root: /home/www.my-domain.com/html
$path_to_site: /home/www.my-domain.com/html/neu
Textpattern path: /home/www.my-domain.com/html/neu/textpattern
Permanent link mode: section_title
Temporary directory path: /home/www.my-domain.com/html/neu/textpattern/tmp
Site URL: www.my-domain.com/neu
PHP version: 4.3.1
Server Local Time: 2006-10-09 17:22:55
MySQL: 4.0.21-standard
Locale: en_US.UTF-8
Server: Apache/1.3.27 (Linux/SuSE) mod_jk/1.2.2-dev PHP/4.3.1
PHP Server API: apache
Server OS: Linux 2.4.20-64GB-SMP

Pre-flight check:
————————————
.htaccess file is missing
————————————
Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
18 Tables: txp_css: 1 client is using or hasn’t closed the table properly, txp_log: 2 clients are using or haven’t closed the table properly, txp_page: 1 client is using or hasn’t closed the table properly

PHP extensions: yp, xslt, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, standard/4.3.1, snmp, shmop, session, qtdom, posix, pgsql, pcre, overload, openssl, odbc, mysql, mcrypt, mcal, mbstring, ldap, imap, iconv, gmp, gettext, gd, ftp, filepro, exif/1.4 $Id: exif.c,v 1.118.2.12 2002/12/23 08:43:13 sesser Exp $, domxml/20020814, dbase, dba, curl, ctype, calendar, bz2, bcmath, zlib/1.1, apache
/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: r1172 (52f753ebb51c1f7d5312485d9dbad7e4)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)

Is there any workaround? Any help is very appreciated.

Dominik

Offline

#2 2006-10-09 15:35:44

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Problem with image uploads: Notice: Undefined index: thefile in...

That message means that the file-upload failed, but for some reasn we didn’t get a reason why. Recently in #textpattern on freenode (hint, hint) smebody had the same problem, and it turned that he was trying to upload files too big (not enough free space on the partition). Do you get the same error when you try to upload a small file?

Offline

#3 2006-10-09 15:50:13

dominik.osterholt
Member
Registered: 2006-01-13
Posts: 18

Re: Problem with image uploads: Notice: Undefined index: thefile in...

Unfortunately, yes. I’ve tried to upload several files (.jpg, .gif, and .pdf for file uploads), of which the biggest was 128 kb, the smallest 4 kb. So, this should not cause the problem.

I’ve just checked on the PHP version, it’s 4.3.1 – not the newest, but still fills Textpattern’s requirements.

Any other ideas?

Offline

#4 2006-10-09 15:56:02

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Problem with image uploads: Notice: Undefined index: thefile in...

Wow, I hope that’s not running on a publicly available server (thinking of the many security-related bugs in PHP ;) Though I don’t think it’s the source of your problem in this case.

In advanced preferences: What is maximum filesize set to? What error message do you get when you try to upload something from the image-tab?

What is your files-path set to? Are the permissions correct?
Is the tmp-directory writable “/home/www.my-domain.com/html/neu/textpattern/tmp”?

Offline

#5 2006-10-09 16:07:56

dominik.osterholt
Member
Registered: 2006-01-13
Posts: 18

Re: Problem with image uploads: Notice: Undefined index: thefile in...

I know about the security issues of that PHP version, but since it’s not my server, it’s not my decision… :) Thanks anyways.

Max Upload File Size is 2000000 bytes.

The file path is /home/www.my-domain.com/html/neu/files. Yes, it’s writable. So is the relative image path /images.

All upload folders (images, files) and the tmp folder are chmod 0777 – I’ve just double-checked it.

Is there anything I could find out additionaly by getting the phpinfo?

Offline

#6 2006-10-09 17:11:06

dominik.osterholt
Member
Registered: 2006-01-13
Posts: 18

Re: Problem with image uploads: Notice: Undefined index: thefile in...

Solved it. Dammit.

All the time, I used a bookmark to the login page of Textpattern, which wasn’t the root of the TP installation, but forwarded through URL-hiding. When logging onto the original URL, it works fine.

Sorry for that, and thanks for your efforts,

Dominik

Offline

#7 2006-10-09 18:18:53

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Problem with image uploads: Notice: Undefined index: thefile in...

dominik.osterholt wrote:

All the time, I used a bookmark to the login page of Textpattern, which wasn’t the root of the TP installation, but forwarded through URL-hiding. When logging onto the original URL, it works fine.

Can you be more specific? It sounds like this could be a problem we could catch and diagnose properly from within Textpattern, but I am not sure I understand how to reproduce it.

Thanks. :)

Last edited by Sencer (2006-10-09 18:28:38)

Offline

#8 2006-10-09 19:31:57

dominik.osterholt
Member
Registered: 2006-01-13
Posts: 18

Re: Problem with image uploads: Notice: Undefined index: thefile in...

It’s simple: I logged onto www.my-alternative-domain.com/textpattern (which only worked because of the url-hiding method of the apache server), whilst the document root was www.my-original-domain.com/textpattern. Textpattern’s basic functions worked fine in the alternative domain, but when it came to uploading images and files, the problems mentioned before occured.

In the original domain, uploading images and files was and is no problem.

Got it? It’s probably difficult to reproduce this problem because of the specific configuration of the server; but you can give it a try…

Dominik

Offline

Board footer

Powered by FluxBB