Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-09 13:19:39
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
first install - first problem...
I downloaded and installed Textpattern 4.0.2. Everithing passed without errors…
I have logged in by admin account and go went to the “Content” -> “Images” and tried to upload the file,
it was not succes – the message :
“Notice: Undefined index: thefile in /var/www/html/textpattern/include/txp_image.php on line 186 “
appeared at the top of page. There were any errors in the httpd apache logs… Thats’s wrong with my settings? What should i tweak?
Also i tried to upload file – the result was the same:
Notice: Undefined index: thefile in /var/www/html/textpattern/include/txp_file.php on line 490
Notice: Undefined index: thefile in /var/www/html/textpattern/include/txp_file.php on line 496
Notice: Undefined index: file in /var/www/html/textpattern/include/txp_file.php on line 306
Failed to upload file
Please help to solve the problem.
Thank you.
Last edited by Vilmer (2005-12-09 13:25:28)
Offline
Re: first install - first problem...
Please post your diagnostics (admin-> diagnostics).
Do you have any plugins installed?
Did you change or replace any individual files?
Offline
#3 2005-12-09 13:35:41
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
Re: first install - first problem...
> Sencer wrote:
> Please post your diagnostics (admin-> diagnostics).
Do you have any plugins installed?
Did you change or replace any individual files?
No one plugin installed, it is clean installation.
Nothig has replaced if changed. All that i done:
Downloaded textpattern, extracted to /var/www/html/ ,
created database and user in mysql,
from browser ran setup, finished installation.
If it helps, i ran “Diagnostic”, the output:
Textpattern version: 4.0.2 (r1076)
last_update: 2005-12-09 12:48:35/2005-11-01 15:01:29
Document root: /var/www/html
$path_to_site: /var/www/html
Textpattern path: /var/www/html/textpattern
Permanent link mode: messy
Temp folder: /var/www/html/textpattern/tmp
Site URL: my.real
PHP version: 4.3.4
Server time: 2005-12-09 15:59:22
MySQL: 3.23.58
Locale: en_GB.UTF-8
Server: Apache/2.0.48 (ASPLinux)
Apache version: Apache/2.0.48 (ASPLinux)
.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
————————————
Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin2 latin5 swe7 usa7 win1250 win1251 win1251ukr ujis sjis tis620
18 Tables: OK
PHP extensions: yp, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, standard/4.3.4, sockets, shmop, session, pspell, posix, pcre, overload, mbstring, iconv, gmp, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.25 2003/09/22 23:28:07 iliaa Exp $, dio/0.1, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache2handler, mysql, snmp, xmlrpc/0.51
Apache modules: 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_mime_magic, 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, sapi_apache2
/include/txp_category.php: r901 (ced49a43561099e1652fccb7880b8f66)
/include/txp_plugin.php: r902 (20ba701396c318619a4e00681af8b228)
/include/txp_auth.php: r928 (4cfa9ec7960f80308c9392cec5722616)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r904 (3575f34afd7bf1400ecb7926483fcbd2)
/include/txp_tag.php: r982 (c4f3b1cd5aa07a45f6218ec2a6befe0f)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r1026 (6c0696f2147c45276380a7438dbd1575)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1042 (d9c8518ac976a9f21af59c9012818546)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1042 (f4e99d4b37e5c80f3c9fb2f1b1c08e3d)
/include/txp_diag.php: r1075 (d4b97f820b0ea9abe593cb74bf3891c2)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1064 (c4b8079db64c3fbe57ea961181d88512)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1055 (a8e03ea3e927ddde5fc25434a506dfb7)
/lib/classTextile.php: r1072 (52c3c2efdde23f52efdd0d7728c6986f)
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r1037 (30aea53e1c1fce877a10d2d9fa3ce90c)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1037 (6848c34e120c99b6889b7f19c421b076)
/publish.php: r1073 (700374ed1a9cb57b5afc355ac977daad)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
Last edited by Vilmer (2005-12-09 14:01:11)
Offline
#4 2005-12-09 14:40:32
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
Re: first install - first problem...
I have posted “Diagnostic” in previous post. The “Plugins” are upload without any errors…
Offline
#5 2005-12-13 09:58:18
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
Re: first install - first problem...
Is anyone can help me? :(
Offline
Re: first install - first problem...
When you go into preferences -> advanced preferences, you should have a row for defining the file-upload-path: “File Upload Path” or something similar. Do you have it? What is it set to?
There should also be a preference for images, called: “Image directory” what is that one set to?
Offline
#7 2005-12-13 13:06:48
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
Re: first install - first problem...
My settings:
Advanced preferences:
File Upload Path: /var/www/html/files
the folder is exist:
[root@my root]# ls -la /var/www/html/files
итого 8
drwxrwxrwx 2 root root 4096 Дек 9 16:03 .
drwxr-xr-x 5 root root 4096 Дек 9 14:40 ..
Image directory: images
I’v tried to change “Image directory” to another – /var/www/html/images – but it’s was wrong – i’v get error message: “Warning: cannot write to image directory /var/www/html//var/www/html/images/. Please change file permissions to 777.” So, i returned path to “images”.
Something strange…
Offline
#8 2005-12-13 13:15:03
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
Re: first install - first problem...
Maybe something wrong with my linuxbox, so i will try install textpattern on another linux with php4.1.2, mysql 3.23.54a, and apache 1.3.23 (old, but for testing be ok). So, i will try…
Offline
#9 2005-12-13 13:58:29
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
Re: first install - first problem...
With other lunuxbox there is better now :)
The files had about uploaded – the error appeared:
Fatal error: Call to undefined function: mysql_real_escape_string() in /var/www/html/textpattern/textpattern/include/txp_file.php on line 421
I went to the FAQ and read:
These and similar errors immediately after an upgrade are usually caused by one of two things: 1) Old plugins that haven’t been updated to work with the current version of Textpattern 2) Not updating or uploading all of Textpattern’s files correctly. Make sure you upload all the files in all subdirectories.
First – is not my case, couse i am not using any plugins.
Second – thats interesting – should i make update to recently downloaded version “Textpattern 4.0.2 · 1 November 2005” ??? Does this version require update?
Offline
Re: first install - first problem...
If the function was a user-defined one, the contents of the FAQ item would apply. In this case the function (mysql_real_escape_string()) is a function provided by PHP. In your case it’s probably because your version of PHP is too old and does not meet the minimum requirements of Textpattern.
Offline
#11 2005-12-13 20:53:33
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: first install - first problem...
PHP version: 4.3.4
MySQL: 3.23.58
..which meets the txp requirements.
Alex
Offline
#12 2005-12-14 07:47:20
- Vilmer
- New Member
- Registered: 2005-12-09
- Posts: 8
Re: first install - first problem...
Ok, thanks for the help.
One more question, after the login by admin – textpattern runs update script by himself, but if i use textpattern offline (without inet) – how can i update it? Does the latest version 4.0.2 require update?
Offline
Pages: 1