Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1933 2012-02-10 15:04:58

elwins
Member
From: Latvia
Registered: 2011-08-29
Posts: 80

Re: MLP - The Multi-Lingual Publishing Pack

Ar spraudņa ielādi ir radušās problēmas: l10n -> Warning: include_once(/var/www/clients/client10/web80/web/w/textpattern/lib/l10n_base.php) [function.include-once]: failed to open stream: No such file or directory on line 326
textpattern/lib/txplib_misc.php(653) : eval()'d code:326 include_once()
textpattern/lib/txplib_misc.php:653 eval()
textpattern/index.php:121 load_plugins()
Ar spraudņa ielādi ir radušās problēmas: l10n -> Warning: include_once() [function.include]: Failed opening '/var/www/clients/client10/web80/web/w/textpattern/lib/l10n_base.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') on line 326
textpattern/lib/txplib_misc.php(653) : eval()'d code:326 include_once()
textpattern/lib/txplib_misc.php:653 eval()
textpattern/index.php:121 load_plugins()
Ar spraudņa ielādi ir radušās problēmas: l10n -> Warning: include_once(/var/www/clients/client10/web80/web/w/textpattern/lib/l10n_admin_classes.php) [function.include-once]: failed to open stream: No such file or directory on line 358
textpattern/lib/txplib_misc.php(653) : eval()'d code:358 include_once()
textpattern/lib/txplib_misc.php:653 eval()
textpattern/index.php:121 load_plugins()
Ar spraudņa ielādi ir radušās problēmas: l10n -> Warning: include_once() [function.include]: Failed opening '/var/www/clients/client10/web80/web/w/textpattern/lib/l10n_admin_classes.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') on line 358
textpattern/lib/txplib_misc.php(653) : eval()'d code:358 include_once()
textpattern/lib/txplib_misc.php:653 eval()
textpattern/index.php:121 load_plugins()

Fatal error: Class ‘MLPPlugin’ not found in /var/www/clients/client10/web80/web/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 359

——————-
I have TXP 4.4.1
mlp-0.9.11.zip

