Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-11 12:39:41

ellen
Member
From: Switzerland
Registered: 2006-04-18
Posts: 41

Undefined index

Hello,

Uploading new images to TXP results in the following error message:

Notice: Undefined index: thefile in /var/www/web12/html/textpattern/include/txp_image.php on line 336

I’ve cross-checked line 336 with my other working TXP installations and couldn’t find differences. What’s wrong? Pictures 1-5 uploaded correctly.

Many thanks in advance,

ellen

Offline

#2 2007-06-11 13:13:34

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Undefined index

That’s kind of odd. If the index is undefined, the upload shouldn’t have worked. But there’s no reason for that array index to be undefined either.

Would you post your diagnostics results?

It doesn’t mean anything is deeply wrong – the upload did work – but I am curious.

Offline

#3 2007-06-12 16:03:30

ellen
Member
From: Switzerland
Registered: 2006-04-18
Posts: 41

Re: Undefined index

Hello Mary,

Thanks for your prompt reply. This is my diagnostics file:

*Textpattern-Version: 4.0.4 (r1956)
Letzte Aktualisierung: 2007-05-27 20:44:44/2007-05-27 20:04:10
Document Root: /var/www/web12/html
$path_to_site: /var/www/web12/html
Textpattern-Pfad: /var/www/web12/html/textpattern
Schema der URLs: messy
open_basedir: /var/www/web12/html/:/var/www/web12/phptmp/:/var/www/web12/files/:/var/www/web12/atd/
upload_tmp_dir: /var/www/web12/phptmp/
Temporäres Verzeichnis: /var/www/web12/html/textpattern/tmp
Seiten-URL: www.mediwil.de
PHP-Version: 4.3.11
Register globals: 1
Lokale Serverzeit: 2007-06-12 17:36:49
MySQL: 4.0.25-standard
Regionale Einstellungen: de_DE.UTF-8
Server: Apache/2.0.51 (Fedora)
Apache-Version: Apache/2.0.51 (Fedora)
PHP Server API: apache2handler
RFC-2616-Header:
Betriebssystem des Servers: Linux 2.4.31-ck
Aktive Plugins: zem_contact_lang-4.0.3.03m, zem_contact_reborn-4.0.3.17m, rss_suparchive-0.16.1, ob1_modified-0.51

Voruntersuchung:
————————————
Die genutzte Version von PHP hat Sicherheitsrisiken. Bitte stellen sie register_globals auf off oder updaten sie ihre PHP version.
Eine Textpattern-Dateien wurden modifiziert: /lib/admin_config.php
Die Einstellungen der Seiten-URL scheinen falsch zu sein.: web12.admin.webjanssen.de
————————————

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
17 Tables: -

PHP-Erweiterungen: yp, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, standard/4.3.11, sockets, shmop, session, pspell, posix, pcre, overload, iconv, gmp, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37 2005/03/22 22:07:03 edink Exp $, dio/0.1, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache2handler, domxml/20020815, imap, mbstring, mysql

Apache-Module: core, prefork, http_core, mod_so, mod_access, mod_auth, mod_auth_anon, mod_auth_dbm, mod_auth_digest, util_ldap, mod_auth_ldap, mod_include, mod_log_config, mod_env, mod_cern_meta, mod_expires, mod_deflate, mod_headers, mod_usertrack, mod_unique_id, mod_setenvif, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_dav_fs, mod_vhost_alias, mod_negotiation, mod_dir, mod_imap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, mod_proxy, proxy_ftp, proxy_http, proxy_connect, mod_cache, mod_suexec, mod_disk_cache, mod_file_cache, mod_mem_cache, mod_cgi, mod_suphp, mod_fpcgid, mod_perl, sapi_apache2, mod_ssl

