- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Error "Property Survey.questionindex is not defined"
- Marcin29019
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago #188287
by Marcin29019
Error "Property Survey.questionindex is not defined" was created 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?
/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?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
4 years 7 months ago #188288
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Error "Property Survey.questionindex is not defined"
Where do you host LimeSurvey? With LimeSurvey GmbH?
That error message is common when actually importing a file. I'm surprised that it will trigger when creating a new survey.
That error message is common when actually importing a file. I'm surprised that it will trigger when creating a new survey.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- Marcin29019
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 7 months ago #188289
by Marcin29019
Replied by Marcin29019 on topic Error "Property Survey.questionindex is not defined"
It's self hosted. Believe me, I am surprised too? . Do you happen to know any solution?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
4 years 7 months ago #188292
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Error "Property Survey.questionindex is not defined"
Well, you should open a bug ticket first. I would now ask the same questions as in the bugticket system. OS, PHP version etc.
If you didn't update LimeSurvey since you last used it successful, the root issue is in the server environment (PHP version and database are the first ones on the list).
Is the hosting managed or do you update the server OS and the webstack?
If you didn't update LimeSurvey since you last used it successful, the root issue is in the server environment (PHP version and database are the first ones on the list).
Is the hosting managed or do you update the server OS and the webstack?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 7 months ago #188368
by DenisChenu
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.
Replied by DenisChenu on topic Error "Property Survey.questionindex is not defined"
questionindex is a really old attributes of Survey.
Can you check the DB ? Seems strange you don't have this column …
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.
The topic has been locked.