What I did wrong? :(

Last edited by elwins (2012-02-10 16:07:08)

Offline

#1934 2012-02-10 17:03:35

slabanosa
Member
From: Silva Carbonaria
Registered: 2004-06-01
Posts: 57

Re: MLP - The Multi-Lingual Publishing Pack

Elvis, have you installed MLP in a subdirectory or a subdomain ?

Offline

#1935 2012-02-10 18:05:58

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

Re: MLP - The Multi-Lingual Publishing Pack

Elvis, did you copy all the files in the package to your server? Unfortunately txpforge.org is down, so I can’t point you to the installation instructions, but here are the relevant parts in the readme.txt file:

There are a set of three plugins and various other files that comprise the pack. 
Here's the file tree...

MLP
 |-- Licence (GNU GPL licence text)
 |-- README.txt (this file)
 |
 |-- (TxP404 only. Don't use this.)
 |        |
 |        |-- textpattern
 |                    |-- publish.php
 |
 |-- example pages (example textpattern pages using l10n tags)
 |        |
 |        |-- default.txt
 |        |-- archive.txt
 |        |-- error_default.txt
 |
 |-- plugins (you will need to install these plugins)
 |        |
 |        |-- l10n.txt (the main l10n plugin)
 |        |-- gbp_admin_library.txt (Graeme's admin lib)
 |        |-- zem_contact_lang-mlp.txt (l10n compatible strings lib)
 |        |
 |        |-- sources (for GNU GPL completeness)
 |                |-- l10n.php (source code for the l10n.txt file)
 |                |-- zem_contact_lang_mlp.php (source code for the zem_contact_lang_mlp.txt file)
 | 
 |-- textpattern (you will need to copy these files into your txp installation)
             | 
             |-- l10n.css (the MLP Pack's css file) --> copy to /textpattern/
             |
             |-- txp_img (l10n images in here) --> copy to /textpattern/txp_img/
             |       |
             |       |-- l10n_clone.png
             |       |-- l10n_delete.png
             |   
             |-- lib (files used by the l10n pluign) --> copy to /textpattern/lib/
                  |
                  |-- l10n_langs.php (ISO codes and names)
                  |-- txplib_db.php (modified db layer supporting MLP) 
                  |-- l10n_base.php (the basic public+admin file)
                  |-- l10n_admin.php (extra admin routines)
                  |-- l10n_admin_classes.php (classes used only admin side)
                  |-- l10n_default_strings.php (Declares which language file to use by default)
                  |-- l10n_en-gb_strings.php (English (GB) strings for MLP Pack)
                  |-- l10n_el-gr_strings.php (Greek strings for MLP Pack)


GETTING IT INSTALLED AND CONFIGURED.
===================================


PRE-INSTALL
-----------

1) Install all the TxP languages you wish your site to serve. You can add more
later if you wish but the plugin's setup wizard will use this initial list as 
part of it's setup routine to populate the l10n preferences.

To setup languages in TxP go to admin > preferences and then hit the 
'manage languages' button to enter the languages page.

If you want a site in English, French and Japanese then make sure you install
those languages now then switch to the language that you wish to consider the
default language of the site.


INSTALL
-------

1) (MANDATORY) Open the 'textpattern' folder and copy the entire contents 
to your textpattern installation.

You will need to overwrite the existing file txplib_db.php when you do so.

NB: If you update your textpattern installation at a later date you will 
overwrite the txplib_db.php file with the new one in the textpattern update.

If you do so, the MLP Pack will no longer work until you restore an MLP 
version of the txplib_db.php file.

2) (MANDATORY) Install and activate the three files from the /plugin(s) 
directory you will need to install and activate the new gbp_admin_library before
you activate the l10n plugin.

Yes, you *must* overwrite the old v0.1 gbp_admin_library supplied by 
Graeme for the original gbp_l10n plugin with at least version 0.4 of the library
as supplied by this pack. 


POST INSTALL
------------

1) (MANDATORY) Run the MLP setup wizard. Once you have completed the above
steps, go to the top level 'contents' tab and you will see a new subtab called
'MLP' clicking on that will bring up the setup wizard.

Please review the steps that the MLP setup will take -- they are quite 
invasive -- as it prepares your TxP installation for MLP use.

When you are ready simply click the 'Next' button at the bottom of the wizard
page and l10n will start analysing your existing articles and the currently 
installed list of languages.

A rerun of the setup wizard will use the previous language settings rather than 
the list of languages currently installed on the admin side.

Last edited by els (2012-02-10 18:06:29)

Offline

#1936 2012-02-10 21:49:10

elwins
Member
From: Latvia
Registered: 2011-08-29
Posts: 80

Re: MLP - The Multi-Lingual Publishing Pack