/include/txp_category.php: r1879 (aee777474b2f67ca07fc25756ba25c15)
/include/txp_plugin.php: r1917 (74184c0d8ed8608f840707a255178617)
/include/txp_auth.php: r1879 (b1dd4072b7daf4e997c6ff65ce3d1b2d)
/include/txp_form.php: r1913 (16ec600b41438b4cca10d2c8a19b2db8)
/include/txp_section.php: r1891 (2959593586ba3e97bc602f369c32e738)
/include/txp_tag.php: r1915 (3b4a7f73d92f9bbbe09985c5aa830d29)
/include/txp_list.php: r1892 (41f4d32fd070234b78f94adefebd5234)
/include/txp_page.php: r1913 (34331a5468bbb18dd9f6a282f3aa11e8)
/include/txp_discuss.php: r1909 (9b9ee934a30f52cd7a4d8cb45c8380ab)
/include/txp_prefs.php: r1946 (05615b6275d8927a2a0d51918d70a896)
/include/txp_log.php: r1919 (ed54d02e865319f2506c642a6bde768b)
/include/txp_preview.php: r1238 (5a4ae3ff0d68f4cb573d6d62a00ce9e8)
/include/txp_image.php: r1955 (20be975e67fa7c4aa9a1a3e51bfaf379)
/include/txp_article.php: r1889 (7749f699c03d0c57e04fafe17dbfa94c)
/include/txp_css.php: r1897 (f5cf1c20badb96a063c7c180e9020359)
/include/txp_admin.php: r1879 (d36dac010d21df7bcf9cf5e242b34d58)
/include/txp_link.php: r1879 (0652287df8bb32c66cfa1b939402404a)
/include/txp_diag.php: r1902 (96697ade63048e517177f4129d47de76)
/include/txp_file.php: r1895 (6ed67b094522e51b028dc88baa07444c)
/include/txp_import.php: r1238 (634e75d1b61958875ff275e3130f23ad)
/lib/admin_config.php: r1747 (afabc105fb880d5093eac82887a50575)
/lib/txplib_misc.php: r1956 (182c50b86195f1abe9dbe15728df3cae)
/lib/taglib.php: r1535 (04806ef864d5b0d2974e0e5f6397a2d7)
/lib/txplib_head.php: r1887 (b110efd071e9a5bb395beea66ced128a)
/lib/classTextile.php: r1943 (2c559991e34738eef1990dc079bd91c4)
/lib/txplib_html.php: r1937 (c206ca9cb9a54a7a95f3355b77fd0fa2)
/lib/txplib_db.php: r1879 (d68b6ea69950e405c4fec23b8641d9c2)
/lib/IXRClass.php: r765 (cbe59b59246dce060a4b4a52b4d448d8)
/lib/txplib_forms.php: r1887 (0049a228dc8eb346f8603478a7c1b2e2)
/lib/class.thumb.php: r1955 (12961180eee3add5096e69e0a154284e)
/lib/constants.php: unknown (0e40251c717c52b2b7fe992b62a3e97a)
/lib/txplib_update.php: r1239 (757f8189fcc53a795d7c807f17b2e788)
/lib/txplib_wrapper.php: unknown (584448787b4a3488200722672c0eee0d)
/publish/taghandlers.php: r1949 (3fa1b9ded18e6074b2495a3f4e3c33b5)
/publish/atom.php: r1864 (50602e2f1c443819a0a60f14f39d3093)
/publish/log.php: r1637 (a4a772567079f18101a1752446f3f6d4)
/publish/comment.php: r1951 (a3f803d744fea80808eb27a3f6b28674)
/publish/search.php: r1748 (b0182abc287055fe0932c263b2a5266d)
/publish/rss.php: r1864 (ae43eaa9ebe6b00e63810ae60ca7c6b6)
/publish.php: r1945 (abff727405efc6c4ec8b1cb403290063)
/index.php: r1948 (adf86f44861797f4969373c708ef48fb)
/css.php: r944 (763fa7658fc19ad23a5b2126fcdf366c)*

Please note: The Domain is registered at a another ISP than the webspace is. The domain mediwil.de points directly to the webspace under web12.admin.webjanssen.de. I don’t know if this helps but maybe it does.

Offline

#4 2007-06-21 16:37:58

ellen
Member
From: Switzerland
Registered: 2006-04-18
Posts: 41

Re: Undefined index

Huhu, anyone out there? Or shall I try by myself?

Offline

#5 2007-06-21 22:25:02

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

Re: Undefined index

You say pictures 1-5 uploaded correctly.
Does this error only occur for image 6 and higher or did it also occur on the upload of the first 5 images?
Do the images get uploaded correctly, despite the error?
Have you checked the permissions on the image directory (how is that configured and who owns the directory)?

Last edited by ruud (2007-06-21 22:26:05)

Offline

#6 2007-06-22 19:55:55

ellen
Member
From: Switzerland
Registered: 2006-04-18
Posts: 41

Re: Undefined index

Yes, it occurs for image 6 and because it does not work I cannot upload further images. When I try to upload the picture the error message is displayed but nothing is uploaded. The permissions on the image directory are set to 777.

Hope this will help,

Ellen

Offline

#7 2007-06-22 20:05:57

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

Re: Undefined index

A few questions:
  • Can you successfully upload a file on the files tab or does also fail (and if so, which error do you get)?
  • If you download one of the images you’ve already uploaded (one of the first 5) and try to upload that image again (as the 6th image), does that also fail?
  • This list of images in TXP, which IDs does it show, just 1, 2, 3, 4, 5 or something else?
  • The other TXP installation you have, which don’t have this problem, are they hosted on the same server or somewhere else?
  • Have you tried uploading with a different browser (which one are you using?) or from a different computer?

Last edited by ruud (2007-06-22 20:09:47)

Offline

#8 2007-06-22 22:47:47

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,119
Website GitHub

Re: Undefined index

just a long shot: have you checked to see if there’s an error in the database. Make a db backup first, then try repairing the tables in phpmyadmin or whatever you use. Maybe it’s coughing there if the directory permissions are fine.


TXP Builders – finely-crafted code, design and txp

Online

#9 2007-06-25 18:24:37

ellen
Member
From: Switzerland
Registered: 2006-04-18
Posts: 41

Re: Undefined index

Hello,

Here are the answers to your questions:

Can you successfully upload a file on the files tab or does also fail (and if so, which error do you get)?

The same error occurs when uploading a file.

If you download one of the images you’ve already uploaded (one of the first 5) and try to upload that image again, does that also fail?

Yes, it does.

The other two TXP installation you have, which don’t have this problem, are they hosted on the same server or somewhere else?

They’re hosted on the same server.

To jakob: Thanks for the hint. Haven’t tried this before. Will have a try now.

Offline

#10 2007-06-25 19:04:19

ellen
Member
From: Switzerland
Registered: 2006-04-18
Posts: 41

Re: Undefined index

Just tried to repair the table in phpmyadmin. Repair status is ‘OK’ but error still occurs…

Offline

#11 2007-06-27 02:41:41

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Undefined index

There’s 2 other questions Ruud asked. :)

Offline

#12 2007-06-27 09:19:28

ellen
Member
From: Switzerland
Registered: 2006-04-18
Posts: 41

Re: Undefined index

This list of images in TXP, which IDs does it show, just 1, 2, 3, 4, 5 or something else?
It shows the numbers 1-5.

Have you tried uploading with a different browser (which one are you using?) or from a different computer?
Somebody else did with Internet Explorer I think. I always use Safari and in some rare cases Firefox.

Offline

Board footer

Powered by FluxBB