View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
03994Bug reportsOtherpublic2010-01-27 22:46
Reportermdekker Assigned Tomdekker  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.86 
Fixed in Version1.87+ 
Summary03994: When importing a survey with an unknown template, question preview is mixed up
Description

I imported a survey with a template that was not in my installation. The normal survey adapted well and reverted to the default template. Question preview gives me warnings and a blank screen. Then when I edit survey settings it cannot find the defined template and changes this to default. Just save and the registered template is default.

Suggested fix: during import check if the template exists and show a warning and change to default template.

As a bonus the question preview could be fixed but the only case you can have a problem when it is not fixed is when an active template is deleted. Maybe that is when we should issue a warning when one tries to delete an active (used) template.

Additional Information

Warning: file_get_contents(F:\xampplite\htdocs\Limesurvey_SVN\templates/oyvin/startpage.pstpl) [function.file-get-contents]: failed to open stream: No such file or directory in F:\xampplite\htdocs\Limesurvey_SVN\admin\preview.php on line 86

Warning: file_get_contents(F:\xampplite\htdocs\Limesurvey_SVN\templates/oyvin/startgroup.pstpl) [function.file-get-contents]: failed to open stream: No such file or directory in F:\xampplite\htdocs\Limesurvey_SVN\admin\preview.php on line 87

Warning: file_get_contents(F:\xampplite\htdocs\Limesurvey_SVN\templates/oyvin/question.pstpl) [function.file-get-contents]: failed to open stream: No such file or directory in F:\xampplite\htdocs\Limesurvey_SVN\admin\preview.php on line 89

Warning: file_get_contents(F:\xampplite\htdocs\Limesurvey_SVN\templates/oyvin/endgroup.pstpl) [function.file-get-contents]: failed to open stream: No such file or directory in F:\xampplite\htdocs\Limesurvey_SVN\admin\preview.php on line 104

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2009-12-14 17:20

updater   ~10569

El-Matador, I think this is a bug report?! Can you move it to the LS1 bugs section?

user372

2009-12-14 19:08

  ~10571

@ mdekker:
1) with which version of LimeSurvey was your template build, which you tried to import? Was it the same version and build?
2) can you attach your survey and your template?
3) can you reproduce the issue on v1.87RC5?

mdekker

mdekker

2009-12-16 08:44

reporter   ~10584

Sorry for posting in the wrong section, was browsing and forgot to put it in the right project :)

The problem is on importing a survey. In this survey a particular template is mentioned that does not exist in my config (somebody sent me the survey to test why export might fail).

I tried this on 1.87RC5 so it is a problem with the current release, but it must have been around forever I think I just happened to run in to it by accident.

c_schmitz

c_schmitz

2009-12-29 19:23

administrator   ~10693

Menno, can you take a look at this and fix it?

mdekker

mdekker

2010-01-15 12:27

reporter   ~10789

Fixed in rev 8255

Issue History

Date Modified Username Field Change
2009-12-14 13:21 mdekker New Issue
2009-12-14 17:20 Mazi Status new => assigned
2009-12-14 17:20 Mazi Assigned To => user372
2009-12-14 17:20 Mazi Note Added: 10569
2009-12-14 19:05 user372 Project @2@ => Bug reports
2009-12-14 19:08 user372 Note Added: 10571
2009-12-14 19:09 user372 Status assigned => feedback
2009-12-16 08:44 mdekker Note Added: 10584
2009-12-26 09:25 user372 Status feedback => assigned
2009-12-26 09:25 user372 Assigned To user372 => c_schmitz
2009-12-29 19:23 c_schmitz Note Added: 10693
2009-12-31 00:52 c_schmitz Assigned To c_schmitz => mdekker
2010-01-15 12:27 mdekker Note Added: 10789
2010-01-15 12:27 mdekker Status assigned => resolved
2010-01-15 12:27 mdekker Fixed in Version => 1.87+
2010-01-15 12:27 mdekker Resolution open => fixed
2010-01-27 22:46 c_schmitz Status resolved => closed
2010-05-06 10:27 c_schmitz Category Import / Export => (No Category)