Textpattern CMS support forum

You are not logged in. Register | Login | Help

#2471 2018-08-06 10:28:40

spiridon
Member
From: Mariupol, Ukraine
Registered: 2011-01-30
Posts: 43
Website

Re: MLP - The Multi-Lingual Publishing Pack

I’ll try to adapt the plug-in to the new version. You’ll have to test.

Offline

#2472 2018-08-10 08:16:53

spiridon
Member
From: Mariupol, Ukraine
Registered: 2011-01-30
Posts: 43
Website

Re: MLP - The Multi-Lingual Publishing Pack

During Adapting MLP with Txp 4.7.1 I ran into a strange problem with languages. In 4.6.2 I have “uk-ua” and “ru-ru” language codes. But after upgrading to 4.7.1 I have “uk” and “ru” accordingly.

Logical integrity is broken because all articles, description in categories, images and etc are connected with old language codes.

What should I prefer to fix this situation? Return old codes of languages in txp_lang table or alter names of columns in accordingly tables and update codes in table textpattern.

Is it not a mistake? And willn’t Txp return to the old codes?

Offline

#2473 2018-08-15 14:54:40

spiridon
Member
From: Mariupol, Ukraine
Registered: 2011-01-30
Posts: 43
Website

Re: MLP - The Multi-Lingual Publishing Pack

I had a problem with the snippets in 4.7.1. In one of the two languages, no text was output.

In the file textpattern/publish.php you need to fix it

if (txpinterface !== 'css') {
    load_lang(LANG);
}

for this

if (txpinterface !== 'css') {
    $textarray = load_lang(LANG);
}

Offline

#2474 2018-08-24 08:06:47

demoncleaner
Plugin Author
From: Germany
Registered: 2008-06-29
Posts: 63
Website

Re: MLP - The Multi-Lingual Publishing Pack

Sorry for my late reply and thank you so much for adapting the plugin to 4.7.1. I will soon setup the plugin in a new website running on latest textpattern and will post here about my experience with MLP. About what you mentioned earlier in a post…the different language codes… I have read about it in this one or another thread but cannot remember exactly what it was all about. But I THINK it is not a mistake…

Offline

#2475 2018-09-18 13:06:33

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 858
Website

Re: MLP - The Multi-Lingual Publishing Pack

demoncleaner wrote #313236:

The problem that remains is now for whatever reason I cannot access to sections detail page and to Renditions page as soon as MLP is up and running.

Is there a known fix to this issue?
After upgrading I can’t access to the following tabs:

  • Contents:
    • Renditions;
    • Images;
    • File edit;
    • Links;
    • Category edit.
  • Presentation:
    • Section edit.

They are just blank.
The language switcher on the top right corner also break the layout by pushing each tab contents on the left.

I will try to update one more time and maybe take a look at the code if needed…

Edit: I also get no articles in the public side article lists and multiple error messages like:

Tag error: <txp:article_custom section="a-propos" id="3, 4, 5" wraptag="ul" class="dropdown" break="li"><txp:permlink><txp:title /></txp:permlink></txp:article_custom> ->  Textpattern Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (from_unixtime(2147483647) <= Expires OR Expires IS NULL) AND ID  IN (3,4,5)' at line 1 while parsing form vsv_found_topbar on page vsv_found_magazine

textpattern/lib/txplib_db.php:418 trigger_error()
textpattern/lib/txplib_db.php:1162 safe_query()
textpattern/lib/txplib_db.php:1004 startRows()
textpattern/publish.php:850 safe_rows_start()
textpattern/publish.php:971 doArticles()
textpattern/publish.php:960 parseArticles()
article_custom()
textpattern/vendors/Textpattern/Tag/Registry.php:116 call_user_func()
textpattern/lib/txplib_publish.php:547 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:471 processTags()

Last edited by NicolasGraph (2018-09-19 09:01:05)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

Board footer

Powered by FluxBB