View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
12364Bug reportsSurvey editingpublic2018-02-22 14:18
Reportertammo Assigned ToLouisGac 
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Summary12364: Crash when ask for printable version
Description

When I want to show the printable version of my survey, I get a crash

Steps To Reproduce

See first line. Maybe one backslash () too many?

Additional Information

No template file found at path D:\Dropbox\sites\drupal\hoofdtoegang\limegit.toolsforresearch.com\public_html\templates\default\views\print_question.pstpl

D:\Dropbox\sites\drupal\hoofdtoegang\limegit.toolsforresearch.com\public_html\application\controllers\admin\printablesurvey.php(1641)

1629 define( $full_constant , file_get_contents($full_path));
1630
1631 $template_content = constant($full_constant);
1632 $test_empty = trim($template_content);
1633 if(empty($test_empty))
1634 {
1635 return "<!--\n\t$full_path\n\tThe template was empty so is useless.\n-->";
1636 }
1637 }
1638 else
1639 {
1640 // No template found, abort
1641 throw new \Exception("No template file found at path " . $full_path);
1642 }
1643 }
1644 else
1645 {
1646 $template_content = constant($full_constant);
1647 $test_empty = trim($template_content);
1648 if(empty($test_empty))
1649 {
1650 return "<!--\n\t$full_path\n\tThe template was empty so is useless.\n-->";
1651 }
1652 }
1653

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)3.0.0-alpha
I will donate to the project if issue is resolvedNo
Browserff
Database type & versionff
Server OS (if known)ff
Webserver software & version (if known)ff
PHP Versionff

Relationships

related to 12527 closeduser14106 Printable views not working for twig 

Users monitoring this issue

There are no users monitoring this issue.

Activities

tammo

tammo

2017-05-01 14:44

developer   ~43505

Line 1641 was highlighted

tammo

tammo

2017-05-01 14:46

developer   ~43506

Just an idea: would it be possible to choose a template for printing the survey? My customer wants a cleaner print (no hidden questions where relevance is 0, no expressions), while a developer wants to see something more verbose...

LouisGac

LouisGac

2017-05-02 10:08

developer   ~43508

yep we could have separated templates for some pages, like print surveys, list surveys, etc
would make sense

user14106

2017-07-14 10:35

  ~44084

Property "TemplateConfiguration.pstplPath" is not defined.
/var/www/html/application/controllers/admin/printablesurvey.php(86):

Issue History

Date Modified Username Field Change
2017-05-01 14:42 tammo New Issue
2017-05-01 14:42 tammo Status new => assigned
2017-05-01 14:42 tammo Assigned To => LouisGac
2017-05-01 14:44 tammo Note Added: 43505
2017-05-01 14:46 tammo Note Added: 43506
2017-05-02 10:08 LouisGac Note Added: 43508
2017-05-05 14:16 LouisGac Sticky Issue No => Yes
2017-07-06 18:57 DenisChenu Product Version 3.0.x => 3.0
2017-07-06 18:57 DenisChenu Target Version 3.0.x => 3.0
2017-07-14 10:34 user14106 Relationship added related to 12527
2017-07-14 10:35 user14106 Note Added: 44084
2017-09-13 12:28 LouisGac Status assigned => closed
2017-09-13 12:28 LouisGac Resolution open => fixed
2018-02-22 14:18 c_schmitz Sticky Issue Yes => No
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing