Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#265 2007-05-23 23:21:35

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

Re: MLP - The Multi-Lingual Publishing Pack

OK, last question – I have a section called Home which makes it easier for the guy running the site choose where to put his content. If he chooses Home he knows it will go on the frontpage…

But, I want Home in the menu to be the default page i.e site.com, not site.com/home which is what I get with section_list tag. Ideas??

Offline

#266 2007-05-23 23:24:56

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

Re: MLP - The Multi-Lingual Publishing Pack

Don’t include it in the sections attribute. The tag on my page looks like this: <txp:section_list active_class="active" sections="about,work" include_default="1" default_title="##home##" wraptag="ul" break="li" /> and the output is
  • Home
  • About
  • Work

Offline

#267 2007-05-24 09:26:56

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: MLP - The Multi-Lingual Publishing Pack

It’s possible to disable feature that I need to have MySQL Privileges 1 ? Why I need this privileges? Why TXP installation doesn’t need this privileges and this plugin needs? Even when I transfer whole site from my localhost to normal web hosting (so all MLP DB exists) I need this privileges. Due to this, MLP plugin DOESN’T display “article write” page (even if all db are ok and filled).

Offline

#268 2007-05-24 20:11:07

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

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

Don’t include it in the sections attribute. The tag on my page looks like this: <txp:section_list active_class="active" sections="about,work" include_default="1" default_title="##home##" wraptag="ul" break="li" /> and the output is

  • Home
  • About
  • Work

Els, I forgot to say thanks earlier for your invaluable help! Your solution was perfect and as we can expect from Textpattern, elegant and powerful..

Offline

#269 2007-05-24 21:52:44

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: MLP - The Multi-Lingual Publishing Pack

/textpattern/lib/l10n_base.php has a BOM (Byte Order Mark) at the beginning of the file which seems to cause validation warnings, see this topic

Offline

#270 2007-05-27 16:44:21

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

Re: MLP - The Multi-Lingual Publishing Pack

I have been developing a site on MAMP locally which works fine. Now I have uploaded the site to a production host, I have encountered problems.

Having read through this forum thread again from start to finish (phew!) I see that I have what is called the “empty write page” problem.

My host is using PHP 5.02, but only MySQL 4.0.27. I think MySQL is causing the problem.

I can go through all the TXP tabs, but as soon as I touch the “content” tab I get a lovely white screen. I like white, but not that much ;-)

At first, I thought maybe I was having problems in that my host is using Latin1 instead of UTF-8 (standard in MySQL 4.0) but I don’t think its that now.

If I click on ANY tab in TXP, this is the error message I get in the PHP logs:
[27-May-2007 12:36:18] PHP Notice: Trying to get property of non-object in /www/textpattern/lib/txplib_db.php on line 111
[27-May-2007 12:36:18] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /www/textpattern/lib/txplib_db.php on line 111
[27-May-2007 12:36:18] PHP Warning:
select lang from txp_lang where 1=1 GROUP BY ‘lang’ in /www/textpattern/lib/txplib_db.php on line 117

If I click on the content tab, I get the same 3 errors as above, plus this juicy fatal error:

[27-May-2007 12:40:30] PHP Fatal error: Call to a member function pref() on a non-object in /www/textpattern/lib/l10n_admin.php on line 490

High level diagnostics:

Textpattern version: 4.0.4 (r1973)
Last Update: 2007-04-06 09:06:29/2006-08-31 15:47:57
Document root: /www
$path_to_site: /www
Textpattern path: /www/textpattern
Permanent link mode: section_title
upload_tmp_dir: /php_tmpdir
Temporary directory path: /www/textpattern/tmp
Site URL: ****MY IP HERE*****
PHP version: 5.2.0
Server Local Time: 2007-05-27 12:42:20
MySQL: 4.0.27-log
Locale: es_ES.UTF-8
Server: Apache/1.3.37 (Unix) PHP/5.2.0
Apache version: Apache/1.3.37 (Unix) PHP/5.2.0
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.4.33-FQ_Enigma-xsE1044
Active plugins: gbp_admin_library-0.4.581, l10n-0.6.600, zem_contact_lang-mlp-4.0.3-MLP, ako_nav-1.0, upm_image-0.6, upm_img_popper-1.3.3, ebl_BatchUpload-1.04, zem_contact_reborn-4.0.3.19

