View Issue Details

This bug affects 1 person(s).
 14
IDProjectCategoryView StatusLast Update
04344Bug reportsTheme editorpublic2010-05-21 19:05
ReporterDenisChenu Assigned ToMazi  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90b 
Fixed in Version1.90RC1 
Summary04344: Unable to import template
Description

When trying to import a template file : php error:
Notice: Undefined variable: templaterootdir in /..../htdocs/limesurveybeta/admin/import_resources_zip.php on line 417

And LS show an error:
Incorrect permissions in your folder.

Steps To Reproduce

Export a template, and try to import.
Or try to import an existing template

Additional Information

Patch : correct the $basedestdir in import_resources_zip.php

417c417
< $basedestdir = $usertemplaterootdir;

$basedestdir = $templaterootdir;
TagsNo tags attached.
Bug heat14
Complete LimeSurvey version number (& build)8708
I will donate to the project if issue is resolved
BrowserFirefox
Database type & versionMySQL 5.0.77
Server OS (if known)Linux
Webserver software & version (if known)apache
PHP Version5.2.10

Relationships

has duplicate 04321 closedlemeur Error when importing template from 1.87+ (8158) 

Users monitoring this issue

DenisChenu

Activities

DenisChenu

DenisChenu

2010-05-18 01:47

developer   ~11837

Need more test on $standardtemplaterootdir .

$standardtemplates isn't an array : can add a line in admin.php line 743 : $standardtemplates[]=$file;

But best is to use
$standardtemplates = array('default', 'basic', 'limespired', ....);

But then when try to renaming not default template but a template in $standardtemplaterootdir : need to use
$olddirname= sGetTemplatePath($copydir);
and not
$olddirname=$usertemplaterootdir."/".$copydir;
at line 277 (and test if it's not a default template)

Mazi

Mazi

2010-05-18 17:32

updater   ~11852

Can this be a duplicate of http://bugs.limesurvey.org/view.php?id=4321 ?

DenisChenu

DenisChenu

2010-05-18 17:35

developer   ~11857

Yep right,

need to acces to SVN or wait for beta3 ;)

Mazi

Mazi

2010-05-18 17:56

updater   ~11863

Maybe Thibault will release another beta today. In general SVN is the best long-term solution.

lemeur

lemeur

2010-05-21 19:05

developer   ~11917

1.90 beta3 release

Issue History

Date Modified Username Field Change
2010-05-18 01:11 DenisChenu New Issue
2010-05-18 01:11 DenisChenu Status new => assigned
2010-05-18 01:11 DenisChenu Assigned To => user372
2010-05-18 01:47 DenisChenu Note Added: 11837
2010-05-18 01:48 DenisChenu Issue Monitored: DenisChenu
2010-05-18 17:32 Mazi Note Added: 11852
2010-05-18 17:32 Mazi Assigned To user372 => Mazi
2010-05-18 17:35 DenisChenu Note Added: 11857
2010-05-18 17:55 Mazi Relationship added has duplicate 04321
2010-05-18 17:56 Mazi Status assigned => resolved
2010-05-18 17:56 Mazi Fixed in Version => 1.90RC1
2010-05-18 17:56 Mazi Resolution open => fixed
2010-05-18 17:56 Mazi Note Added: 11863
2010-05-21 19:05 lemeur Note Added: 11917
2010-05-21 19:05 lemeur Status resolved => closed
2015-12-11 14:40 c_schmitz Category Templates => Theme editor
2021-08-02 18:28 guest Bug heat 12 => 14