Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#2377 2016-12-20 18:06:24

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi Funtoosh, yes it is the 5.4.10 one, might be that?

Offline

#2378 2016-12-21 17:21:48

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: MLP - The Multi-Lingual Publishing Pack

Anyone can provide a rendered version of MLP 4.6.0 for a server running 5.3.29 on TXP 4.6.2? Thanks!!!!

Offline

#2379 2016-12-22 11:51:52

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi, I just tried to start off scratch, downloading fresh versions of Txp 4.6.2 and MLP 4.6.0,

  • installed languages
  • installed ied_plugin_composer
  • installed MLP files
  • logged in
  • activated MLP plugins
  • run MLP wizard

and when I click on Renditions I get a blank page…

Offline

#2380 2016-12-22 13:12:34

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

Re: MLP - The Multi-Lingual Publishing Pack

That happened

Manaus, in Prefs, turn Production status in ‘Live’ or ‘Testing’

Last edited by spiridon (2016-12-22 13:14:00)

Offline

#2381 2016-12-22 13:22:56

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

Re: MLP - The Multi-Lingual Publishing Pack

Sorry for the hassles this is causing. I’ll try and fix it. Alternatively, anyone who fancies submitting any Pull Requests, please feel free to do so.


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

#2382 2016-12-22 13:41:51

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

Re: MLP - The Multi-Lingual Publishing Pack

Incidentally, the white screen thing is (I think) to do with the $trace functionality, which is why it goes away if you put the site in Live mode. But I cannot figure out why it occurs.

Anyone digging into error logs will probably find this:

PHP Fatal error:  Call to a member function start() on a non-object in /path/to/textpattern/lib/txplib_db.php on line 404.

Now, if you dump out the contents of q and trace just before that point in txplib_db.php:

echo ‘<pre>’;
var_dump($q, $trace);
echo ‘</pre>’;

you get a bunch of perfectly valid queries spewed to the page, followed by a bunch of trace info. But at some point, the trace info cuts off midway through. Like it’s running out of memory or resources or something and just dies. Then it kicks out that error message to the logs and Txp doesn’t render anything: white screen of death. What’s more bizarre, refreshing the page seems to cut the trace dump off at varying places.

If it was an escaping issue, it should fail consistently, but it doesn’t. I’m totally stumped. Anyone with any clues, please offer suggestions.


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

#2383 2016-12-22 14:53:28

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: MLP - The Multi-Lingual Publishing Pack

Thanks spiridon, the only way it’s working is in live mode, the other two fail…

Offline

#2384 2016-12-29 19:02:11

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

Re: MLP - The Multi-Lingual Publishing Pack

Bloke wrote #303245:

If you can get it to work with Views, then I’d love to see it working as it would simplify a lot of back-end code.

Stef, I did it on my website.

I replaced tables by views

DROP TABLE l10n_txp_uk_ua;
CREATE VIEW l10n_txp_uk_ua AS SELECT * FROM textpattern WHERE l10n_lang='uk-ua';
DROP TABLE l10n_txp_ru_ru;
CREATE VIEW l10n_txp_ru_ru AS SELECT * FROM textpattern WHERE l10n_lang='ru-ru';

Then, in the file textpattern/lib/l10n_admin_classes.php I commented out some lines in the functions clone rendition, delete article and delete rendition.

In the front-end, nothing changes, does not work faster and not slower. In the back-end, I made changes only to make it work. I have not changed the code for creating tables (views) during the initialization of the plugin and not optimized queries (When you update the article to run UPDATE twice: for textpattern table and l10n_txp_LANG_CODE table)

I just wanted to reduce the volume DB. ( I have 98 megs was reduced to 50).

Сode can be found here: github.com/dshovchko/MLP/tree/v4.6.0.tables2views

If someone is interested I will finish the work.

PS. Also in the file textpattern/lib/l10n_admin.php I commented out the function call _l10n_create_temp_textpattern(). Nothing but freezes when you open the reditions list, it did not.

Last edited by spiridon (2017-01-23 18:18:16)

Offline

#2385 2016-12-29 20:12:05

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

Re: MLP - The Multi-Lingual Publishing Pack

spiridon wrote #303434:

I replaced tables by views

Awesome! I’ll check out your code, thank you.

If someone is interested I will finish the work.

Interested. Interested. Interested!

PS. Also in the file textpattern/lib/l10n_admin.php I commented out the function call _l10n_create_temp_textpattern().

The temporary tables cause nothing but trouble. If we can get rid of them, it’d be soooo much better. We also need to fix that bug/warning you found in the upgrade script. Need to find some time to do all this stuff. If you have some code or pull requests available to patch against the 4.6.0 branch, it would be a HUGE help.

Thank you for all the work you’ve put into this.


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

#2386 2017-01-17 11:47:37

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hey there,
any news on MLP? The updates by spiridon look pretty cool!

Cheers,
-f

Offline

#2387 2017-01-19 09:51:47

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

Re: MLP - The Multi-Lingual Publishing Pack

Hello!

Sorry. I’m very busy now.
I will have time for finish work only next week.

Offline

#2388 2017-01-19 12:22:13

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: MLP - The Multi-Lingual Publishing Pack

No problem, spiridon, next week would be perfect!

Offline

Board footer

Powered by FluxBB