Mensaje de error al importan una encuesta

More
3 years 2 months ago #112254 by Acmelive
Acmelive created the topic: Mensaje de error al importan una encuesta
Hola a todos! Alguién me podrá dar una pista del origen de este problema? Estoy queriendo importar una encuesta desde un archivo lss, al realizar la importación me parece el siguiente mensaje:

CException
Property "Survey.questionindex" is not defined.

/mnt/limesurvey/limesurvey/framework/db/ar/CActiveRecord.php(160)

148 * PHP setter magic method.
149 * This method is overridden so that AR attributes can be accessed like properties.
150 * @param string $name property name
151 * @param mixed $value property value
152 */
153 public function __set($name,$value)
154 {
155 if($this->setAttribute($name,$value)===false)
156 {
157 if(isset($this->getMetaData()->relations[$name]))
158 $this->_related[$name]=$value;
159 else
160 parent::__set($name,$value);
161 }
162 }
163
164 /**
165 * Checks if a property value is null.
166 * This method overrides the parent implementation by checking
167 * if the named attribute is null or not.
168 * @param string $name the property name or the event name
169 * @return boolean whether the property value is null
170 */
171 public function __isset($name)
172 {
Stack Trace
#0
– /mnt/limesurvey/limesurvey/framework/db/ar/CActiveRecord.php(160): CComponent->__set("questionindex", "0")
155 if($this->setAttribute($name,$value)===false)
156 {
157 if(isset($this->getMetaData()->relations[$name]))
158 $this->_related[$name]=$value;
159 else
160 parent::__set($name,$value);
161 }
162 }
163
164 /**
165 * Checks if a property value is null.
#1
– /mnt/limesurvey/limesurvey/application/models/Survey.php(287): CActiveRecord->__set("questionindex", "0")
282 }
283 while (!is_null($isresult));
284
285 $survey = new self;
286 foreach ($aData as $k => $v)
287 $survey->$k = $v;
288 $sResult= $survey->save();
289 if ($sResult==false) return false;
290 else return $aData;
291 }
292
#2
– /mnt/limesurvey/limesurvey/application/helpers/admin/import_helper.php(3488): Survey->insertNewSurvey(array("sid" => "281952", "admin" => "Administrator", "adminemail" => "This email address is being protected from spambots. You need JavaScript enabled to view it.", "anonymized" => "N", ...))
3483 if (isset($insertdata))
3484 {
3485 $insertdata=$insertdata;
3486 unset($insertdata);
3487 }
3488 $iNewSID = $results = Survey::model()->insertNewSurvey($insertdata) or safeDie($clang->gT("Error").": Failed to insert data [1]<br />");
3489
3490 $results++;
3491 }
3492
3493
#3
– /mnt/limesurvey/limesurvey/application/helpers/admin/import_helper.php(3312): XMLImportSurvey("/mnt/limesurvey/limesurvey/tmp/ssb42uc3fqnsya7vqaqs.lss", null, null, null, ...)
3307 {
3308 return CSVImportSurvey($sFullFilepath, $DestSurveyID, $bTranslateLinksFields);
3309 }
3310 elseif (isset($sExtension) && strtolower($sExtension) == 'lss')
3311 {
3312 return XMLImportSurvey($sFullFilepath, null, $sNewSurveyName, $DestSurveyID, $bTranslateLinksFields);
3313 }
3314 elseif (isset($sExtension) && strtolower($sExtension) == 'txt')
3315 {
3316 return TSVImportSurvey($sFullFilepath);
3317 }
#4
– /mnt/limesurvey/limesurvey/application/controllers/admin/surveyadmin.php(955): importSurveyFile("/mnt/limesurvey/limesurvey/tmp/ssb42uc3fqnsya7vqaqs.lss", true)
950 // Now, we have the survey : start importing
951 Yii::app()->loadHelper('admin/import');
952
953 if ($action == 'importsurvey' && !$aData)
954 {
955 $aImportResults=importSurveyFile($sFullFilepath,(isset($_POST)));
956 if (is_null($aImportResults)) $importerror = true;
957 }
958 elseif ($action == 'copysurvey' && !$aData)
959 {
960 $aImportResults = XMLImportSurvey('', $copysurveydata, $sNewSurveyName,NULL,(isset($_POST)));
#5
unknown(0): SurveyAdmin->copy()
#6
– /mnt/limesurvey/limesurvey/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(SurveyAdmin, array())
102 else if($param->isDefaultValueAvailable())
103 $ps[]=$param->getDefaultValue();
104 else
105 return false;
106 }
107 $method->invokeArgs($object,$ps);
108 return true;
109 }
110 }
#7
– /mnt/limesurvey/limesurvey/application/core/Survey_Common_Action.php(100): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("sa" => "copy"))
095 $oMethod = new ReflectionMethod($this, $sDefault);
096 }
097
098 // We're all good to go, let's execute it
099 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
100 return parent::runWithParamsInternal($this, $oMethod, $params);
101 }
102
103 /**
104 * Some functions have different parameters, which are just an alias of the
105 * usual parameters we're getting in the url. This function just populates
#8
– /mnt/limesurvey/limesurvey/framework/web/CController.php(309): Survey_Common_Action->runWithParams(array("sa" => "copy"))
304 {
305 $priorAction=$this->_action;
306 $this->_action=$action;
307 if($this->beforeAction($action))
308 {
309 if($action->runWithParams($this->getActionParams())===false)
310 $this->invalidActionParams($action);
311 else
312 $this->afterAction($action);
313 }
314 $this->_action=$priorAction;
#9
– /mnt/limesurvey/limesurvey/framework/web/CController.php(287): CController->runAction(SurveyAdmin)
282 * @see runAction
283 */
284 public function runActionWithFilters($action,$filters)
285 {
286 if(empty($filters))
287 $this->runAction($action);
288 else
289 {
290 $priorAction=$this->_action;
291 $this->_action=$action;
292 CFilterChain::create($this,$action,$filters)->run();
#10
– /mnt/limesurvey/limesurvey/framework/web/CController.php(266): CController->runActionWithFilters(SurveyAdmin, array())
261 {
262 if(($parent=$this->getModule())===null)
263 $parent=Yii::app();
264 if($parent->beforeControllerAction($this,$action))
265 {
266 $this->runActionWithFilters($action,$this->filters());
267 $parent->afterControllerAction($this,$action);
268 }
269 }
270 else
271 $this->missingAction($actionID);
#11
– /mnt/limesurvey/limesurvey/application/controllers/AdminController.php(170): CController->run("survey")
165 $this->redirect($this->createUrl('/admin/authentication/sa/login'));
166 }
167
168 }
169
170 return parent::run($action);
171 }
172
173 /**
174 * Routes all the actions to their respective places
175 *
#12
– /mnt/limesurvey/limesurvey/framework/web/CWebApplication.php(276): AdminController->run("survey")
271 {
272 list($controller,$actionID)=$ca;
273 $oldController=$this->_controller;
274 $this->_controller=$controller;
275 $controller->init();
276 $controller->run($actionID);
277 $this->_controller=$oldController;
278 }
279 else
280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
281 array('{route}'=>$route===''?$this->defaultController:$route)));
#13
– /mnt/limesurvey/limesurvey/framework/web/CWebApplication.php(135): CWebApplication->runController("admin/survey/sa/copy")
130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
131 $_GET[$name]=$value;
132 }
133 else
134 $route=$this->getUrlManager()->parseUrl($this->getRequest());
135 $this->runController($route);
136 }
137
138 /**
139 * Registers the core application components.
140 * This method overrides the parent implementation by registering additional core components.
#14
– /mnt/limesurvey/limesurvey/framework/base/CApplication.php(162): CWebApplication->processRequest()
157 */
158 public function run()
159 {
160 if($this->hasEventHandler('onBeginRequest'))
161 $this->onBeginRequest(new CEvent($this));
162 $this->processRequest();
163 if($this->hasEventHandler('onEndRequest'))
164 $this->onEndRequest(new CEvent($this));
165 }
166
167 /**
#15
– /mnt/limesurvey/limesurvey/index.php(178): CApplication->run()
173 *
174 */
175 require_once BASEPATH . 'yii' . EXT;
176 require_once APPPATH . 'core/LSYii_Application' . EXT;
177
178 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
179
180 /* End of file index.php */
181 /* Location: ./index.php */

La versión del LS es 2.00+ Build 131107
Desde ya muchas gracias!!

Please Log in to join the conversation.

More
3 years 1 month ago #112748 by Acmelive
Acmelive replied the topic: Mensaje de error al importan una encuesta
Todavía no pude descubrir el origen de este problema pero lo pude solucionar eliminando los datos de navegación del browser.
Saludos,

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!