Error "Property Survey.questionindex is not defined"

Mehr
1 Monat 2 Wochen her #188287 von 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?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
1 Monat 2 Wochen her #188288 von jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
1 Monat 2 Wochen her #188289 von Marcin29019
It's self hosted. Believe me, I am surprised too? ;). Do you happen to know any solution?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
1 Monat 2 Wochen her #188292 von jelo
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?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
1 Monat 2 Wochen her #188368 von 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 .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha