Error "Property Survey.questionindex is not defined"

More
11 months 1 week ago #188287 by Marcin29019
I am getting error "Property Survey.questionindex is not defined" when trying either to create a new survey or to import a survey (before even reaching the screen when I actually can create a survey or upload the archive). The LS version is 3.17.9+190731. In debug mode I see:
/home/www/limesurvey/framework/db/ar/CActiveRecord.php(145)

133 */
134 public function __get($name)
135 {
136 if(isset($this->_attributes[$name]))
137 return $this->_attributes[$name];
138 elseif(isset($this->getMetaData()->columns[$name]))
139 return null;
140 elseif(isset($this->_related[$name]))
141 return $this->_related[$name];
142 elseif(isset($this->getMetaData()->relations[$name]))
143 return $this->getRelated($name);
144 else
145 return parent::__get($name);
146 }
147
148 /**
149 * PHP setter magic method.
150 * This method is overridden so that AR attributes can be accessed like properties.
151 * @param string $name property name
152 * @param mixed $value property value
153 * @throws CException
154 */
155 public function __set($name,$value)
156 {
157 if($this->setAttribute($name,$value)===false)

At the beginning of Stack Trace I see this:

#0
– /home/www/limesurvey/framework/db/ar/CActiveRecord.php(145): CComponent->__get("questionindex")
140 elseif(isset($this->_related[$name]))
141 return $this->_related[$name];
142 elseif(isset($this->getMetaData()->relations[$name]))
143 return $this->getRelated($name);
144 else
145 return parent::__get($name);
146 }
147
148 /**
149 * PHP setter magic method.
150 * This method is overridden so that AR attributes can be accessed like properties.

#1
– /home/www/limesurvey/application/views/admin/survey/subview/accordion/_presentation_panel.php(41): CActiveRecord->__get("questionindex")
36 <label class=" control-label" for='questionindex'><?php eT("Show question index / allow jumping:"); ?></label>
37 <div class="">
38
39 <?php $this->widget('yiiwheels.widgets.buttongroup.WhButtonGroup', array(
40 'name' => 'questionindex',
41 'value'=> $oSurvey->questionindex ,
42 'selectOptions'=>array(
43 0 => gT('Disabled','unescaped'),
44 1 => gT('Incremental','unescaped'),
45 2 => gT('Full','unescaped'))
46 ));?>

Everything worked just fine and now - this.
What might be the reason, and - more importantly - how to fix this?

Please Log in to join the conversation.

LimeSurvey Partners
More
11 months 1 week ago #188289 by Marcin29019
It's self hosted. Believe me, I am surprised too? ;). Do you happen to know any solution?

Please Log in to join the conversation.

More
11 months 1 week ago #188368 by DenisChenu
questionindex is a really old attributes of Survey.

Can you check the DB ? Seems strange you don't have this column …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now