Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-04 00:50:54

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

"Notice: Undefined index..." when trying to upload a file

Hi, I’m receiving this message:
Undefined index: file in /home/exaudi/public_html/textpattern/include/txp_file.php on line 306
when I try to upload a 6MB files…

Could it be related to the filename?
It has white spaces and tildes…

Now, I’m uploading it after renamed it…
In the meanwhile, I post my problem here.

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2006-04-04 03:51:17

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: "Notice: Undefined index..." when trying to upload a file

Well… I have discovered that I can upload files via FTP and then “add” them to the TXP files tab.
I have read that before, but never tested.
In fact, this is the first time I upload a file to TXP.

Still, if someone can tell me something about the “Notice: Undefined…” error above…

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2006-04-04 04:40:25

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

Re: "Notice: Undefined index..." when trying to upload a file

Hmm. Usually admin-side notices can be ignored, not sure what would cause this one. Later I do some testing on this and see if I can replicate the problem. Only 6mb files do this?

Offline

#4 2006-04-04 05:22:52

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: "Notice: Undefined index..." when trying to upload a file

Hi Mary,

no, it happened with different file sizes…
I have success uploading small files (less than 1mb)… but more than 1mb or 2mb become impossible to upload for me.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2006-04-04 05:29:03

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: "Notice: Undefined index..." when trying to upload a file

Please post your diagnostics.


Alex

Offline

#6 2006-04-04 05:33:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: "Notice: Undefined index..." when trying to upload a file

Hi zem, thanks for replying.

<pre><code>
Versión de Textpattern: 4.0.3 (r1188)
last_update: 2006-02-12 21:32:59/2005-12-26 17:49:56
Document root: /home/exaudi/public_html
$path_to_site: /home/exaudi/public_html
Path a Textpattern: /home/exaudi/public_html/textpattern
Modo de enlace permanente: section_title
Directorio temporal: /home/exaudi/public_html/textpattern/tmp
Dominio web: www.exaudi.com.ar
Versión de PHP: 4.3.11
server_time: 2006-04-04 02:30:11
MySQL: 4.1.13-standard
Local: es_ES.UTF-8
Servidor:
php_sapi_mode: cgi
os_version: Linux 2.6.9-22.ELsmp

Comprobación previa:
————————————
El modo de URL limpia sólo para Apache
————————————

contenidos del archivo .htaccess:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^exaudi\.com.ar$ [NC] RewriteRule ^(.*)$ http://www.exaudi.com.ar/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

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

#php_value register_globals 0

————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
18 Tables: OK

Extensiones de PHP: zip, xmlrpc/0.51, xml, wddx, tokenizer/0.1, standard/4.3.11, sockets, session, pspell, posix, pgsql, pcre, overload, mysql, mhash, mcrypt, mbstring, imap, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37 2005/03/22 22:07:03 edink Exp $, domxml/20020815, curl, ctype, calendar, bcmath, zlib/1.1, openssl
/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)
</code></pre>

BTW: a “weird” thing I have noticed long time ago, but dont know if could be related.
If I browse my textpattern site by FTP, inside the /files/ folder, there is a “\” folder (?!?!?)
I cant delete that strange folder nor the /files/ folder by using Filezilla.
I have to use the File Manager of the cPanel to be able to delete the /files/ folder (if for any reason I have to delete it).

thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#7 2006-04-04 11:24:05

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: "Notice: Undefined index..." when trying to upload a file

I don’t think the backslash file is related to the upload problem.

Can you upload any files at all via the content > file tab? Smaller ones, or names without spaces?


Alex

Offline

#8 2006-04-04 13:55:01

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: "Notice: Undefined index..." when trying to upload a file

Yes, I uploaded some small files (< 1mb), even with name with spaces.

Then, I tried different types (.mp3, .zip) of larger files (between 2mb and 6mb) but I always get the error.

By now, the solution for me is to upload them via FTP and then use the TXP tool to “recreate” the file in the file list -> wonderful!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#9 2006-04-04 19:03:22

janw
Member
From: Groningen
Registered: 2005-11-18
Posts: 47

Re: "Notice: Undefined index..." when trying to upload a file

I have the same problem.
If I try to upgrade the max upload to 7000000 in the configuration textpattern changes it to 5242880.
Why is this the maximum of Textpattern and can it be changed?

Offline

#10 2006-04-04 19:11:22

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: "Notice: Undefined index..." when trying to upload a file

I have found this note in the english help of Textpattern.
I quote:

Maximum Upload Size
Here you can restrict the maximim size (in bytes) for file uploads. Note that this value is also limited by the configuration of PHP. If Textpattern detects that your PHP configuration only allows smaller downloads it will automatically correct this value downwards. If you want to allow larger file uploads via upload from the browser you have to talk with your host. (The relevant values in php.ini are post_max_size, upload_max_filesize and memory_limit.)
Note: Image Uploads are not restricted by this value. The maximum allowed size for images is always ~ 1MB (unless restricted by PHP as explained above).

So, my TXP is configured to 2000000 bytes (2MB aprox).
I will try to raise that value.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#11 2006-09-19 15:02:53

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: "Notice: Undefined index..." when trying to upload a file

I had exactly the same notice/problem and raising the value in php.ini immediately solved the problem. Thanks.


Kensington TXP powered rock

Offline

Board footer

Powered by FluxBB