Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-01 20:12:54

Chris S
New Member
Registered: 2004-11-10
Posts: 9

4.0.2 upgrade problem

Upgraded from RC3 by replacing all files except config.php as instructed (and as I’ve always done in the past, with no problems). Static files on the site are accessible it’s only dynamic pages served via TP that throw errors.

site: http://mallbirmingham.com
MySQL: 4.0.18
PHP: 4.3.11

When trying to login to admin I get:

Fatal error: Call to undefined function: parse() in /home/mallbirm/public_html/textpattern/lib/txplib_misc.php on line 1295

When trying to visit the front end I get this:

Warning: extract(): First argument should be an array in /home/mallbirm/public_html/textpattern/publish.php on line 55

Unknown section

Offline

#2 2005-11-01 20:15:13

Chris S
New Member
Registered: 2004-11-10
Posts: 9

Re: 4.0.2 upgrade problem

Sorry, that was RC1

Offline

#3 2005-11-01 20:30:05

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

Re: 4.0.2 upgrade problem

Ok, the actual error message you should be getting (or would be getting, if the outputting of the error wasn’t screwed up) is:

DB-Connect was succesful, but the textpattern-table was not found.

Have you changed any of the values in config.php? Is config.php still in the right place? Have you changed the prefix? Please provide the following:
  1. full (server-)path to main web-directory
  2. full (server-)path to textpattern-directory
  3. full (server-)path to config.php
  4. the line with table-prefix in your config.php (if any)
  5. please check in phpmyadmin, whether a table with “textpattern” in its name exist and give the precise name of the table

Offline

#4 2005-11-01 20:38:53

Chris S
New Member
Registered: 2004-11-10
Posts: 9

Re: 4.0.2 upgrade problem

config.php has not been changed, and is still in the right place, with the same prefix.

1. /public_html/ is the root web directory (third-party hosted site)
2. /public_html/textpattern/
3. /public_html/textpattern/config.php
4. $txpcfg[‘table_prefix’] = ‘ ‘;
5. the db table is called “textpattern”

Offline

#5 2005-11-01 20:47:32

Chris S
New Member
Registered: 2004-11-10
Posts: 9

Re: 4.0.2 upgrade problem

Ok, I found the problem.

The empty quotes in the table_prefix config line contained an empty space. When I deleted the empty space and reloaded, it all shined on.

Thanks, Sencer…an easy fix but I’d have never thought to look at that if you hadn’t run it down for me.

Offline

#6 2005-11-01 20:47:49

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

Re: 4.0.2 upgrade problem

All of that is looking good. Are you using phpmyadmin with the same credentials (user & pass) that you have in config.php? If yes, please try the following query in phpmyadmin:

describe textpattern;

edit: Aaaah, great. Good to know it’s working now. :)

Last edited by Sencer (2005-11-01 20:48:57)

Offline

#7 2005-11-01 20:52:54

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

Re: 4.0.2 upgrade problem

Since you are coming from RC1, remember to delete the old place-holder files for each section you have. All of that is handled by textpattern now. Also check the diagnostics page in the admin-section to see any further messages.

Offline

#8 2005-11-01 21:12:59

Chris S
New Member
Registered: 2004-11-10
Posts: 9

Re: 4.0.2 upgrade problem

Done it, did it, done did it…thanks.

I’ve configured TP 4 for ten client sites and all of them upgraded fine…just this one gave me trouble…don’t know how that space got in there.

Offline

#9 2005-11-09 13:06:58

duncan_feldane
Member
Registered: 2005-10-07
Posts: 14

Re: 4.0.2 upgrade problem

I’m upgrading from 4.0.1 to 4.0.2, and I’m having two (related?) challenges:

  • I get the register_global diagnostic, but config.php is still there, and looks correct, and the prefix does not have a space in it.
  • Also, the TxP page Content > Write shows “Textile Help” “Advanced Options” and a box for the article heading. That’s it.
    When I click on “Advanced Options”, I get this error:
    Fatal error: Call to undefined function: pref_text() in /home/.andalusia/montgomerystudio/michaelmontgomery.net/textpattern/include/txp_article.php on line 358

