Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-06 10:15:27

sbo
Member
Registered: 2006-06-06
Posts: 47

Problem with upgrade to TXP 4.0.5

hi,

since i upgraded my website (in french) to TXP 4.0.5 yesterday, i have lost the accents in the management section and all the messages generated by TXP (comments, etc.).
this is what i get as an instance :

‘Publi�, Masqu�, M�moriser les informations donn�es, etc.

as you can see, this looks terrible; all characters like ‘é à ù ç …’ don’t print anymore.

i do not manage to find out how to fix this issue; my config.php has :

$txpcfg['dbcharset'] = 'latin1';

my publish.php has :

//i18n: $textarray = load_lang('fr-fr');

both ‘English (Great Britain)’ and ‘Français’ are installed and are up to date; ‘Français’ is selected by default.

i looks like i am missing something.

thank you,

stephane.


Stéphane.

Offline

#2 2007-08-06 10:27:58

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

Re: Problem with upgrade to TXP 4.0.5

Please delete the other 3 duplicate topics with the same content (there’s a delete link at the right bottom side of the opening post).

To diagnose this, go to the admin -> diagnostics and post the high diagnostics here.

Offline

#3 2007-08-06 12:47:05

sbo
Member
Registered: 2006-06-06
Posts: 47

Re: Problem with upgrade to TXP 4.0.5

hi ruud,

Sorry for the 3 duplicate topics; but i can’t see the ‘delete’ button at the right bottom side of the opening post.

