Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-15 20:31:58

joel
Member
Registered: 2004-11-26
Posts: 162

MySql trouble when upgrading from 4.0.3 to 4.0.4

Hi,

I ran into some trouble when upgrading one of my sites from 4.0.3 to 4.0.4. After upgrading the website AND the admin-area were full of � – signs instead of åäö. I checked the database and it is an older version of mySql – 3.23.49. Can that have anything to do with this?

Thanks in advance! :)

Offline

#2 2007-04-15 21:43:41

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

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

Please post your full TXP diagnostics (admin tab -> diagnostics -> select ‘full’ (or something like that))

Offline

#3 2007-04-15 22:09:18

joel
Member
Registered: 2004-11-26
Posts: 162

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

here it is…

Textpattern-version: 4.0.4 (r1956)
Senast uppdaterad: 2007-04-15 14:29:24/1970-01-01 00:00:00
Dokument-rot: /home/kunder/9166/url.se
$path_to_site: /home/kunder/9166/url.se
Textpattern-sökväg: /home/kunder/9166/url.se/textpattern
Permanentlänk-läge: section_title
open_basedir: /tmp:/home/kunder/9166/url.se
Tillfällig mapp: /tmp
Sajt-URL: url.se
PHP-version: 4.3.10-16
Serverns klocka: 2007-04-16 00:13:07
MySQL: 5.0.19-nt
Locale: sv_SE
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16
Apache-version: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16
Server-API för PHP: apache
rfc2616_headers:
Serverns operativsystem: Linux 2.4.27-2-386
active_plugins: bas_img_selector-0.7, mdn_if_section-2.1, rdt_dynamenus-0.9, zem_contact_reborn-4.0.3.17, zem_contact_lang-4.0.3.03m, pap_contact_cleaner-0.1, chh_if_data-0.10, rss_auto_excerpt-0.1

Förkontroll:
————————————
Tillfällig mapp är inte skrivbar: /tmp
————————————

Innehåll i .htaccess-filen:
————————————
#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_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: C:\mysql\share\charsets\
19 Tables: txp_mtp_section is latin1

PHP-tillägg: zip, yp, xmlrpc/0.51, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, sysvmsg, standard/4.3.10-16, sockets, shmop, session, posix, pcre, overload, mime_magic/0.1, mbstring, iconv, gettext, ftp, filepro, exif/1.4 $Id: exif.c,v 1.118.2.35 2005/03/05 18:30:47 rasmus Exp $, dbx, dba, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache, gd, mysql, ionCube Loader

pretext_data: array ( ‘id’ => ‘’, ‘s’ => ‘’, ‘c’ => ‘’, ‘q’ => ‘’, ‘pg’ => ‘’, ‘p’ => ‘’, ‘month’ => ‘’, ‘author’ => ‘’, ‘request_uri’ => ‘/04a0dc7de41b0c2ccd875de0b8ff94b6/?txpcleantest=1’, ‘qs’ => ‘txpcleantest=1’, ‘subpath’ => ‘\\/’, ‘req’ => ‘/04a0dc7de41b0c2ccd875de0b8ff94b6/?txpcleantest=1’,
)

/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 (1563fcbaffe25b3272b0d85ff9d5571d)
/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)

Offline

#4 2007-04-15 22:29:10

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

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

Your diagnostics show MySQL 5.x, not 3.23.x. Was the MySQL version upgraded as well recently?

Offline

#5 2007-04-16 04:37:42

joel
Member
Registered: 2004-11-26
Posts: 162

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

I was wrong on that part…
I have managed to fix the admin part by re-installing the language-file. The site is still the problem though.

Offline

#6 2007-04-16 06:34:21

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

If you are hosted on TXD you may have to adjust the php.ini setting, as they are UTF-8 by default. Changing it to ISO-whatever-it-is, might work for you.

Offline

#7 2007-04-16 10:04:17

joel
Member
Registered: 2004-11-26
Posts: 162

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

no I’m not hosted at TDX unfortunately. The biggest question is why this happends all the sudden? I have updated/installed several 4.0.4 systems at this host without a hassle before.

The sql-file is UTF-8
config.php is also set at UTF-8
My meta is set to <meta http-equiv="content-type" content="text/html; charset=Utf-8" />

Are there any advantages for me to convert the data to Latin1? Or iso-9959-1?

What to do?

Thanks! :)

Offline

#8 2007-04-16 11:05:06

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

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

Your problems are not directly related to the update. It’s more likely that something else you did at the same timeframe is responsible.

For example a dump/restore can result in messed up characters, if the defaults are wrong, or if the wrong options have been selected (this goes for phpmyadmin as well as command line tools).

Offline

#9 2007-04-16 12:08:23

joel
Member
Registered: 2004-11-26
Posts: 162

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

Everything works well now (utf-8) except for a weird thing in Safari. When I klick on a menu item (section), it looks good. When I refresh, all the junk charachters are there…

Anyone heard of this before?

Offline

#10 2007-04-16 18:16:02

joel
Member
Registered: 2004-11-26
Posts: 162

Re: MySql trouble when upgrading from 4.0.3 to 4.0.4

Can this have something to do with the problem?

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: C:\mysql\share\charsets\
19 Tables: txp_mtp_section is latin1

Last edited by joel (2007-04-16 18:16:19)

Offline

Board footer

Powered by FluxBB