The actual site seems to be working fine (except I can’t add a new article): http://michaelmontgomery.net/

Offline

#10 2005-11-09 13:52:25

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

Re: 4.0.2 upgrade problem

Hi duncan,

register_globals diagnostic has nothing to do with this thread, and nothing to do with config.php. You can read further information by following the “ ‘?’ on the same line of the diagnostic.

The second error seems to indicate that you didn’t successfully upload all new files. Can you please post your high-level diagnostic, if re-uploading all files doesn’t help.

Offline

#11 2005-11-10 03:39:28

duncan_feldane
Member
Registered: 2005-10-07
Posts: 14

Re: 4.0.2 upgrade problem

Thanks for the reply.
I’ve now re-uploaded all the TxP files a few times, including once from re-downloaded source files.

Here’s the high-level diagnostic:

Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-09 04:34:12/2005-11-09 04:30:31
Document root: /home/montgomerystudio/michaelmontgomery.net (/home/.andalusia/montgomerystudio/michaelmontgomery.net)
$path_to_site: /home/.andalusia/montgomerystudio/michaelmontgomery.net
Textpattern path: /home/montgomerystudio/michaelmontgomery.net/textpattern
Permanent link mode: section_id_title
Temp folder: /home/.andalusia/montgomerystudio/michaelmontgomery.net/textpattern/tmp
Site URL: michaelmontgomery.net
PHP version: 4.3.10
Register globals: 1
server_time: 2005-11-09 19:38:07
MySQL: 4.1.14-Debian_3-log
Locale: en_US.UTF-8
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e

Pre-flight check:
————————————
warn_register_globals_or_update
————————————

.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/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /data/mysql/robbie/share/mysql/charsets/
18 Tables: OK

PHP extensions: xslt, xml, tokenizer/0.1, standard/4.3.10, session, pspell, posix, pcre, overload, mysql, mcrypt, mbstring, gettext, gd, ftp, domxml/20020815, curl, ctype, calendar, zlib/1.1, openssl, Zend Optimizer
/include/txp_category.php: r628 (e92f8775125b69b1170e9026e7ab0d26)
/include/txp_plugin.php: r758 (3381ca79884afdf8d625d68ce62760eb)
/include/txp_auth.php: r716 (3a2a9e9b3a3d94527268434e9eb9e278)
/include/txp_form.php: r881 (f98d88fb56ee4c39e32329c9ad8161ef)
/include/txp_section.php: r685 (5cae4258cd1065c36b787eb22605c0a3)
/include/txp_tag.php: r650 (c4d9210382c5c2779f5454770cf2ac17)
/include/txp_list.php: r856 (1a3e54c0a007cee4fc5d129ad5ebe199)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r765 (df266d038fd2bfa1c6f18b199de9e94a)
/include/txp_log.php: r628 (957a21ed9e3a7a088f9c25c927ff8e44)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r679 (c25abb0c3477e0279836e0dc202dea47)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r628 (59d9f0d473ed3beab571674b1cf6b13e)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r628 (20fda9968512d94d88d729588b99bce4)
/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: r763 (54ace98025186be13bdbbfd764a54b4a)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r628 (1bce1e4658c002d69990b939d7f76628)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r880 (387edf51b5d7489d0bbd82f6dd53b34d)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r880 (bb1c43e76e4a978186c58fbd21157c77)
/publish.php: r1073 (700374ed1a9cb57b5afc355ac977daad)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r795 (99e8fce7628f8f89ee0c89c88aceaa01)

Offline

#12 2005-11-10 07:47:19

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

Re: 4.0.2 upgrade problem

You have not updated all files.

You:
/lib/txplib_html.php: r763 (54ace98025186be13bdbbfd764a54b4a)
/lib/txplib_forms.php: r628 (1bce1e4658c002d69990b939d7f76628)

4.0.2:
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)

and there are probably more, I haven’t checked all of them.

Offline

Board footer

Powered by FluxBB