Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#2233 2013-08-12 07:43:20

mikulas
Member
From: Czech republic
Registered: 2012-03-15
Posts: 32

Re: MLP - The Multi-Lingual Publishing Pack

I can save and clone an article, but when I want to modify and save it again, I get the error message: “Sorry, the form could not be submitted. Please try again, later.” (On local server everything works fine.)
My site is running on MLP 4.5.2 and TXP 4.5.4.

Last edited by mikulas (2013-08-12 08:35:11)

Offline

#2234 2013-08-12 10:29:56

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,260

Re: MLP - The Multi-Lingual Publishing Pack

mikulas, have you seen this post?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#2235 2013-08-12 19:25:37

jpac
New Member
Registered: 2013-08-12
Posts: 1

Re: MLP - The Multi-Lingual Publishing Pack

to avoid the pop-up message i used the “cheap fix“posted by Bloke modifying the l10n_admin.php

bu I still have the issue reported above by wornout and mikulas where the content doesn’t seem to be updated after editing a rendition. To solve this issue temporarily i’m using the MLP Pack Cleanup Wizard without selecting any check mark. after that I go back to the MPL tab and run the MPL setup. Only then the edits show up in the pages.

hope it helps!

Offline

#2236 2013-08-14 09:55:22

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: MLP - The Multi-Lingual Publishing Pack

jpac schrieb:

To solve this issue temporarily i’m using the MLP Pack Cleanup Wizard without selecting any check mark. after that I go back to the MPL tab and run the MPL setup. Only then the edits show up in the pages.

that doesnt work for me. no errors due to the fix of bloke, but my edits only are saved to the textpattern table, not to the language tables.
in textpattern, the articles that show up, are the ones from the textpattern table and not the ones from the language tables.
maybe that is correct, but the changes are only saved to the textpattern table and not to the language tables.

so in gerneral, my textpattern table is fine, but the language tables are not saved, when i edit them.

Last edited by jens31 (2013-08-14 14:07:06)

Offline

#2237 2013-08-15 13:12:37

michaelb
Member
From: London, UK
Registered: 2008-04-02
Posts: 21

Re: MLP - The Multi-Lingual Publishing Pack

Hi there.

Apologies for cross-posting, but I am not sure which is the correct place to ask:

Does anyone have a link to a zem_contact_lang MLP pack in Russian I could please use?

Also, is there one in Portuguese that anyone would be willing to share?

Offline

#2238 2013-08-15 18:37:24

Pablo Apiolazza
Member
From: Trieste, Italy
Registered: 2011-03-03
Posts: 19
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi all!! First of all congrats for such a wonderful plugin! I love it!

I’m having a slightly annoying problem that I can’t figure out. I have a homepage with many snippets, I translated them all, and saved them, but some of them aren’t showing the translation. They come out as they were not translated, with the string name. I don’t understand what can it be.
Any help will be appreciated.

Cheers

Pablo

Offline

#2239 2013-08-15 19:36:37

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

Re: MLP - The Multi-Lingual Publishing Pack

michaelb, maybe posting your questions in the Russian and Portuguese forums is a good idea.
If you find the language sets, can you please post them in this thread: MLP Users’ String Exchange?

Pablo, did you look at the tag trace of a page where the issue occurs? You can also post the tag trace here if it doesn’t tell you much.

Offline

#2240 2013-08-16 10:45:37

Pablo Apiolazza
Member
From: Trieste, Italy
Registered: 2011-03-03
Posts: 19
Website

Re: MLP - The Multi-Lingual Publishing Pack

Thanks for the answer Els

I get this error a lot

General error Notice: Undefined variable: CNK_VER_EXT on line 258 textpattern/lib/txplib_misc.php(812) : eval()'d code:65 cnk_ver_push_css() cnk_ver_textpattern() textpattern/lib/txplib_misc.php:854 call_user_func_array() textpattern/publish.php:526 callback_event() index.php:83 textpattern() - See more at: http://www.apzmedia.com/test#sthash.CvVpYDYu.dpuf

And then I get this:

