View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
11526Bug reportsSurvey takingpublic2016-08-29 12:38
ReporterMazi Assigned ToLouisGac 
PriorityhighSeverityminor 
Status closedResolutionunable to reproduce 
Product Version2.50.x 
Target Version2.50.x 
Summary11526: Template exception when using question index with debug enabled
Description

When enabling the debug mode and having enabled the full question index there is the following warning shown if you want to go to a following page:
"TemplateException
Template needs either template name or survey id
/var/www/vhosts/mysurveyhosting.com/httpdocs/ls250/application/models/TemplateConfiguration.php(64)"

Tested with the shipped default template. Test link: http://ls25.mysurveyhosting.com/index.php/939178/newtest/Y

Steps To Reproduce

Run a survey with debug=2 and full question index enabled. Go to the first question page and then select a following page from index to go there.

Additional Information

This blocks taking a survey (though most users should have debug mode disabled).

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)160804
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Ubuntu
Webserver software & version (if known)Apache 2
PHP Version5.5.9

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2016-08-10 10:42

developer   ~40218

It's due to javascript issue : the real index is "hidden" in fact :

I think we must

  • Show the default index by default
  • Hide the false index by default (the one at the top)

Hide and show in javascript or with a no-js/js global class.

PS : it's a template issue : in my working template : i don't use the false index, only the real (force it to show by extra css)

DenisChenu

DenisChenu

2016-08-10 10:45

developer   ~40219

PS2:

  • Another solution : false index become a real index with surveyid/12345/move/2 in the link.

If we click on the link without JS : we get to the step BUT : the actual page is not saved
If we click on the link with JS : click on real index event trigger.

I think i fix this issue after fixing all HTML part : https://github.com/Shnoulle/LimeSurvey-Shnoulle/issues

LouisGac

LouisGac

2016-08-24 15:39

developer   ~40460

I can't reproduce, and the test link is working fine too.
I remember I did some changes about that few weeks ago, so it probably also fixed that one.

c_schmitz

c_schmitz

2016-08-29 12:38

administrator   ~40544

Version 2.51.0 Build 160829 released

Issue History

Date Modified Username Field Change
2016-08-08 12:39 Mazi New Issue
2016-08-10 10:42 DenisChenu Note Added: 40218
2016-08-10 10:45 DenisChenu Note Added: 40219
2016-08-24 14:46 c_schmitz Priority none => high
2016-08-24 15:18 LouisGac Sticky Issue No => Yes
2016-08-24 15:39 LouisGac Note Added: 40460
2016-08-24 15:39 LouisGac Status new => resolved
2016-08-24 15:39 LouisGac Resolution open => unable to reproduce
2016-08-24 15:39 LouisGac Assigned To => LouisGac
2016-08-24 15:56 c_schmitz Sticky Issue Yes => No
2016-08-29 12:38 c_schmitz Note Added: 40544
2016-08-29 12:38 c_schmitz Status resolved => closed