Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1771 2011-04-25 13:59:20

Depot 1
Member
From: Copenhagen
Registered: 2011-01-03
Posts: 24
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi everybody,
I’ve just installed the MLP plugin for a site with two languages – danish and english. Everything works backend (it seems), but when viewing the site, I get a 'The requested URL /da/ was not found on this server.'
The URLs work fine without the /da/.
For instance: http://depot1-testserver.dk/index.php?id=5
(instead of: http://depot1-testserver.dk/da/index.php?id=5)

As it shows, I’m using messy URLs, but according to previous posts in this thread, that should’nt be a problem.

I’m using:
gbp_admin_library version 0.4.1
I10n version 4.3.0.12
zem_contact_lang-mlp version 4.0.3.6-ML
Textpattern version 4.4.0

In case it helps, here are my diagnostics:

Textpattern version: 4.4.0 (r3514)
Last Update: 2011-04-25 11:27:17/2011-04-25 11:22:20
Document root: /customers/1/b/f/depot1-testserver.dk/httpd.www
$path_to_site: /customers/1/b/f/depot1-testserver.dk/httpd.www
Textpattern path: /customers/1/b/f/depot1-testserver.dk/httpd.www/textpattern
Permanent link mode: messy
open_basedir: /customers/1/b/f/depot1-testserver.dk//httpd.www:/customers/1/b/f/depot1-testserver.dk//httpd.private:/customers/1/b/f/depot1-testserver.dk//tmp:/customers/depot1-testserver.dk:/var/www/diagnostics:/usr/share/php
upload_tmp_dir: /customers/1/b/f/depot1-testserver.dk//tmp
Temporary directory path: /customers/1/b/f/depot1-testserver.dk/httpd.www/textpattern/tmp
Site URL: depot1-testserver.dk
PHP version: 5.3.5
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server TZ: UTC
Server Local Time: 2011-04-26 15:03:55
DST enabled?: 0
Automatically adjust DST setting?: 0
Time Zone:  (+0)
MySQL: 5.0.51a-24+lenny5-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.26-2-vserver-amd64
Active plugins: hak_article_image-0.6.3, zem_contact_lang-mlp-4.0.3.6-ML, l10n-4.3.0.12, gbp_admin_library-0.4.1, msd_minibar-0.6m
Admin-side theme: classic 4.4.0

Pre-flight check: 
------------------------
Some Textpattern files have been modified: 
	/customers/1/b/f/depot1-testserver.dk/httpd.www/textpattern/lib/txplib_db.php
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: disk_total_space, diskfreespace, proc_nice
------------------------

I’m probably missing something quite simple, but can’t figure out what it is …
Has anyone encountered this problem and found a solution?
Thanks!

Last edited by Depot 1 (2011-04-26 15:15:02)

Offline

#1772 2011-04-27 07:07:23

paxrex33
Member
Registered: 2007-10-25
Posts: 15

Re: MLP - The Multi-Lingual Publishing Pack

Hi. I’m using TXT 4.2.0, PHP 5.2.14, MySQL 5.0.45 and MLP 0.9.13-gp.
I have a site with two languages, Serbian (sp-rs) and English (en-gb).
What I would like is to show homepage in Serbian by default for the first time visitors until the English translation is not done.
I am using Google Analytics and I see lots of visits to English home page but it is empty.
How can I redirect those users to homepage in Serbian?

Offline

#1773 2011-04-30 10:50:11

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: MLP - The Multi-Lingual Publishing Pack

Hello,
I have an issue with the “Last-Modified:” header and MLP 0.9.13-gp. The header gives every time the actual system time back, so it seems as if the website is every time updated, but it is not :-).
Is this a “normal” behaviour of MLP sites?
Btw. the demosite http://mlp-demo.netcarving.com/ has the same “problem” ….

Offline

#1774 2011-05-12 08:48:57

Depot 1
Member
From: Copenhagen
Registered: 2011-01-03
Posts: 24
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi again,
I am still having problem with the plugin – as mentioned in post #1771 above.
Can someone who have the plugin up and running please tell me, if they have done anything different, than what I did:

1. I installed the plugin according to the Readme file.

2. I changed the UNIX Permissions for the css, lib and images files to 644.

3. I ran the Wizard, and made the translations in the Articles tab.

4. In my pages this code has been inserted into the body tag: <body dir="<txp:l10n_get_lang_dir />" >

5. I have used <txp:l10n_lang_list wraptag="li" surpress_current="1" /> in my navigation in order to change language (danish and english).

That’s it.
The browser can’t find any files in either /da or /en directories.
Am I missing something?

I am very close to deadline, so any help is highly appreciated!
Thanks!

Offline

#1775 2011-05-12 09:41:12

lonelytraveller
Member
From: Firenze, Italy
Registered: 2008-04-04
Posts: 45

Re: MLP - The Multi-Lingual Publishing Pack

Depot 1 wrote:

The browser can’t find any files in either /da or /en directories.
Am I missing something?

Are you sure that you don’t have any /da or /en directories on your server? A couple of months ago I installed TXP + MLP on an existing website that already had a sort of multilingual support, and forgot to delete existing /it and /en language directories used by the previous CMS, so when I typed a url like mysite.com/en/index.php the browser looked for the index.php file in the en/ dir and when finding none the result was a 404 error.
Also, does the site works without MLP installed? In the past I had to change the .htaccess file to make TXP work on some hosts.