<!-- txp tag trace: 
[SQL (0.000318050384521): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.00070595741272): select name, code, version from txp_plugin where status = 1 AND type IN (0,1,5) order by load_order]
[SQL (0.000127077102661): select name,code,version from txp_plugin where status = 1 AND name='gbp_admin_library']
[SQL (0.000163078308105): select name,code,version from txp_plugin where status = 1 AND name='smd_lib']
[SQL (0.000128984451294): select lang from txp_lang where 1=1 GROUP BY `lang`]
[SQL (0.000181913375854): select count(*) from txp_lang where `lang`='de']
[SQL (5.69820404053E-5): select count(*) from txp_lang where `lang`='en-gb']
[SQL (5.10215759277E-5): select count(*) from txp_lang where `lang`='es-es']
[SQL (2.59876251221E-5): select count(*) from txp_lang where `lang`='fr']
[SQL (2.28881835938E-5): select count(*) from txp_lang where `lang`='it']
[SQL (2.59876251221E-5): select count(*) from txp_lang where `lang`='it-it']
[SQL (2.50339508057E-5): select count(*) from txp_lang where `lang`='nl']
[SQL (2.28881835938E-5): select count(*) from txp_lang where `lang`='sp']
[SQL (3.00407409668E-5): select name from txp_section where `name` = 'test' limit 1]
[SQL (3.09944152832E-5): select page, css from txp_section where name = 'test' limit 1]
[SQL (0.000214099884033): select host from txp_log where ip='2.234.159.160' limit 1]
[SQL (0.000195026397705): insert into txp_log set `time`=now(),page='/test',ip='2.234.159.160',host='2.234.159.160',refer='',status='200',method='GET']
[SQL (5.19752502441E-5): select name,type,IFNULL(unix_timestamp(file_mod_time), 0) as mod_time from txp_form where 1=1]
[SQL (3.81469726562E-5): select name,IFNULL(unix_timestamp(file_mod_time), 0) as mod_time from txp_page where 1=1]
[SQL (3.2901763916E-5): select name,IFNULL(unix_timestamp(file_mod_time), 0) as mod_time from txp_css where 1=1]
[SQL (3.79085540771E-5): select user_html from txp_page where name='APZ 2013 v3']
[Page: APZ 2013 v3]
<txp:output_form form="meta_v3" />
	[SQL (3.48091125488E-5): select Form from txp_form where name='meta_v3']
	[Form: meta_v3]
	<txp:page_title />
		[SQL (3.2901763916E-5): select `l10n_title_en_gb` as `title` from txp_section where name='test']
	<txp:if_individual_article>
		[<txp:if_individual_article>: false]
	</txp:if_individual_article>
	<txp:if_search>
		[<txp:if_search>: false]
		<txp:if_category>
			[<txp:if_category>: false]
			<txp:if_author>
				[<txp:if_author>: false]
			</txp:if_author>
		</txp:if_category>
	</txp:if_search>
	<txp:feed_link flavor="atom" format="link" label="Atom" section="news"/>
	<txp:feed_link flavor="rss" format="link" label="RSS" section="news"/>
<txp:l10n_get_lang_dir />
<txp:output_form form="Menu_v3" />
	[SQL (3.09944152832E-5): select Form from txp_form where name='Menu_v3']
	[Form: Menu_v3]
	<txp:if_section name=",default">
		[<txp:if_section name=",default">: false]
	</txp:if_section>
	<txp:section name="default">
	</txp:section>
	<txp:if_section name="services">
		[<txp:if_section name="services">: false]
	</txp:if_section>
	<txp:section name="services">
	</txp:section>
	<txp:if_section name="work">
		[<txp:if_section name="work">: false]
	</txp:if_section>
	<txp:section name="work">
	</txp:section>
	<txp:if_section name="blog">
		[<txp:if_section name="blog">: false]
	</txp:if_section>
	<txp:section name="blog">
	</txp:section>
	<txp:if_section name="contact">
		[<txp:if_section name="contact">: false]
	</txp:if_section>
	<txp:section name="contact">
	</txp:section>
	<txp:l10n_lang_list />
<txp:section name="services">
</txp:section>
<txp:section name="work">
</txp:section>
<txp:article_custom form="blogprevv3"  section="blog" limit="1" />
	[SQL (0.000286102294922): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from l10n_txp_en_gb where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('blog') order by Posted desc limit 0, 1]
	[Article 162]
	[SQL (3.19480895996E-5): select Form from txp_form where name='blogprevv3']
	[Form: blogprevv3]
	<txp:title />
	<txp:images limit="1">
		[SQL (4.60147857666E-5): select *,`l10n_caption_en_gb` as `caption`,`l10n_alt_en_gb` as `alt` from txp_image where id IN (138) order by field(id, 138) limit 0, 1]
		<txp:image_info type="id" />
			[SQL (0.000101804733276): select `l10n_title_en_gb` as `title` from txp_category where name='illustration' and type='image']
	</txp:images>
	<txp:excerpt />
	<txp:permlink class="m-btn ttango span2">
	</txp:permlink>
