Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#2176 2013-01-30 21:14:52

ru
New Member
Registered: 2012-10-12
Posts: 8

Re: MLP - The Multi-Lingual Publishing Pack

ru wrote:
i am able to create new articles, but when i try to update some, it does not change.

Bloke wrote:
Hmm, this has been a recurring theme over the past few weeks. Would you be able to please do me a favour, check out the repo master branch and try that version instead. It works for me, but there aren’t enough field trials yet to determine if that version squashes this Write panel bug. Any feedback would be incredibly useful, thanks.

hey bloke,
i tried it and have on both systems (windows7 / debian) the same behavior:

  • updating of already existing articles works
  • creating of new articles does work too.
  • updating of new articles does only work if i have content for both languages (de, en).

if the recently created article exists just in german (default) i get the following errormessage via alert():

Internal 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 ‘’ at line 1
select * from l10n_articles where `ID`=”.

Offline

#2177 2013-01-30 21:29:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

ru wrote:

updating of new articles does only work if i have content for both languages (de, en).

Aha! Excellent sleuthing, thanks. That gives me something to work on. Confirmed bug, reproducible. Time to stomp it out.


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

#2178 2013-01-30 22:00:24

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

OK, try that please. Not convinced that’s the root cause but the error message seems to have gone.


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

#2179 2013-01-31 21:14:16

ru
New Member
Registered: 2012-10-12
Posts: 8

Re: MLP - The Multi-Lingual Publishing Pack

Bloke wrote:

OK, try that please. Not convinced that’s the root cause but the error message seems to have gone.

hey bloke,
it looks like its working!

the sql error is gone and updating works!
and now on both systems, windows and linux.

Offline

#2180 2013-01-31 23:38:00

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

Re: MLP - The Multi-Lingual Publishing Pack

Stef, now that this error seems fixed: which is the correct download link now so I can keep the first post in synch with the state of the art, this one?
https://github.com/Bloke/MLP/archive/master.zip


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

Offline

#2181 2013-01-31 23:46:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

uli wrote:

which is the correct download link now

I still need to package up the release into something presentable, export the plugin .txt file, bump version numbers and then upload it to my site. Waiting on Jonathan to reply to my email as I can’t figure out to which site he’s referring. I don’t know if his problems are related to the one ru highlighted or not.

Was messing about in Mercurial the other day and found hg tags. No doubt git has a similar feature that I need to read up on. If it does, it means I can tag releases directly on github and then (hopefully) people can download particular versions directly there instead of from my site. That’ll save me hassle and mean we don’t have to keep download links up to date.

Anyone who’s used such tagging wizardry on github, feel free to give me a crash course so I can do it in the best manner, thanks.


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

#2182 2013-02-01 00:19:24

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: MLP - The Multi-Lingual Publishing Pack

Bloke wrote:

(…) bump version numbers (…)

BTW, I’ve noticed this on plugins/sources/l10n.php

$plugin['version'] = '4.5.1';

(but 4.5.2 has been already released).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2183 2013-02-01 00:24:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

maniqui wrote:

$plugin[‘version’] = ’4.5.1’; (but 4.5.2 has been already released).

Drat. I suck at version control.


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

#2184 2013-02-01 00:38:55

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: MLP - The Multi-Lingual Publishing Pack

Regarding the feature implemented by adriano32, that, If I got right, all it does is: if browser lang is configured, and it matches the default website language, the lang marker is removed from all URLs and the user is not redirected to example.com/[default-lang-mark], correct?

I see you already included it on master branch, and I understand this new behavior isn’t optional (correct?).
If so, could you consider making it an option?

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2185 2013-02-01 01:04:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

maniqui wrote:

could you consider making it an option?

I knew I shouldn’t have been so hasty.

I’ll add an option when I trawl through the code and find exactly what bits were changed.


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

#2186 2013-02-01 02:47:54

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: MLP - The Multi-Lingual Publishing Pack

Bloke wrote:

Waiting on Jonathan to reply to my email as I can’t figure out to which site he’s referring. I don’t know if his problems are related to the one ru highlighted or not.

That’s bad to hear – I replied immediately! I’m in India right now so not sure if something went missing. Please check your spam Stef – I can’t believe the mail went there but I’ll send the mail again right now. For reference, the problem site in question is ceramicdictionary.com and you have a login…

The other site your mentioned in your mail needs a site wide update, plus the MLP install on it is screwed up. But in a different way, not related to this Write tab issue.

Offline

#2187 2013-02-01 09:05:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

jstubbs wrote:

I replied immediately!

Thought it was odd not to have heard. Not in spam. And no sign of the resend either Guess it’s just gmail being over-zealous as usual. Tried logging in, but it’s refusing my advances and also the password reset confirmation email is not coming through. Grrr.

Could you please temporarily reset my password in phpMyAdmin to some known value (maybe the domain name of the ‘other site’ mentioned above that has MLP issues) and check I’m not ‘None’ privs, then I can log in straight away and change it to something I’ll remember. Ta. If I was receiving mails from that domain you could do a conventional reset, but hey… this site isn’t on spencer.joyent.us is it?

Last edited by Bloke (2013-02-01 09:12:07)


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

#2188 2013-02-01 09:35:41

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: MLP - The Multi-Lingual Publishing Pack

Bloke wrote:

If it does, it means I can tag releases directly on github

Yeah, it has. You can find the same branching and tagging commands from both.

But there is bit of a but. You are not really supposed to host compiled code on a repository, such as packaged plugins. Repositories are not for file or version dumping, but for development — for organizing revisionable source code and assets.

I would personally recommend compiling and hosting the plugins elsewhere, outside GitHub. If you want to use git for development you can put a clone up to GitHub. It’s great service and offers other neat little features too. But if you aren’t really using git, and find using it pain, the plugin has very little reason to be there.

If you want to keep using git, you can automate the packaging process by setting up a minimal packaging server which pulls the sources from GitHub (daily, or based on hooks), compiles the needed packages, and puts them up for download.

Last edited by Gocom (2013-02-01 09:55:24)

Offline

#2189 2013-02-01 10:36:29

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

Gocom wrote:

You are not really supposed to host compiled code on a repository, such as packaged plugins.

Thanks for the insight. That makes sense, and it’s a pain anyway to have them there. I’d like to pull the compiled plugins out of the github repo and manage them offline because they will always be out of sync with the source and it gets confusing.

I think the fact that github allows you to “download” a zip of the repo gives the illusion that everything you need is in that package. I will probably shuffle things around in the repo at some point, remove the compiled plugins and put some funky script thing together to bundle it all up into a ‘release’ that I’ll serve from somewhere else. Maybe I’ll still tag the releases in the repo simply so I have the option to check out a particular ‘release’ in case of a support query (and I happen to have lost the zip package I’ve prepared).


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

#2190 2013-02-02 17:50:51

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: MLP - The Multi-Lingual Publishing Pack

Bloke wrote:

Could you please temporarily reset my password in phpMyAdmin to some known value (maybe the domain name of the ‘other site’ mentioned above that has MLP issues) and check I’m not ‘None’ privs, then I can log in straight away and change it to something I’ll remember. Ta. If I was receiving mails from that domain you could do a conventional reset, but hey… this site isn’t on spencer.joyent.us is it?

Hi Stef, I’ve mailed you back to the same email account you sent the mail from. Hope it works this time!

Offline

Board footer

Powered by FluxBB