View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
05826Bug reportsImport/Exportpublic2012-03-11 16:32
ReporterMazi Assigned Tomagiclko 
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00a2 
Target Version2.00a2Fixed in Version2.00a2 
Summary05826: Import of multilingual survey fails
Description

When I try to import the attached multilingual survey, I get the following errors:
CException

Property "Survey.showXquestions" is not defined.

C:\xampp\htdocs\limesurveygit_yii\framework\db\ar\CActiveRecord.php(145)

133 PHP setter magic method.
134
This method is overridden so that AR attributes can be accessed like properties.
135 @param string $name property name
136
@param mixed $value property value
137 */
138 public function __set($name,$value)
139 {
140 if($this->setAttribute($name,$value)===false)
141 {
142 if(isset($this->getMetaData()->relations[$name]))
143 $this->_related[$name]=$value;
144 else
145 parent::set($name,$value);
146 }
147 }
148
149 /*
150
Checks if a property value is null.
151 This method overrides the parent implementation by checking
152
if the named attribute is null or not.
153 @param string $name the property name or the event name
154
@return boolean whether the property value is null
155 @since 1.0.1
156
/
157 public function
isset($name)

Steps To Reproduce

Import the attached survey

Additional Information

Problem doesn't seem to show up for monolingual surveys

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)12448
I will donate to the project if issue is resolvedNo
BrowserFirefox 9
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

magiclko

magiclko

2012-02-16 20:14

reporter   ~17479

Mazi : Update your database scheme! It should be at 155 dbversion and in prefix_surveys table, you must be having showXquestions column name instead of showxquestions and hence the error. Happens when using old database. Try a fresh install and issue will be resolved or just update the old schema!

Mazi

Mazi

2012-02-21 13:24

updater   ~17525

I just updated all files from GIT, did a fresh MYSQL install and the DB scheme is 155 BUT the installer still seems to use lower X at CREATE TABLE prefix_surveys (...

-> showxquestions char(1) default 'Y',

Mazi

Mazi

2012-02-21 13:29

updater   ~17529

The import issue is solved when manually renaming the column, but the instaler should be fixed accordingly. Since I don't consider this worth an extra bug report, I'll keep this one open until it is solved.

magiclko

magiclko

2012-02-21 14:19

reporter   ~17530

and that's how it should be :) showxquestions char(1) default 'Y' ' and not
'showXquestions char(1) default 'Y' '

DenisChenu

DenisChenu

2012-02-21 14:20

developer   ~17531

Hello Mazi,

Actually :
Installer/updater of 1.92: showxquestions
Installer/updater of 2.00: showxquestions

http://limesurvey.svn.sourceforge.net/viewvc/limesurvey?view=revision&revision=12256

Mazi

Mazi

2012-02-21 14:55

updater   ~17532

k, maybe I just didn't update my PHP files correctly.

c_schmitz

c_schmitz

2012-03-11 16:32

administrator   ~17846

2.00alpha 2 Build 120212 released

Issue History

Date Modified Username Field Change
2012-02-16 13:19 Mazi New Issue
2012-02-16 13:19 Mazi Status new => assigned
2012-02-16 13:19 Mazi Assigned To => magiclko
2012-02-16 13:19 Mazi File Added: SAMPLE_SURVEY_191_EN_DE_FR.lss
2012-02-16 20:14 magiclko Note Added: 17479
2012-02-16 20:14 magiclko Status assigned => feedback
2012-02-21 13:24 Mazi Note Added: 17525
2012-02-21 13:24 Mazi Status feedback => assigned
2012-02-21 13:29 Mazi Note Added: 17529
2012-02-21 14:19 magiclko Note Added: 17530
2012-02-21 14:20 DenisChenu Note Added: 17531
2012-02-21 14:55 Mazi Note Added: 17532
2012-02-21 14:55 Mazi Status assigned => resolved
2012-02-21 14:55 Mazi Fixed in Version => 2.00a2
2012-02-21 14:55 Mazi Resolution open => fixed
2012-03-11 16:32 c_schmitz Note Added: 17846
2012-03-11 16:32 c_schmitz Status resolved => closed