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.
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.
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?
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 support
-
Plugins, theme and development
. I don't answer to private message.