Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#2365 2016-10-16 16:43:07
Re: MLP - The Multi-Lingual Publishing Pack
Offline
#2366 2016-10-31 10:46:28
Re: MLP - The Multi-Lingual Publishing Pack
Bloke wrote #302169:
I’d be tempted to do it in this order:
- Put your site in maintenance mode ;-)
- Backup database and filesystem.
- Disable the l10n plugin.
- Disable the gbp_admin_library plugin.
- Log out of Textpattern.
- Upgrade Txp files from new version.
- Upload and replace any core files from MLP. Note the instructions don’t yet mention the stuff in the
vendors
directory, but that needs uploading too.- Log in, let Txp upgrade itself. Deal with any upgrade issues / plugins via Admin->Diagnostics.
- Install new version of gbp_admin_library and enable it.
- Install new version of l10n plugin and enable it.
- Visit any admin panel to upgrade MLP.
- Test.
- Take site out of maintenance mode.
My gut feeling is that Txp 4.6.2 will be out in a few days, so you may wish to wait until then to save yourself the hassle of doing bits of the above twice. I might have been able to spruce up the MLP interface by then too, if I get a few hours spare this weekend.
Hi Stef,
great to hear 4.6.2 is out now.
Is there now any easier/faster way to update the MLP Pack as you describe above without the hassle?
thanx and regards
Nick
Offline
#2367 2016-10-31 12:07:22
Re: MLP - The Multi-Lingual Publishing Pack
In a local MAMP environment I have installed a new 4.6.2 textpattern version and tried successfully to install the MLP 4.6.0 branch. This is what I did:
- Install ied_plugin_composer
- Upload the 3 .php files from the GitHub MLP 4.6.0 branch, obtaining 3 plugins of MLP pack
- Copied the textpattern files in my Textpattern installation
- Activated the 3 plugins.
MLP is basically working, even if some problems remain:
- The interface is not in line with 4.6.2 visuals (expected)
- In Debug mode or in Test mode I have this:
Errore nel caricare il plug-in: l10n -> Notice: Undefined variable: installed_l10n_version on line 30 textpattern/lib/l10n_admin.php:14 Netcarver\MLP\Kickstart->l10n_upgrade() textpattern/lib/txplib_misc.php(1782) : eval()'d code:402 include_once() textpattern/lib/txplib_misc.php:1782 eval() textpattern/index.php:193 load_plugins()
The renditions page disappear, as well as the Section Edit pages. - In Live mode the renditions page is correctly displayed, but the Section Edit page does not let you translate the Title, since the related field is missing (I added the translations directly in the database).
So, excluding above quirks, the MLP pack works fine.
Now let’s hope that Stef can find the time to fix and compile the 3 plugins
Offline
#2368 2016-12-12 16:59:52
Re: MLP - The Multi-Lingual Publishing Pack
why MLP duplicate information in the master table textpattern and renditions tables l10n_%LANG%?
Offline
#2369 2016-12-12 17:11:22
Re: MLP - The Multi-Lingual Publishing Pack
spiridon wrote #303240:
why MLP duplicate information in the master table textpattern and renditions tables l10n_%LANG%?
That’s just the way it works. Been like that since I took over development. I have no intention to change it in the code, because the plan is to eventually phase out reliance on it for a better, native language-based solution. Or at very least, a proper plugin instead of this massive hack.
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
#2370 2016-12-12 17:19:30
Re: MLP - The Multi-Lingual Publishing Pack
Can I replace the renditions tables by views?
Offline
#2371 2016-12-12 19:21:21
Re: MLP - The Multi-Lingual Publishing Pack
spiridon wrote #303243:
Can I replace the renditions tables by views?
Never tried it, but I guess so. For the duplicated portions at least. Not sure how you’d do it though, because each rendition table holds content in its own language and points back to the master language. How would you control feed freshness, for example?
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.
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
#2372 2016-12-13 17:08:12
Re: MLP - The Multi-Lingual Publishing Pack
I commented out some lines in the l10n_admin.php
and l10n_admin_classes.php
and create views – it works!
But this in txp 4.5.4… First, I will update txp to 4.6.2.
Of course I will share the results. I hope it will works!
Last edited by spiridon (2016-12-13 17:30:34)
Offline
#2373 2016-12-13 17:40:31
Re: MLP - The Multi-Lingual Publishing Pack
TXP 4.6.2 and last MLP – a small mistake:
l10n -> Notice: Undefined variable: installed_l10n_version on line 30
l10n -> Notice: Undefined variable: l10n_release_version on line 30
textpattern/lib/l10n_admin.php:14 Netcarver\MLP\Kickstart->l10n_upgrade()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:402 include_once()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/index.php:194 load_plugins()
Last edited by spiridon (2016-12-13 17:48:31)
Offline
#2374 2016-12-16 16:09:07
Re: MLP - The Multi-Lingual Publishing Pack
Hey there,
I have the same problem that giampablo stated before ( http://forum.textpattern.com/viewtopic.php?pid=302529#p302529 ), there is no way to fill in section titles for any but the default language.
How can I solve this? Where would these go in phpmyadmin?
Cheers,
-M
Offline
#2375 2016-12-20 09:08:48
Re: MLP - The Multi-Lingual Publishing Pack
Hallo, I’ve followed the suggested route for upgrading a 4.5.7 website to 4.6.2, and upgraded the MLP package with the latest from branch 4.6.x, but I get a broken homepage (content is missing), and in the admin side clicking on the renditions button yields a blank white page.
These are the steps I’ve taken:
- disable plugins
- logout
- upgrade txp files
- upgrade mlp files
- login
- install plugins via the ied_plugin_composer
- enable mlp plugins
- diagnosics
- go in debug mode
In debug mode I see just:
l10n -> Notice: Undefined variable: installed_l10n_version on line 30
l10n -> Notice: Undefined variable: l10n_release_version on line 30
Thanks for any suggestion…
Offline
#2376 2016-12-20 13:20:26
Re: MLP - The Multi-Lingual Publishing Pack
Manaus, can you tell us which PHP version you are using on that particular host? Maybe that’s what is causing the problem. Could it be 5.4 or below?
If possible, try selecting a higher version …
I had problems with the ied_plugin_composer-rendered files on one server as well.
Good luck,
-f
Offline