View Issue Details

This bug affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
06021Bug reportsImport/Exportpublic2012-05-10 20:48
Reporterpatgaytx Assigned Todionet  
PriorityhighSeverityblock 
Status closedResolutionfixed 
Product Version2.00b1 
Fixed in Version2.00RC1 
Summary06021: Importing xml from 1.92 getting error Undefined variable: aImportResults
Description

Note: ../ in directory name, replaces actual location on my server.

PHP notice

Undefined variable: aImportResults

../limesurvey/application/controllers/admin/surveyadmin.php(939)

927 else
928 {
929 $importerror = true;
930 }
931 if ($action == 'importsurvey' && isset($sFullFilepath))
932 {
933 unlink($sFullFilepath);
934 }
935
936 if (isset($aImportResults['error']) && $aImportResults['error']) safeDie($aImportResults['error']);
937
938 $aData['action'] = $action;
939 $aData['sLink'] = $this->getController()->createUrl('admin/survey/view/surveyid/' . $aImportResults['newsid']);
940 $aData['aImportResults'] = $aImportResults;
941 }
942
943 $this->_renderWrappedTemplate('survey', 'importSurvey_view', $aData);
944 }
945
946 /*
947
questiongroup::organize()
948 Load ordering of question group screen.
949
@return
950 */
951 public function organize($iSurveyId)

Stack Trace
#0
unknown(0): SurveyAdmin->copy()
#1
+
../limesurvey/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(SurveyAdmin, array())
#2

../prod/limesurvey/application/core/Survey_Common_Action.php(82): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("sa" => "copy"))

77 $oMethod = new ReflectionMethod($this, $sDefault);
78 }
79
80 // We're all good to go, let's execute it
81 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
82 return parent::runWithParamsInternal($this, $oMethod, $params);
83 }
84
85 /*
86
Some functions have different parameters, which are just an alias of the
87 * usual parameters we're getting in the url. This function just populates

#3
+../limesurvey/framework/web/CController.php(309): Survey_Common_Action->runWithParams(array("sa" => "copy"))
#4
+
../limesurvey/framework/web/CController.php(287): CController->runAction(SurveyAdmin)
#5
+
../limesurvey/framework/web/CController.php(266): CController->runActionWithFilters(SurveyAdmin, array())
#6

../limesurvey/application/controllers/AdminController.php(149): CController->run("survey")

144 Yii::app()->session['redirectopage'] = Yii::app()->request->requestUri;
145
146 $this->redirect($this->createUrl('/admin/authentication/login'));
147 }
148
149 return parent::run($action);
150 }
151
152 /*
153
Routes all the actions to their respective places
154 *

#7
+
../limesurvey/framework/web/CWebApplication.php(276): AdminController->run("survey")
#8
+
../limesurvey/framework/web/CWebApplication.php(135): CWebApplication->runController("admin/survey/sa/copy")
#9
+
../limesurvey/framework/base/CApplication.php(162): CWebApplication->processRequest()
#10

..//limesurvey/index.php(171): CApplication->run()

166
167
/
168 require_once BASEPATH . 'yii' . EXT;
169 require_once APPPATH . 'core/LSYii_Application' . EXT;
170
171 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
172
173 / End of file index.php /
174 / Location: ./index.php /

2012-04-16 12:43:54 Apache Yii Framework/1.1.10

TagsNo tags attached.
Bug heat12
Complete LimeSurvey version number (& build)120406
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionMysql 5.1.56
Server OS (if known)Linux CentOS
Webserver software & version (if known)Apache 2.x
PHP Version5.2.17

Relationships

has duplicate 06040 closedc_schmitz cant import survey 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2012-04-16 22:21

updater   ~18392

I can reproduce this problem.

dionet

dionet

2012-04-24 23:06

reporter   ~18474

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8225

c_schmitz

c_schmitz

2012-05-10 20:48

administrator   ~18681

2.00RC1 released

Related Changesets

LimeSurvey: Yii 6e6c1c5a

2012-04-24 14:06:00

dionet

Details Diff
Fixed issue 06021: Importing xml from 1.92 getting error Undefined variable: aImportResults Affected Issues
06021
mod - application/controllers/admin/surveyadmin.php Diff File

Issue History

Date Modified Username Field Change
2012-04-16 20:10 patgaytx New Issue
2012-04-16 22:21 Mazi Note Added: 18392
2012-04-16 22:23 Mazi Assigned To => dionet
2012-04-16 22:23 Mazi Status new => assigned
2012-04-23 11:56 Mazi Relationship added has duplicate 06040
2012-04-24 23:06 dionet Changeset attached => LimeSurvey Yii 6e6c1c5a
2012-04-24 23:06 dionet Note Added: 18474
2012-04-24 23:06 dionet Resolution open => fixed
2012-04-24 23:07 dionet Status assigned => resolved
2012-05-10 20:47 c_schmitz Fixed in Version => 2.00RC1
2012-05-10 20:48 c_schmitz Note Added: 18681
2012-05-10 20:48 c_schmitz Status resolved => closed