Offline

#1776 2011-05-12 09:47:40

Depot 1
Member
From: Copenhagen
Registered: 2011-01-03
Posts: 24
Website

Re: MLP - The Multi-Lingual Publishing Pack

The site works fine without the MLP plugin. With the plugin activated the page shows without the /da in the URL. So it seems, that the browser looks for the pages in a /da directory, but the directory is’nt there.

I can’t find the /da or /en directories on the server.

Last edited by Depot 1 (2011-05-12 09:48:40)

Offline

#1777 2011-05-12 17:16:19

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: MLP - The Multi-Lingual Publishing Pack

Quick question: I have a site that uses only English. I want to add strings to my templates that can be edited in Textpattern. Having used MLP on another (multi-lingual) site, I love the snippet editor. Is it viable to install and use MLP just for the snippet editor, without using the language URLs? If not, is there another plugin I can use just for language snippets?

Offline

#1778 2011-05-16 16:12:35

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi,

Trying to convert a site to MLP and one article is showing in the MLP tab under Content but not any of the one’s I have added. Ran the MLP Wizard several times to no avail. I did copy the lib files again to my textpattern to ensure they are the correct ones. Using TXP 4.3.0, any clues?

Offline

#1779 2011-05-16 17:14:38

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

Hi Exiladler, you can try to check the database. I recently found that a user of one of my MLP sites somehow(?!) managed to end up with translated entries in the wrong language tables. Moving these (or delete and recreate) can help.
All articles should be in the textpattern table and in the respective language tables (l10n_txp_xx_xx), and there should be a reference to all translations in l10n_articles. Look especially in the language tables for incorrect values in the l10n_lang column.

Offline

#1780 2011-05-16 17:20:35

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: MLP - The Multi-Lingual Publishing Pack

Els,

Thanks for you quick response. in textpattern all entries are available, BUT the ones that do not show up have the field l10n_lang empty and not “en-gb”

In l10n_txp_en_gb there are 2 entries, agaain the second on with an empty l10n_lang field.

Any clues as to why this happened? Shall I manually add the code to the textpattern table?

Offline

#1781 2011-05-16 17:25:17

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

Yes, you can manually add the values, it will probably solve your problem for now. I have no idea though why or how this happened. Maybe you can do some testing by adding a couple of new articles, and see if you can reproduce it. Keep in mind that your first article (the one that should be cloned into the translations) always needs to be in the primary language! And – I’m not quite sure if this is compulsory, but I always do it like this – create your clones only from that primary article.

(edit: typo)

Last edited by els (2011-05-16 17:39:44)

Offline

#1782 2011-05-16 17:29:13

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: MLP - The Multi-Lingual Publishing Pack

If you have SQL access (through mysql, say, or phpMyAdmin), you could do something like this:

SELECT * in textpattern
where l10n_lang = '';

If that shows you all the rows that need to set to ‘en-gb’, and ONLY those rows, then you could do something like this to add the required information:

UPDATE textpattern
SET l10n_lang = 'en-gb'
WHERE l10n_lang = '';

WARNING: Always back up your database before running untested queries.

Edit: Fix textile.

Last edited by johnstephens (2011-05-16 17:30:57)

Offline

#1783 2011-05-16 17:49:12

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: MLP - The Multi-Lingual Publishing Pack

Els + johnstevens,

Thanks, one small thing, in the sql, I needed to change in to from as my version of Mysql did not like the ‘in’ part. Now they do show up in the MLP table.

Then IO went to write and created another article, this again did NOT show up, so somehow it does not fill the field l10n_lang. I’d like to find out why, but in the meantime at least I have a workaround.

So if you could suggest any further steps I can do to investigate, I’m all ears.

In the meantime, THANKS a lot for the quick help to you both
Peter

Offline

#1784 2011-05-16 18:32:11

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: MLP - The Multi-Lingual Publishing Pack

Exiladler wrote:

Thanks, one small thing, in the sql, I needed to change in to from as my version of Mysql did not like the ‘in’ part. Now they do show up in the MLP table.

Sorry, ‘in’ was a typo.

Offline

#1785 2011-05-17 10:00:31

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: MLP - The Multi-Lingual Publishing Pack

It get’s stranger and stranger, I am using this in a form for the manu to all languages

<a href=“http://www.thumbguard.eu/it/” target=”_blank”><txp:image name=“it-small.gif” /> </a>
<a href=“http://www.thumbguard.eu/nl/” target=”_blank”><txp:image name=“nl-small.gif” /> </a>
<a href=“http://www.thumbguard.eu/pl/” target=”_blank”><txp:image name=“pl-small.gif” /> </a>
<a href=“http://www.thumbguard.eu/tu/” target=”_blank”><txp:image name=“tu-small.gif” /> </a>
<a href=“http://www.thumbguard.eu/sf/” target=”_blank”><txp:image name=“sf-small.gif” /> </a>

all other languages show as www.thunbguard.eu/it/ etc BUT for the last 2 it shows up as www.thunbguard.eu/en/tu and sf. I checked the respective languages are installed and they are in the list under MLP preferences. I am puzzled as to where things are going wrong.

Any suggestions?

Offline

Board footer

Powered by FluxBB