<txp:section name="blog">
</txp:section>
<txp:output_form form="scripts_v3" />
	[SQL (4.00543212891E-5): select Form from txp_form where name='scripts_v3']
	[Form: scripts_v3]
[ ~~~ secondpass ~~~ ]
 -->

{Edited to make Textile work. – Uli}

Last edited by uli (2013-08-20 21:02:56)

Offline

#2241 2013-08-16 11:55:27

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

Re: MLP - The Multi-Lingual Publishing Pack

Hi Pablo, unfortunately the tag trace isn’t offering any help here. I assume you were talking about the strings like ‘forfilmsub’ etc? The strange thing is that if the snippets really didn’t work, they would be displayed like this: ##forfilmsub##. So it looks more like the translations weren’t saved properly. Maybe you can check the txp_lang table in the database if the translations are there?

Edit: forgot to say that probably the plugin cnk_versioning is causing problems. Have you tried if disabling it makes a difference?

Last edited by els (2013-08-16 12:07:19)

Offline

#2242 2013-08-20 18:55:29

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: MLP - The Multi-Lingual Publishing Pack

Dears
I got the next query. My client has loaded a lot of content in two languages, but when he wants to see articles from one section in Content > MLP > Articles, he inputs the section name in the filter inputs, but it displays a few articles in that section but not all of them. When we use the paginator or the ‘next’ button at the bottom, the section name we’ve put earlier, dissapears and we see all the articles again. :/
Is there any way to display ALL the articles that belong to one specific section?
Thanks
Fernando

Offline

#2243 2013-08-21 11:09:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,566
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

For anyone experiencing the article edits not saving (jens31, Axel, wornout, Teemu, pretty much anyone…) I apologise wholeheartedly for my stupidity. In the process of fixing Kjeld’s strange buffering issue I was inadvertently too heavy-handed and broke the saving ability so article renditions don’t get updated upon Save (but Publish is fine, as everyone has noticed).

I’ve applied a slightly modified patch to a local install and on Teemu’s server and it has restored the saving ability. I have asked Kjeld if he wouldn’t mind testing it also to see if it still works on his server without re-introducing the errors he had previously. Kjeld’s very busy so that might take a few days, but providing it works I’ll update the Github master at that time. If not it’ll be a bit of back-and-forth form server to server until I find a fix that works in all situations.

In the meantime, for those that aren’t plagued with the ‘Form cannot be submitted’ error, the fix is simple: just undo the edits I made. Simplest thing for now is to comment out the return ''; on Line 18 of lib/l10n_admin.php like this:

if ($app_mode === 'async') {
//	return '';
}

That will restore saving ability until I can get an official fix for the bad fix.

Incidentally, if anybody else has the ‘Form cannot be submitted’ error and the latest Github version installed (with or without the above return statement commented out) feel free to get in touch and I’ll see if I can figure out why it’s not working. It might require me to have access to your server (a Txp login, possibly an FTP login as well if you don’t mind so I can upload any MLP files) but I’d like to try and get this sorted for everyone, so the more installations I can test it on, the more confident I can be that it works. Thanks.

Again, very sorry for the screw up and the fact it’s taken me so long to attend to it. Between the day job and not being in my house for three weeks while work was being carried out, Internet access has been a little haphazard.


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

Online

#2244 2013-08-21 11:27:47

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,566
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

gfdesign wrote:

Is there any way to display ALL the articles that belong to one specific section?

Erm, well spotted. That search feature isn’t very good is it! I’ll add that to the list of things to fix/improve.

The only way I can think of at the moment is to either change the number of articles per page first (which will be remembered next time you visit the page), then enter your search criteria. Or use Textpattern’s Content>Renditions panel which does paginate correctly and remembers the search criteria (and also allows you to filter by language).

Sorry it’s not an ideal solution at present.


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

Online

Board footer

Powered by FluxBB