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

eZ debug

Timing: Jan 19 2025 04:21:35
Script start
Timing: Jan 19 2025 04:21:35
Module start 'content'
Timing: Jan 19 2025 04:21:36
Module end 'content'
Timing: Jan 19 2025 04:21:36
Script end

Main resources:

Total runtime0.8507 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 588.9531180.8359
Module start 'content' 0.00910.7110 769.7891585.1797
Module end 'content' 0.72010.1305 1,354.9688341.6875
Script end 0.8506  1,696.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00500.5895210.0002
Check MTime0.00180.2166210.0001
Mysql Total
Database connection0.00130.150910.0013
Mysqli_queries0.759189.23462000.0038
Looping result0.00220.26001980.0000
Template Total0.813295.620.4066
Template load0.00260.302920.0013
Template processing0.810695.289720.4053
Template load and register function0.00010.012910.0001
states
state_id_array0.00080.088510.0008
state_identifier_array0.00110.123920.0005
Override
Cache load0.00220.2623260.0001
Sytem overhead
Fetch class attribute can translate value0.00160.186430.0005
Fetch class attribute name0.00150.180970.0002
XML
Image XML parsing0.00150.173830.0005
class_abstraction
Instantiating content class attribute0.00000.0028100.0000
General
dbfile0.00790.9307370.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs