Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#2356 2016-08-30 07:19:04
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: MLP - The Multi-Lingual Publishing Pack
MLP error
Hi, Bloke, Thanks so much for maintaining MLP and continuing to help us.
I’m updating to TXP 4.5.7 and MLP with:
l10n-4.5.5-01
gbp_admin_library-0.4.2
zem_contact_lang-mlp-4.0.3.6-ML (already up-to-date)
I’ve uploaded all of the files from github to the textpattern folder and installed the l10n two newer plugins in the admin panel.
The site now throws a general_error.
general_error
Notice: Undefined index: l10n_l10n-url_default_lang_marker on line 460
<code>_l10n_textpattern_comment_submit()
textpattern/lib/txplib_misc.php:854 call_user_func_array()
textpattern/publish.php:526 callback_event()
index.php:83 textpattern()</code>
I’ve been wrestling with this for hours. Any idea of what might be wrong or how to go about finding the problem?
Is it odd that “l10n_l10n-url_default_lang_marker” has l10n repeated?
Offline
#2357 2016-09-04 06:17:33
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: MLP - The Multi-Lingual Publishing Pack
I may have found a bug. I deleted renditions in both languages on the MLP page using the “X” in the articles column. That cleared them both from all areas of the admin side of the site, but one of the renditions still appeared in the live site. I had to go into phpMyAdmin to delete the phantom rendition. That fixed the problem.
I still have not found a solution to the error message described in earlier post on 2016-08-30.
Offline
#2358 2016-09-04 08:08:42
Re: MLP - The Multi-Lingual Publishing Pack
azw wrote #301013:
I deleted renditions in both languages on the MLP page using the “X” in the articles column. That cleared them both from all areas of the admin side of the site, but one of the renditions still appeared in the live site.
This is probably to do with your earlier problems with the plugin, sorry for missing your post. MLP doesn’t seem to have a proper database “link” between the rendition and the article. The delete process dutifully removes the back-end stuff, but not the linked front-end rendered content.
I think this has been fixed in the GitHub version, but since it’s not yet officially released it needs compiling. That reminds me, I need to find somewhere to set up a clean MLP instance so I can compile the plugins.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#2359 2016-10-13 15:32:02
Re: MLP - The Multi-Lingual Publishing Pack
From what I read here, I understand that the Github version of MLP can be made to work well with TXP 4.5.7
Has anyone tried it with TXP 4.6.1?
Also, when updating both TXP and MLP, I understand that the way to go is to update first the MLP pack according to the directions on Github and then update TXP, taking care to overwrite the TXP core files with those provided in the MLP pack. Is that right?
Offline
#2360 2016-10-14 08:33:03
Re: MLP - The Multi-Lingual Publishing Pack
jordi wrote #302160:
the Github version of MLP… Has anyone tried it with TXP 4.6.1?
Yes, me. But only from the 4.6.0 branch on GitHub. The pack is certainly not pretty at the moment, but it works. I think the UI portion is buried deep in gbp_admin_library and I couldn’t fathom it last time I looked. I’ll try again, hopefully soon, and get the interface a little more in line with the 4.6 visuals.
Also, when updating both TXP and MLP
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
vendorsdirectory, 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.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#2361 2016-10-14 15:13:30
Re: MLP - The Multi-Lingual Publishing Pack
Hi Stef, thank you for your detailed instructions. One thing, though:
Yes, me. But only from the 4.6.0 branch on GitHub. The pack is certainly not pretty at the moment, but it works.
If it works, that’s enough, for the moment. The question is: where is this 4.6.0 branch? The one at https://github.com/Bloke/MLP seems older, and there’s not any vendors directory that I can find.
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.
A few days I can wait. I’ll do that, then.
And thank you for your magic.
Offline
#2362 2016-10-14 15:26:46
Re: MLP - The Multi-Lingual Publishing Pack
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#2363 2016-10-14 16:02:58
Re: MLP - The Multi-Lingual Publishing Pack
thank you
Offline
#2364 2016-10-15 22:25:18
- lustfulrat
- New Member
- Registered: 2016-10-15
- Posts: 1
Re: MLP - The Multi-Lingual Publishing Pack
I’m trying to install MLP in TXP 4.6.0 but I’m little confused about installing a plugins. How can I install them? As stated in README.md file from GitHub repo there should be three txt files inside plugins, but there is only sources folder with php files.
In gbp_admin_library.php and l10n.php files there is a comment:
// Copy this file to a new name like abc_myplugin.php. Edit the code, then
// run this file at the command line to produce a plugin for distribution:
// $ php abc_myplugin.php > abc_myplugin-0.1.txt
I’ve tried to do this using cron on my hosting account user panel (I don’t have an access to the console, only to cron-jobs composer via DirectAdmin), but produced txt files are empty (0 bytes size).
Anybody know how can I convert them to txt files needed to install via plugin installer in TXP administration? Or simply put the txt files somewhere, so everybody can download it.
Offline
#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
vendorsdirectory, 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.
Hire 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