View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05339Bug reportsImport/Exportpublic2011-07-12 16:54
Reporterwrenchpilot Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionunable to reproduce 
Product Version1.91+ 
Summary05339: TCPDF Error
Description

TCPDF ERROR: [Image] Unable to get image: /var/www/surveys/limesurvey/admin/classes/tcpdf/images/statistics.png

Steps To Reproduce

Try to export survey statistics as PDF. Fail.

Additional Information

I checked to see if the file "/var/www/surveys/limesurvey/admin/classes/tcpdf/images/statistics.png" exists and it does not. Files possibly missing from the comfort updater.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)10453
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)RHEL5
Webserver software & version (if known)Apache
PHP Version5.2.10
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-07-12 15:08

administrator   ~15735

Works just fine here on Linux. Try a full manuall update (not ComfortUpdater) to the latest version and please report if the problem remains.

wrenchpilot

wrenchpilot

2011-07-12 15:18

reporter   ~15738

I just downloaded the latest tarball "10486" and the "statistics.png" file is not in the "/limesurvey/admin/classes/tcpdf/images/" folder. Which is the fatal error being thrown. The file does exist in the "/images" folder.

The script either needs to be updated to point to the correct path to the file or the file needs to be included in the "/limesurvey/admin/classes/tcpdf/images/" folder.

c_schmitz

c_schmitz

2011-07-12 15:27

administrator   ~15739

Last edited: 2011-07-12 15:27

That is not the latest release version. Please do exactly as requested and report back. Thank you.

wrenchpilot

wrenchpilot

2011-07-12 15:39

reporter   ~15741

I somehow mistyped the version I downloaded (10494). The file is not installed in the location that is being referenced. It doesn't work unless I copy the "statistics.png" file into the "/limesurvey/admin/classes/tcpdf/images" folder. Either copy the file there in the installation or fix the path in "/limesurvey/admin/statistics_functions.php" line #253.

wrenchpilot

wrenchpilot

2011-07-12 15:41

reporter   ~15742

There's even a comment noting the path looks "awkward" in the "/limesurvey/admin/statistics_functions.php"

[code]
// set default header data
// the path looks awkward - did not find a better solution to set the image path?
$pdf->SetHeaderData("statistics.png", 10, $statlang->gT("Quick statistics",'unescaped') , $statlang->gT("Survey")." ".$surveyid." '".FlattenText($surveyInfo['surveyls_title'],true,'UTF-8')$
[/code]

c_schmitz

c_schmitz

2011-07-12 15:49

administrator   ~15743

I am sorry, but you are wrong. The file is not supposed to be in /limesurvey/admin/classes/tcpdf/images and is present in /images.
The path in #253 of statistics_function is also fine.
The path to images for PDFs is actually defined in line 97 of D:\web\xampp\htdocs\limesurvey\admin\classes\tcpdf\config\tcpdf_config.php

I am guessing that you are still using an outdated or badly modified config-defaults.php (which you never should modify).

So?

wrenchpilot

wrenchpilot

2011-07-12 16:33

reporter   ~15745

The config-defaults.php hasn't been touched.
The issue seems to be from the Comfort Updater. Every time I've used it, I have a new issue like this one pop up. Switching to manual updates.
Thanks and sorry for the trouble.

Issue History

Date Modified Username Field Change
2011-07-11 23:44 wrenchpilot New Issue
2011-07-12 15:07 c_schmitz Assigned To => c_schmitz
2011-07-12 15:07 c_schmitz Status new => assigned
2011-07-12 15:08 c_schmitz Note Added: 15735
2011-07-12 15:08 c_schmitz Status assigned => feedback
2011-07-12 15:18 wrenchpilot Note Added: 15738
2011-07-12 15:18 wrenchpilot Status feedback => assigned
2011-07-12 15:27 c_schmitz Note Added: 15739
2011-07-12 15:27 c_schmitz Status assigned => feedback
2011-07-12 15:27 c_schmitz Note Edited: 15739
2011-07-12 15:39 wrenchpilot Note Added: 15741
2011-07-12 15:39 wrenchpilot Status feedback => assigned
2011-07-12 15:41 wrenchpilot Note Added: 15742
2011-07-12 15:49 c_schmitz Note Added: 15743
2011-07-12 16:33 wrenchpilot Note Added: 15745
2011-07-12 16:53 c_schmitz Status assigned => closed
2011-07-12 16:54 c_schmitz Resolution open => unable to reproduce