pool multilanguage problem

Author Message

Pierre Tissot

Thursday 21 February 2008 12:57:25 am

Hi,

I have install the pool add-on to my multi-language site. The problem is that for one pool in English and the same translated to French the total result et the result it self are not the same.
If you are in English the total result is: the total sum of the votes in English and French. For me it's correct. But when we check the results show in the English sites the total number of votes do not correspond to sum show in the results.

I submit this as a bug, a long time ago, but nothing was said or done. can somebody help me

PiR

André R.

Thursday 21 February 2008 1:53:51 am

There is a view cache issue on the poll templates, specifically:
extensions/ezwebin/design/ezwebin/override/templates/line/poll.tpl

Add this to the second line to make sure the cache is cleared every 15 min (on pages that show a poll 'line'):

{set-block scope=global variable=cache_ttl}900{/set-block}

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pierre Tissot

Thursday 21 February 2008 6:16:38 am

Hi,

I think it's not a problem of cache (i tried your solution)

The problem is in FRE site we have the pool like this:

What do you think about me?

Super Cool
Trés bon
Les meilleurs

Total des votes 27 - Résultat
Super Cool 100% Votes: 1
Trés bon 0% Votes: 0
Les meilleurs 0% Votes: 0

In ENG site:

What do you think about me?

Super kay
Very Good
The best

27 total votes - Result

Super kay 31% Votes: 8

Very Good 46% Votes: 12

The best 23% Votes: 6

The total sum is ENG + FRE site and the result details are language dependent, is this normal?????

Thx
PiR

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

eZ debug

Timing: Jan 20 2025 23:34:11
Script start
Timing: Jan 20 2025 23:34:11
Module start 'layout'
Timing: Jan 20 2025 23:34:11
Module start 'content'
Timing: Jan 20 2025 23:34:11
Module end 'content'
Timing: Jan 20 2025 23:34:11
Script end

Main resources:

Total runtime0.5627 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9141151.2109
Module start 'layout' 0.00570.0032 739.125036.6484
Module start 'content' 0.00890.5528 775.7734565.8047
Module end 'content' 0.56170.0010 1,341.578111.8516
Script end 0.5627  1,353.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5668160.0002
Check MTime0.00130.2259160.0001
Mysql Total
Database connection0.00080.136710.0008
Mysqli_queries0.511990.9571570.0090
Looping result0.00050.0919550.0000
Template Total0.529994.220.2650
Template load0.00200.354920.0010
Template processing0.527993.816020.2640
Template load and register function0.00020.041110.0002
states
state_id_array0.00100.175810.0010
state_identifier_array0.00070.132920.0004
Override
Cache load0.00170.3020420.0000
Sytem overhead
Fetch class attribute can translate value0.00060.107020.0003
Fetch class attribute name0.00170.296740.0004
XML
Image XML parsing0.00070.130120.0004
class_abstraction
Instantiating content class attribute0.00000.002040.0000
General
dbfile0.00230.4135170.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs