Forums / Setup & design / Problem with translations

Problem with translations

Author Message

Marko Žmak

Wednesday 27 April 2005 9:41:53 am

I'm using eZ on two different servers. On one server (let's call ti OKSERVER) everyting works OK. On the other (ERORSERVER) I get memory exhaustion error when I use translations. I made identical setup procedures on both servers.

This servers differ in some PHP settings but I don't know what exactly is the reason for this error. Could someone clear this out?

Here is the PHP configuration for both servers...

OKSERVER:

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pdflib' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib'

ERRORSERVER:

'./configure' '--prefix=/usr/local' '--with-config-file-path=/usr/local/httpd/conf' '--with-zlib' '--with-bz2' '--with-jpeg-dir=/usr' '--with-tiff-dir=/usr' '--enable-ftp' '--with-png-dir=/usr' '--with-mysql=/usr' '--enable-track-vars' '--enable-memory-limit' '--with-mhash=/usr' '--with-apache=../apache_1.3.33' '--enable-calendar' '--with-gd' '--with-ming=/usr' '--with-ssl=/usr' '--with-gettext' '--with-ttf' '--with-freetype-dir' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-mbregex' '--with-curl' '--with-pgsql' '--with-pdflib=/usr/local/pdflib' '--with-xml' '--enable-bcmath' '--enable-exif' '--with-iconv' '--disable-debug' '--with-gdbm' '--enable-bcmath' '--with-dom'

I don't know if this is enough info, if not I can provide more, just tell me what.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Łukasz Serwatka

Wednesday 27 April 2005 10:58:05 am

On ERRORSERVER you have php configured with --enable-memory-limit which means that memory is limited to values set in php.ini file. On OKSERVER you don`t have this limit, so php can use whole available memory.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marko Žmak

Wednesday 27 April 2005 3:56:31 pm

O.K. On ERRORSERVER I have a 32MB limit for PHP scripts. Why this isn't enough when translations are enabled?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Łukasz Serwatka

Wednesday 27 April 2005 11:51:37 pm

Translations are parsed with an XML parser in PHP - that uses lots of memory. On ERRORSERVER seems that DOM XML is installed, maybe doesn`t work properly.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marko Žmak

Thursday 28 April 2005 4:00:45 pm

Hm I'll try to check out about dom. Do you have any other ideas why this doesn't work? Maybe different mbstring settings or something similar? What parts of PHP the translation system in eZ uses? I'm really not familiay with hoe translations work internally in eZ so I have no clue about what's the problem.

If this can help:

I've shortened the translation file - removed some parts that I don't need in the admin interface - and now everything works OK.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth