Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-12-13 08:49:08

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,532
Website GitHub Twitter

Article encoding problem after server migration

Hi all

I am a little confused by that : here is the story, i migrated an old txp website (4.0.6) to a new server, then when viewing it i got encoding problem “t” for all non latin char é,è,ç,à,…, the website was set as utf8, when viewing artilce on phpmyadmin they look ok, trying to modify an article on txp backend seems the content has disappeared (there is a title but no body part!) hitting save make body part disappear on phpmyadmin, creating a new article with non latin caracters look ok on website but in the db they are messed (técéé).

I updated the txp to 4.5.7 but no luck still got the same probléme, i also tryed to restore the old backup but still the same problem.

The txp is on utf-8, db for both servers are utf8_general_ci.

I have no idea where to look to solve that!

below the diag :

bq..Version de Textpattern CMS: 4.5.7 (r5900)
Dernière mise à jour: 2017-12-13 08:28:55/2017-12-13 07:51:13
Document racine: /home/xxx/public_html
$path_to_site: /home/xxx/public_html
Chemin d’accès à Textpattern CMS: /home/xxx/public_html/textpattern
Format des URL: section_title
Chemin du répertoire temporaire: /home/xxx/public_html/textpattern/tmp
URL du site: xxxx.com
Version de PHP: 5.2.17
GD Graphics Library: bundled (2.0.34 compatible) formats supportés : GIF, JPG, PNG.
Serveur TZ: UTC
Date et heure du serveur: 2017-12-13 08:47:43
Mises à jour des heures d’été utilisées ?: 0
Ajuster automatiquement les heures été / hiver ?: 0
Fuseau horaire (GMT compensé en secondes): Africa/Algiers (3600)
MySQL: 10.1.24-MariaDB-cll-lve
Paramètres régionaux: fr_FR.UTF-8
Serveur: LiteSpeed
API PHP du serveur: litespeed
Entêtes RFC 2616:
Système d’exploitation du serveur: Linux 2.6.32-604.16.2.lve1.3.54.el6.x86_64
Plugins actifs: zem_contact_lang-4.0.3.6m, zem_contact_reborn-4.0.3.20, asy_wondertag-0.5, rss_auto_excerpt-0.5, chh_if_data-0.10, smd_parent-0.1, lam_browse_by-0.1, rss_admin_show_adv_opts-0.3, upm_insert_tab-0.2.2
Thème de l’interface d’administration: hive 4.5.7

Vérifications de pré-génération:
————————————
Une nouvelle version de Textpattern 4.6.2 est disponible en téléchargement.
Les URL « propres » ne sont vraiment supportées que par Apache, vous les utilisez à vos propres risques.
————————————

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

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

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

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

  1. SVG
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz

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

Offline

#2 2017-12-13 09:14:08

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,599
Website

Re: Article encoding problem after server migration

Could your problem be similar to the one in this thread. If so, skip to this post which solved the problem…


TXP Builders – finely-crafted code, design and txp

Offline

#3 2017-12-13 09:50:52

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,532
Website GitHub Twitter

Re: Article encoding problem after server migration

Good catch Jakob it was him the bastard, that solved the website rendering.

But in other hand the backend is messed with the é,è,… problem !!!

That’s not really bother me.

Thanks for help Jakob.

Offline

#4 2017-12-13 09:53:53

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,599
Website

Re: Article encoding problem after server migration

@Bloke: maybe this little fix is worth a point.fix update to 4.6 after all, as it has come up a few times?


TXP Builders – finely-crafted code, design and txp

Offline

#5 2017-12-13 10:03:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,273
Website GitHub

Re: Article encoding problem after server migration

jakob wrote #308283:

@Bloke: maybe this little fix is worth a point.fix update to 4.6 after all, as it has come up a few times?

Yeah… but… but we’re sooo close to getting 4.7.0-beta out the door!

Maybe we should release 4.6.3 anyway – for people that don’t want to jump to 4.7.0 (whaaaat?!) and try to use unsupported databases. Will definitely consider it. Although, MariaDB and other MySQL derivatives are technically unsupported in 4.6.x so… dunno.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB