translation.ts doesn't work after upgrading from 3.4.2 to 3.5.0

translation.ts doesn't work after upgrading from 3.4.2 to 3.5.0

Wednesday 23 February 2005 1:22:24 am - 5 replies

Author Message

Frederik Holljen

Wednesday 23 February 2005 1:39:50 am

Where did you get the new tranlation.ts file? When looking at the code it seems like you should get some warnings if you experience this problem. Can you check your logs and debug output and see if you can spot any problems?

Anja Lundin

Wednesday 23 February 2005 1:44:31 am

The file is the one that came with ezpublish 3.5.0.

I'll check the debug now...
Thanks!

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

Anja Lundin

Wednesday 23 February 2005 2:20:36 am

I found 3 warnings:

Warning: PHP Feb 23 2005 11:11:10
session_module_name() has been disabled for security reasons in /home/n/www/site/lib/ezutils/classes/ezsession.php on line 197

Warning: PHP Feb 23 2005 11:11:10
domxml_open_mem(): xmlParseEntityRef: expecting ';'
in /home/n/www/site/lib/ezxml/classes/ezxml.php on line 88

Warning: PHP Feb 23 2005 12:08:08
domxml_open_mem(): Specification mandate value for attribute t
in /home/n/www/site/lib/ezxml/classes/ezxml.php on line 88

If I change to the old ts-file the domxml_open_mem() warning doesn't appear.

 

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

Frederik Holljen

Wednesday 23 February 2005 5:01:48 am

There seems to be an error in the translation file or some strange bug in the XML parser. Can you report a bug (refer to this discussion) and I'll take a quick look at it later today.

Anja Lundin

Thursday 24 February 2005 1:57:36 am

Hi,
I'm really sorry but it seems to me that the error occured due to an error in the translation.ts file. A misstake made by me! One of the tags looked like this:

<translation t>

When I deleted the "t" the site works without the error!

Why it did work on the local machine and not on the web, was simply because I had disabled extension=php_domxml.dll in my php.ini.

I also had to disabled the following code in ezxml.php (if I don't it seems that the translation.ts file is not read at all.):

 

if ( $native and function_exists( 'domxml_open_mem' ) )
        {
            /* We remove all control chars from the text, although they
             * should have not be there in the first place. This is
             * iso-8859-1 and UTF-8 safe. */
          $xmlDoc = preg_replace('/[\x00-\x09\x0b-\x0c\x0e-\x1f]/', '', $xmlDoc);
            return domxml_open_mem( $xmlDoc );
        }

Mabybe this is a bug?

Thanks for your help!

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.