Pre-flight check:
————————————
Web Domain DNS lookup fails: (My IP number is here)
Some Textpattern files have been modified: /lib/txplib_db.php
You are running in-development files on a live server: /publish.php
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid
clean_url_data_failed:
————————————

Hope someone has an idea on how this error can get fixed..!

Last edited by jstubbs (2007-05-28 20:48:51)

Offline

#271 2007-05-28 07:46:44

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: MLP - The Multi-Lingual Publishing Pack

I found another problem when “empty write page” is displayed. In “Sections” there aren’t new section title for other languages. There are only fields for default language.

Offline

#272 2007-05-28 20:53:15

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

Re: MLP - The Multi-Lingual Publishing Pack

Well, now I can’t log in at all into TXP. I get the blank screen at login time, so I can’t see anything at all. Sigh. Jirka, are you using MySQL 4.0x?

I thought maybe some issue could have been created by the fact that my localhost (MAMP) dumped the database from MySQL 5 in UTF-8, and the new web host is using Latin1 and MySQL 4.0.27, but its not that, because I just tried a clean install of TXP and only the MLP plugins, and after running the MLP wizard I got the blank write page.

And now, everything is blank!

Offline

#273 2007-05-28 21:28:02

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: MLP - The Multi-Lingual Publishing Pack

I use MySQL 5.0.41, all DB are UTF-8. On localhost I use MySQL 4.1.9 and this works.

And not everything is blank, only a write page – just add for example this:

www.domain.com/textpattern/index.php?event=image

Offline

#274 2007-05-29 06:51:24

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

Re: MLP - The Multi-Lingual Publishing Pack

Just tried an install in a domain hosted on TXD, and got this error message when trying to run the MLP wizard:

The MLP Pack cannot operate in this installation because…

It requires MySQL Privileges 1 SELECT, INSERT, UPDATE, DELETE, CREATE, CREATE TEMPORARY TABLES, ALTER, LOCK TABLES, INDEX, DROP or above, current install is missing CREATE TEMPORARY TABLES, LOCK TABLES.

Anyone else got this message?

If I can’t get it working on my first host, then at least it would work on TXD servers, or so I thought :-(

Edit: TXD server uses MySQL: 4.1.21 and PHP 5.14

Last edited by jstubbs (2007-05-29 07:00:04)

Offline

#275 2007-05-29 07:09:05

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

Re: MLP - The Multi-Lingual Publishing Pack

Don’t know if Latin1 could have anything to do with it, but I just managed to install MLP into a second Textdrive TXP install, and all went well!!

The first one I tried (that gave me the MLP errors in my previous post) has this in high diagnostics:

Charset (default/config): latin1/
character_set_client: latin1
character_set_connection: latin1
character_set_database: latin1
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/local/share/mysql/charsets/
19 Tables: OK

The second install has this: (the one that worked)

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/local/share/mysql/charsets/
19 Tables: txp_js is latin1

Apart from that, its just the same, as far as I can tell….

Offline

#276 2007-05-29 08:51:13

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: MLP - The Multi-Lingual Publishing Pack

Guys- I spoke to Steve the other week, just to let you know, he is on a long extended holiday at the moment. Unfortunately I’m not sure when he’ll get back.

Tell you what; As my time is limited, if someone could compile a complete list of all the currently reported issues/bugs with the MLP – I’ll see what I can do to fix some of them. Email them to me. Thanks.

Offline

Board footer

Powered by FluxBB