View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
11250Bug reportsPrint Viewpublic2016-05-25 21:15
ReporterIfH Assigned Toollehar  
PriorityimmediateSeverityminor 
Status closedResolutionno change required 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary11250: Custom template for printable survey has no effect and defaults
Description

See forum post:
https://www.limesurvey.org/de/foren/can-i-do-this-with-limesurvey/103322-printable-version-not-following-templates

I'm having the same issue. I copied the default template, made some changes but they have no effect. There is no print_template.css in the template to select and edit to begin with.
I guess LimeSurvey always uses the default template for printing. Maybe it is fallback when something is missing. The linked css in the printable page is pointing to default template:

<link href="/templates/default/css/print_template.css" type="text/css" rel="stylesheet">

When i enable debugging i get the following error in the apache logs:
Cannot serve directory /var/www/limesurvey/upload/templates/NRZ_Modul/files/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

After changing the apache configuration to allow server-generated directory indices the error disappeared but the printable survey is still defaulting.

Steps To Reproduce
  1. Copy default template
  2. Open new template and select "Screen: Printable Survey Page"
  3. Change something (e.g. add text after {SURVEYNAME})
  4. Open printable version of survey to find no effects of changes made
TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)Version 2.50+ Build 160506
I will donate to the project if issue is resolvedNo
BrowserIE11; FireFox 45.0.2
Database type & versionMySQL 5.5.46
Server OS (if known)Linux 3.13.0-59-generic #98-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Webserver software & version (if known)Apache/2.4.7
PHP VersionPHP 5.5.9-1ubuntu4.16

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2016-05-24 14:16

administrator   ~38769

Please update and try again.

IfH

IfH

2016-05-25 13:22

reporter   ~38846

I updated to Version 2.50+ Build 160525. Changes to the the pstpl have an effect now.

But now i encountered a new problem with javascript/jquery. See below:

ReferenceError: $ is not defined
http://localhost/scripts/admin/printablesurvey.js
Line 3

I will file a new bug report.

c_schmitz

c_schmitz

2016-05-25 21:15

administrator   ~38905

Version 2.50+ Build 160526 released

Issue History

Date Modified Username Field Change
2016-05-24 12:29 IfH New Issue
2016-05-24 12:52 c_schmitz Priority none => immediate
2016-05-24 14:16 ollehar Note Added: 38769
2016-05-25 10:02 ollehar Assigned To => ollehar
2016-05-25 10:02 ollehar Status new => feedback
2016-05-25 13:22 IfH Note Added: 38846
2016-05-25 13:22 IfH Status feedback => assigned
2016-05-25 13:25 ollehar Status assigned => resolved
2016-05-25 13:25 ollehar Fixed in Version => 2.5
2016-05-25 13:25 ollehar Resolution open => no change required
2016-05-25 21:15 c_schmitz Note Added: 38905
2016-05-25 21:15 c_schmitz Status resolved => closed