I will try again; in the meantime, this is my high diagnostics :
(i have noticed that my ‘index.php’ is still the one by default in the downloaded ‘zip’ archive; on my other TXP website, i have a pretty much bigger ‘index.php’ file with language specifications.

Coult it be the problem ?

Version de Textpattern: 4.0.5 (r2466)
Derniere mise a jour: 2007-08-05 18:20:58/2007-08-06 09:52:04
Document racine: /home.3/m/u/m/…
$path_to_site: /home.12/m/u/m/…
Chemin d’acces a Textpattern: /home.12/m/u/m/…
Format des URL: section_id_title
Repertoire temporaire: /home.3/m/u/m/…
URL du site: …
Version de PHP: 4.4.7
Register globals PHP: 1
Bibliotheque GD: bundled (2.0.28 compatible) formats supportes : GIF, JPG, PNG.
Date & heure du serveur: 2007-08-06 14:13:01
MySQL: 5.0.26-log
Locale: fr_FR.UTF-8
Serveur: Apache
API PHP du serveur: cgi
Entetes RFC 2616:
Systeme d’exploitation serveur: Linux 2.6.18.1-grsec-mutu-grs-ipv4-32
Plugins actifs: bas_lets_see_yours-0.2, zem_contact_reborn-4.0.3.17m, zem_contact_lang-4.0.3.03.Bm, sdr_guestbook-4.0 sed, sed_comment_pack-0.5, ajw_comments_feed-0.6, zem_popup_cat-0.1, asy_captcha-1.0

contenu du fichier .htaccess:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

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_client: latin1
character_set_connection: latin1
character_set_database: latin1
character_set_filesystem: binary
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
18 Tables: OK

Extensions PHP: zip, xslt, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, standard/4.4.7, session, pspell, posix, pdf, overload, mysql, ming, mhash, mcrypt, mbstring, imap, gmp, gettext, gd, ftp, filepro, exif/1.4 $Id: exif.c,v 1.118.2.37.2.7 2007/01/09 11:38:04 tony2001 Exp $, domxml/20020815, dbase, dba, curl, ctype, calendar, bcmath, zlib/1.1, pcre, openssl

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

/include/txp_category.php: r2243 (3706fea923cd77f7053f7803de169df4)
/include/txp_plugin.php: r1917 (c63f72f33986c08367672fc9fe7b42dd)
/include/txp_auth.php: r2356 (33255ec1ea1a825163c78272496d8783)
/include/txp_form.php: r1913 (ecea3fecf9d7d1f8088cda67f097eceb)
/include/txp_section.php: r1891 (1f0121b3e2969d94bc8a7fb98bfdfbd5)
/include/txp_tag.php: r2260 (1bd67bdb9dcfb72e34ea967e39406216)
/include/txp_list.php: r2450 (997a3b1bec7115bf49b76f62b28da146)
/include/txp_page.php: r2099 (56bde34b6c7bcb9123ac91e73065e894)
/include/txp_discuss.php: r2451 (91e0b29ef39a9471ae5c78d0b1bba086)
/include/txp_prefs.php: r2405 (a4b76476930b2376199f23fbfd5f1ac9)
/include/txp_log.php: r2439 (16730c34e2a437dd88b8f5cc7eff8218)
/include/txp_preview.php: r1238 (696728f35f3557b648c011bb4d6496c3)
/include/txp_image.php: r2439 (9fac6ed0d9d4c3d8196492051f38dc9a)
/include/txp_article.php: r2453 (bdac8fcac5df2f93f10afa7e50c3fb6f)
/include/txp_css.php: r2403 (4e8c52bb1cf5bfe2e2f0640892f9b92e)
/include/txp_admin.php: r2403 (f8700a3d453ece08e7f137b47c967eda)
/include/txp_link.php: r2463 (0a0171bf606296106332d3fdcb83a678)
/include/txp_diag.php: r2361 (dccf3269049dd25e59afdd7ad8d235cd)
/include/txp_file.php: r2403 (e62abd5fcadabe629322ed17135d89eb)
/include/txp_import.php: r1238 (70a6207c0f3604ecfc4b20369986c4d7)
/lib/admin_config.php: r1747 (a2eb09f94d7902a6e95750fc4abcea17)
/lib/txplib_misc.php: r2464 (615afd44a10311f1c0b7852d9bc15d24)
/lib/taglib.php: r1535 (9b519f9dc88791e5ee8eacc029dd6975)
/lib/txplib_head.php: r2404 (2e067b25997cf67cddbdd365570e69d5)
/lib/classTextile.php: r2462 (a031e2ea894e339711c601f230c5ee71)
/lib/txplib_html.php: r2403 (97e173da3058b438513df67fd7d1ceca)
/lib/txplib_db.php: r2406 (5ed67642f805639b54e381fb22efd208)
/lib/IXRClass.php: r765 (137b91497628f0058a2fca9eba5c3b7f)
/lib/txplib_forms.php: r2403 (438a734b52acef40b36d8a3ba23987e8)
/lib/class.thumb.php: r2329 (b2a2fda54371dbd6c40ba553941f090e)
/lib/constants.php: r2361 (ab6d51668fab1e3c98e7d520b1a59f0f)
/lib/txplib_update.php: r1239 (10f28a986d23187b436369dc29ab552f)
/lib/txplib_wrapper.php: r2286 (419125ec74a17a70bf1e86ebfcd45253)
/publish/taghandlers.php: r2444 (cc9de8f2018b01398a2ba542c5f5bdc6)
/publish/atom.php: r2402 (46c4402717f695fde0d49d806adfa4c4)
/publish/log.php: r1637 (5254d0f3942086bc55723923307a51db)
/publish/comment.php: r2460 (2d1ae1dec0784f044e7005fa5ed50930)
/publish/search.php: r1748 (8c86ebcb5be08e214d81ca15a32164ca)
/publish/rss.php: r2393 (09aac29bf22ffa71c1e118e851cff3c3)
/publish.php: r2436 (7087864f1e7c6efe096d3b8e07c350b1)
/index.php: r2466 (30ecf35de5c1edc6ef68e780c8c79daa)
/css.php: r944 (8beba8f83a091068723435cdcdc02f2f)


Stéphane.

Offline

#4 2007-08-06 13:14:09

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

Re: Problem with upgrade to TXP 4.0.5

Was it just TXP that was upgraded or also MySQL?

Offline

#5 2007-08-06 13:39:00

sbo
Member
Registered: 2006-06-06
Posts: 47

Re: Problem with upgrade to TXP 4.0.5

I have not upgraded MySQL.

If you want, you can have a look at http://mumuksu.com.
Click on ‘carnet de visites’ (guestbook); you will see how it comes out.

In fact, articles print well since i changed ‘uft8’ into ‘latin1’ in ‘config.php’; but since then, the admin part of TXP and all messages generated by modules,… comes out without the accents.

Stephane.


Stéphane.

Offline

#6 2007-08-07 06:34:15

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

Re: Problem with upgrade to TXP 4.0.5

i changed ‘uft8’ into ‘latin1’ in ‘config.php’;

That’s the problem: your languages were loaded into the database using one charset, then the charset to use was changed.

This can be resolved fairly easily. Run the following query:

TRUNCATE txp_lang;

Then re-install all the languages you need in your Language preferences.

You can run the query using something like phpMyAdmin or rss_admin_db_manager.

Offline

#7 2007-08-07 07:51:34

sbo
Member
Registered: 2006-06-06
Posts: 47

Re: Problem with upgrade to TXP 4.0.5

Hi Mary,

I run the query with phpMyAdmin as you suggested and re-installed the languages this morning, and it solved the problem.

Thank you for your great help.

Stéphane.


Stéphane.

Offline

Board footer

Powered by FluxBB