View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
14265Bug reportsStatisticspublic2026-10-23 17:40
Reporterjarlbug Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status resolvedResolutionfixed 
Product Version3.13.x 
Summary14265: Caching id algorithm does not take into account chart label options on stats
Description

If you run a stat to PDF with charts it generates PNG files for the charts using the options selected for Graph Labels.

If you rerun the stat for the survey but change the "Graph Labels" option for instance to add in the question text the image files used are the ones generated previously because the caching id algorithm does not take this change into account.

Steps To Reproduce
  1. Produce a PDF with charts using the default option.
  2. Go back and rerun the PDF with charts but this time select a different option for the charts.

The PDF will still use the old PNGs and thus the the charts will be wrong.

Additional Information

You can clear the /tmp/*.png files and it will fix it.
Possibly affects other instances where cached files are used.
Setting debug to 2 fixes but because it disables caching.

Could lead to bad errors in output.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)Version 3.14.8+180829
I will donate to the project if issue is resolvedNo
BrowserChrome/IE11
Database type & versionMS SQL 2008 R2
Server OS (if known)Windows 10 and 7 + Server 2016
Webserver software & version (if known)IIS
PHP Version4.5
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

jarlbug

jarlbug

2018-11-20 13:55

reporter   ~49707

https://www.limesurvey.org/forum/development/116993-bug-or-issue-with-my-install#177149

as reportted above.

ollehar

ollehar

2021-03-10 22:21

reporter   ~63186

Please update to the latest version and check if the bug can still be reproduced. Thank you.

c_schmitz

c_schmitz

2026-10-23 17:40

administrator   ~86733

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40994

Related Changesets

LimeSurvey: master 0ea7732a

2026-10-23 17:40

c_schmitz


Details Diff
Fixed issue 14265: Statistics PDF/XLS bar charts kept the old labels after changing the "Graph labels" option
Dev The bar chart cache ID now includes the labels, which pCache's hash ignores because they are only stored as serie names
Affected Issues
14265
mod - application/helpers/statisticschart_helper.php Diff File

Issue History

Date Modified Username Field Change
2018-11-20 12:08 jarlbug New Issue
2018-11-20 13:55 jarlbug Note Added: 49707
2019-01-10 16:42 LouisGac Assigned To => dominikvitt
2019-01-10 16:42 LouisGac Status new => assigned
2019-07-15 11:41 dominikvitt Assigned To dominikvitt => cdorin
2021-02-07 10:21 cdorin Assigned To cdorin =>
2021-02-07 10:21 cdorin Status assigned => acknowledged
2021-03-10 22:21 ollehar Status acknowledged => feedback
2021-03-10 22:21 ollehar Note Added: 63186
2021-09-09 08:44 galads Assigned To => galads
2021-09-09 08:44 galads Status feedback => confirmed
2026-10-23 17:40 c_schmitz Changeset attached => LimeSurvey master 0ea7732a
2026-10-23 17:40 c_schmitz Note Added: 86733
2026-10-23 17:40 c_schmitz Assigned To galads => c_schmitz
2026-10-23 17:40 c_schmitz Status confirmed => resolved
2026-10-23 17:40 c_schmitz Resolution open => fixed
2026-10-23 17:40 c_schmitz Bug heat 4 => 6