Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#2125 2013-01-04 09:42:48

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: MLP - The Multi-Lingual Publishing Pack

My question is very simple and maybe not applicable (I’m sorry but I’m not a programmer)…
Is there a way to let MLP change page URL based on current language?
Like this

http://www.site.ext/it/sezione?c=categoria
http://www.site.ext/en/section?c=category

Isn’t that more search engine friendly?

Offline

#2126 2013-01-05 20:43:43

jeroen
Member
From: brussels.be
Registered: 2012-06-15
Posts: 16

Re: MLP - The Multi-Lingual Publishing Pack

Hello,

I’m getting the same “Sorry, the form could not be submitted. Please try again later.” javascript alert when saving an article.
The article is updated on the admin side, doesn’t show on the public side.

Running TXP 4.5.4 with MLP 4.5.2

I do not get this error on my local MAMP setup.
I tried changing the remote server’s subdomain (to be absolutely sure it isn’t a browser cache thing – I think :) – but that did not work either).

When I disable MLP, updating an article works fine without the error.

My local environment (where everything works) is running PHP Version 5.3.6.
The remote, where I get the error, is running PHP Version 5.3.17

Can I interest anyone in a phpinfo() output? (Sorry, I’m to noob to really understand what’s in there).
I’d be happy to help where I can to track this down!

Cheers,
Jeroen

Offline

#2127 2013-01-07 12:26:30

kees-b
Member
From: middelburg, nl
Registered: 2004-03-03
Posts: 235
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi,

Today I upgraded a MLP site from txp4.4.1 to txp4.5.4 and MLP-4.5.2.20121204 and I’m also seeing the ‘Sorry, the form could not be submitted. Please try again later.’ I’ll try the downgrading trick later today.

PHP: 5.3.19
MySQL: 5.5.28

edit: I can indeed confirm that a downgrade to 4.5.2, with a version correction in the txp_prefs database table, solves this issue!

-kees

Last edited by kees-b (2013-01-07 12:52:18)

Offline

#2128 2013-01-07 12:51:22

kees-b
Member
From: middelburg, nl
Registered: 2004-03-03
Posts: 235
Website

Re: MLP - The Multi-Lingual Publishing Pack

One more little problem. When unchecking a language checkbox above the reditions list, nothing happens. All renditions are shown, also the unchecked.

-k

Offline

#2129 2013-01-08 21:35:59

jeroen
Member
From: brussels.be
Registered: 2012-06-15
Posts: 16

Re: MLP - The Multi-Lingual Publishing Pack

kees-b wrote:

I’ll try the downgrading trick later today.

Hello Kees,

Did your downgrade work out well?

Could you point me to that downgrading trick?
My google skills are failing me..

Cheers,
Jeroen

Offline

#2130 2013-01-09 09:21:26

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

Re: MLP - The Multi-Lingual Publishing Pack

all

Sorry about the strangeness on the Write panel. Can’t for the life of me fathom why it works fine on my installation and not others, but I’ll find some time (hopefully today or tomorrow) to do a fresh install of 4.5.4 + MLP and see if I can replicate any of the issues, then set phasers to BugSquash.


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

#2131 2013-01-09 11:50:35

kees-b
Member
From: middelburg, nl
Registered: 2004-03-03
Posts: 235
Website

Re: MLP - The Multi-Lingual Publishing Pack

jeroen wrote:

kees-b wrote:
Could you point me to that downgrading trick?

Hi Jeroen,

It’s in this post
I replaced the textpattern 4.5.4 folder with the 4.5.2 one. When logging in you are indeed trapped in the language list. You have to go to the txp_prefs table with phpMyAdmin and change the version field from 4.5.4 to 4.5.2. When logging in again all is normal.

-kees

Last edited by kees-b (2013-01-09 12:07:33)

Offline

#2132 2013-01-09 12:04:43

kees-b
Member
From: middelburg, nl
Registered: 2004-03-03
Posts: 235
Website

Re: MLP - The Multi-Lingual Publishing Pack

Some other weirdness… (but solved)

On the same server after a php upgrade to 5.3.19 the locale files dissapeared or were not installed correctly. Immediately my client was complaining about articles appearing in the ‘wrong’ language sections. As I was not immediately aware of the missing locales I thought maybe the 4.4.1/MLP install was not compatible anymore with PHP 5.3.19.

Only when I noticed that all dates on the site were in english I found out about the missing locales. Once they were reinstalled, and the MLP related cookies in my browser were trashed all was back to normal. So if you find wrong languages in the l10n_txp tables check your locale files.
I also had to persuade the provider to reinstall en_GB.utf8, they thought en_US.utf8 was english enough. ;)

-k

Offline

#2133 2013-01-09 23:43:48

adriano32
Member
From: Ukraine
Registered: 2013-01-09
Posts: 15

Re: MLP - The Multi-Lingual Publishing Pack

Hi there!

I have recently installed TP 4.5.4 and now working on MLP 4.5.2 setup (github zip archive from https://github.com/Bloke/MLP).
If necessary, FreeBSD 8.3 amd64:
mysql Ver 14.14 Distrib 5.5.27, for FreeBSD8.3 (amd64) using 5.2
PHP 5.4.7 (cli) (built: Oct 10 2012 00:47:14)
lighttpd/1.4.31

While starting MLP wizard first i receive error: "Array to string conversion"
After pressing OK i see MLP Pack Setup The following steps will be taken to install configure the MLP Pack… page, but after pressing MLP Pack Setup and confirming in Are you sure dialog i receive a blank page.

I have tried to debug it myself and added into l10n_admin_classes.php file following call:
debug_print_backtrace();
at line 5047 before @session_start();

Now i have debug output of plugin load (don’t mention `txp_lang.l10n_owner` field : Failed, i checked, this field is already in database, because i tried to finish setup few times, and code contains no check of field existance)

PHP is in development mode, e.g.

display_errors = On
error_reporting = E_ALL
display_startup_errors = On
track_errors = On

Any suggestions?

Last edited by adriano32 (2013-01-09 23:49:15)

Offline

#2134 2013-01-14 02:19:06

adriano32
Member
From: Ukraine
Registered: 2013-01-09
Posts: 15

Re: MLP - The Multi-Lingual Publishing Pack

Hi Bloke!

In this thread i have suggested workaround for stripping language code from url’s which are shown on the pages generated in default site language.

For example, if my site’s default language is Ukrainian and my browser sends uk in HTTP_ACCEPT_LANGUAGE header, i will have http://localhost/uk/ main page and all URIs relative to http://localhost/uk/.
This is a bit cosmetic, but i guess URIs for default language should be accessable without language code suffix in URI by default, e.g. in my case, all URIs will be relative to http://localhost/ not to http://localhost/uk/ but still shown in default language, meanwhile http://localhost/uk/ relative URIs works fine too.

What is your opinion?

Offline

#2135 2013-01-20 03:56:30

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

Re: MLP - The Multi-Lingual Publishing Pack

Even after downgrading to 4.5.2 I’m seeing problems on one MLP install. Article edits are not getting saved to the DB at all. No idea why so far.

Offline

#2136 2013-01-20 20:56:22

adriano32
Member
From: Ukraine
Registered: 2013-01-09
Posts: 15

Re: MLP - The Multi-Lingual Publishing Pack

jstubbs wrote:

Even after downgrading to 4.5.2 I’m seeing problems on one MLP install. Article edits are not getting saved to the DB at all. No idea why so far.

Let’s debug! What is your php/mysql? Have you compared l10n_* tables before and after edits saving? Can you turn on mysql query logging?

btw Bloke have pushed a few patches two days ago

Offline

Board footer

Powered by FluxBB