I had copy all files, MLP isnt on subdomain or subdirectory, on normal domain www.domain.lv
Then I take plugin code and installed it, when I turn ON MLP plugin, then in admin panel are theese errors and admin panel in unusable.. :(
Maybe there is some DB update or MLP plugin Setup, etc,

Last edited by elwins (2012-02-10 21:53:00)

Offline

#1937 2012-02-10 23:00:55

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

Re: MLP - The Multi-Lingual Publishing Pack

elwins wrote:

and admin panel in unusable.. :(

Can you get directly to domain.lv/textpattern/index.php?event=plugin? If so, can you check that you activated both plugins? You need to activate gbp_admin_library first, and then l10n. Then you should be able to go to the installation wizard.

If you can’t access the admin side at all, you can remove the plugins directly from the txp_plugin table in the database (through your host’s admin panel and phpMyAdmin). Then you can go through the installation process again.

  1. Upload the files:
    • to /textpattern/
      • l10n.css
    • to /textpattern/txp_img/
      • l10n_clone.png
      • l10n_clone_all.png
      • l10n_delete.png
    • to /textpattern/lib/
      • l10n_langs.php
      • l10n_base.php
      • l10n_admin.php
      • l10n_admin_classes.php
      • l10n_default_strings.php
      • l10n_en-gb_strings.php
      • l10n_el-gr_strings.php
      • txplib_db.php
  2. install the plugins
    1. first activate gbp_admin_library
    2. then activate l10n and zem_contact_lang-mlp
  3. go to MLP > Wizards and run the setup wizard

Offline

#1938 2012-02-14 11:57:30

elwins
Member
From: Latvia
Registered: 2011-08-29
Posts: 80

Re: MLP - The Multi-Lingual Publishing Pack

Okey, I deleted all and tried again, I understand, that mistake were in that, I turned ON plugins in wrong order.

Now MLP working, but there are mistake:

Notice: Undefined variable: article_list_pageby in /var/www/clients/client10/web80/web/mlp/textpattern/lib/l10n_admin_classes.php on line 4369

Offline

#1939 2012-02-14 14:16:17

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: MLP - The Multi-Lingual Publishing Pack

elwins wrote:

…Now MLP working, but there are mistake:

Try this:
Go to the “articles” tab and, at the bottom of the page, change the number in the “show x articles per page” dropdown.

Offline

#1940 2012-02-14 14:19:14

elwins
Member
From: Latvia
Registered: 2011-08-29
Posts: 80

Re: MLP - The Multi-Lingual Publishing Pack

Working!
Anyway its important or not so importang bug?
Thanks! :)

Last edited by elwins (2012-02-14 14:19:29)

Offline

#1941 2012-02-14 14:22:43

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: MLP - The Multi-Lingual Publishing Pack

elwins wrote:

….Anyway its important or not so importang bug?

Don’t worry, this is a very minor bug not MLP related which shows only the first time you log in to the txp interface.

Last edited by redbot (2012-02-14 14:24:27)

Offline

#1942 2012-02-20 10:52:27

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 215
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi again !…

every thing seems to work for now except some path related issue :
the site i’m working on has 2 languages : French and English.
Let’s say i’m accessing the site at a second level url (my-site.com/my-section) with non-french language set in my browser
I will see the right page (ie: english rendition) but the url is not set to my-site.com/en/my-section, it is still my-site.com/my-section.

And this error message show :
Notice: Undefined index: l10n_request_uri in site_directory\textpattern\lib\txplib_misc.php(653) : eval()'d code on line 430
It’s on my development server with status set to debug.

I can understand that it may not be a problem from the plug-in point of view but how can i set a redirection with header 301 moved permanently for all previous French content to my-site.com/fr ?
Would it be possible to add an .htaccess rule for the whole site ?

Thanks for any advice.

Offline

#1943 2012-02-20 12:37:27

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

Re: MLP - The Multi-Lingual Publishing Pack

planeth wrote:

Let’s say i’m accessing the site at a second level url (my-site.com/my-section) with non-french language set in my browser I will see the right page (ie: english rendition) but the url is not set to my-site.com/en/my-section, it is still my-site.com/my-section.

If you just type ‘my-site.com/my-section/’ in the URL bar, that is expected behaviour. As soon as you navigate using the MLP generated links, the language marker should appear in the URL again.

Notice: Undefined index: l10n_request_uri in site_directory\textpattern\lib\txplib_misc.php(653) : eval()'d code on line 430

Is the site installed in a subdirectory?

Offline

#1944 2012-02-20 13:33:27

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 215
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi Els,

If you just type ‘my-site.com/my-section/’ in the URL bar, that is expected behaviour. As soon as you navigate using the MLP generated links, the language marker should appear in the URL again.

I understand it is expected. My concern is about SEO, actually.
People (and robot) accessing this link will see different content depending of the browser default language. Which will lead to duplicate content in google “machinery”.
That’s why my question about setting a .htacces directive to redirect to the french url with a 301 header.

Is the site installed in a subdirectory?

No.

Offline

Board footer

Powered by FluxBB