ValueError XMLWriter::startElement(): Argument #2 must be a valid element name, "@attributes" given C:\laragon\www\limesurvey\application\helpers\export_helper.php(3152) 3140 * @param int $sParentKey parent key 3141 */ 3142 function writeXmlFromArray(XMLWriter $xml, $aData, $sParentKey = '') 3143 { 3144 $bCloseElement = false; 3145 foreach ($aData as $key => $value) { 3146 if (!empty($value)) { 3147 if (is_array($value)) { 3148 if (is_numeric($key)) { 3149 $xml->startElement($sParentKey); 3150 $bCloseElement = true; 3151 } elseif (isAssociativeArray($value)) { 3152 $xml->startElement($key); 3153 $bCloseElement = true; 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { 3163 $xml->endElement(); 3164 $bCloseElement = false; Stack Trace #0 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3152): *XMLWriter*->*startElement*("@attributes") 3147 if (is_array($value)) { 3148 if (is_numeric($key)) { 3149 $xml->startElement($sParentKey); 3150 $bCloseElement = true; 3151 } elseif (isAssociativeArray($value)) { 3152 $xml->startElement($key); 3153 $bCloseElement = true; 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); #1 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3159): *writeXmlFromArray*(XMLWriter, array("@attributes" => array("type" => "dropdown", "category" => "Simple options", "width" => "12", "title" => "Variations", ...)), "cssframework") 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { 3163 $xml->endElement(); 3164 $bCloseElement = false; #2 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3159): *writeXmlFromArray*(XMLWriter, array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...), "options") 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { 3163 $xml->endElement(); 3164 $bCloseElement = false; #3 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3159): *writeXmlFromArray*(XMLWriter, array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...)), "config") 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { 3163 $xml->endElement(); 3164 $bCloseElement = false; #4 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3157): *writeXmlFromArray*(XMLWriter, array("id" => null, "sid" => 644215, "template_name" => "HQCfruity", "config" => array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...))), "theme") 3152 $xml->startElement($key); 3153 $bCloseElement = true; 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { #5 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3159): *writeXmlFromArray*(XMLWriter, array(array("id" => null, "sid" => 644215, "template_name" => "bootswatch", "config" => array("options" => array("font" => "noto", "cssframework" => "invalid:image::theme::css\variations\cyborg.min.css", "brandlogofile" => "image::theme::files\logo.png", "container" => "off", ...))), array("id" => null, "sid" => 644215, "template_name" => "HQCfruity", "config" => array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...))), array("id" => null, "sid" => 644215, "template_name" => "vanilla", "config" => array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...)))), "theme") 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { 3163 $xml->endElement(); 3164 $bCloseElement = false; #6 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3159): *writeXmlFromArray*(XMLWriter, array("theme" => array(array("id" => null, "sid" => 644215, "template_name" => "bootswatch", "config" => array("options" => array("font" => "noto", "cssframework" => "invalid:image::theme::css\variations\cyborg.min.css", "brandlogofile" => "image::theme::files\logo.png", "container" => "off", ...))), array("id" => null, "sid" => 644215, "template_name" => "HQCfruity", "config" => array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...))), array("id" => null, "sid" => 644215, "template_name" => "vanilla", "config" => array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...))))), "themes_inherited") 3154 } 3155 3156 if (is_numeric($key)) { 3157 writeXmlFromArray($xml, $value, $sParentKey); 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { 3163 $xml->endElement(); 3164 $bCloseElement = false; #7 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3205): *writeXmlFromArray*(XMLWriter, array("themes_inherited" => array("theme" => array(array("id" => null, "sid" => 644215, "template_name" => "bootswatch", "config" => array("options" => array("font" => "noto", "cssframework" => "invalid:image::theme::css\variations\cyborg.min.css", "brandlogofile" => "image::theme::files\logo.png", "container" => "off", ...))), array("id" => null, "sid" => 644215, "template_name" => "HQCfruity", "config" => array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...))), array("id" => null, "sid" => 644215, "template_name" => "vanilla", "config" => array("options" => array("container" => "on", "zebrastriping" => "off", "stickymatrixheaders" => "off", "greyoutselected" => "off", ...))))))) 3200 } 3201 } 3202 } 3203 3204 if ($oXml !== null && !empty($aThemeData)) { 3205 writeXmlFromArray($oXml, $aThemeData); 3206 } 3207 } 3208 3209 3210 function MaskFormula($sValue) #8 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(1047): *surveyGetThemeConfiguration*(644215, XMLWriter, true, "themes_inherited") 1042 $xml->endElement(); 1043 surveyGetXMLStructure($iSurveyID, $xml, $exclude); 1044 // survey theme configuration - db values 1045 surveyGetThemeConfiguration($iSurveyID, $xml, false, 'themes'); 1046 // survey theme configuration - inherited values 1047 surveyGetThemeConfiguration($iSurveyID, $xml, true, 'themes_inherited'); 1048 $xml->endElement(); // close columns 1049 $xml->endDocument(); 1050 return $xml->outputMemory(true); 1051 } 1052 #9 + – C: \laragon\www\limesurvey\application\controllers\SurveyAdministrationController.php(2362): *surveyGetXMLData*(644215, array()) 2357 ) { 2358 $aData['sErrorMessage'] = gT("We are sorry but you don't have permissions to do this."); 2359 $aData['bFailed'] = true; 2360 } else { 2361 Yii::app()->loadHelper('export'); 2362 $copysurveydata = surveyGetXMLData($iSurveyID, $aExcludes); 2363 if (empty(Yii::app()->request->getPost('copysurveyname'))) { 2364 $sourceSurvey = Survey::model()->findByPk($iSurveyID); 2365 $sNewSurveyName = $sourceSurvey->currentLanguageSettings->surveyls_title; 2366 } else { 2367 $sNewSurveyName = Yii::app()->request->getPost('copysurveyname'); #10 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\actions\CInlineAction.php(49): *SurveyAdministrationController*->*actionCopy*() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } #11 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CController.php(308): *CInlineAction*->*runWithParams*(array()) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; #12 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\filters\CFilterChain.php(134): *CController*->*runAction*(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } #13 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CController.php(1119): *CFilterChain*->*run*() 1114 * @throws CHttpException if the current request is not a POST request 1115 */ 1116 public function filterPostOnly($filterChain) 1117 { 1118 if(Yii::app()->getRequest()->getIsPostRequest()) 1119 $filterChain->run(); 1120 else 1121 throw new CHttpException(400,Yii::t('yii','Your request is invalid.')); 1122 } 1123 1124 /** #14 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\filters\CInlineFilter.php(58): *CController*->*filterPostOnly*(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } #15 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\filters\CFilterChain.php(131): *CInlineFilter*->*filter*(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } #16 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CController.php(291): *CFilterChain*->*run*() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** #17 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CController.php(265): *CController*->*runActionWithFilters*(CInlineAction, array("postOnly + copy")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); #18 + – C: \laragon\www\limesurvey\application\controllers\LSBaseController.php(145): *CController*->*run*("copy") 140 $this->redirect(array('/admin/authentication/sa/login')); 141 } 142 } 143 } 144 145 parent::run($action); 146 } 147 148 /** 149 * Load and set session vars 150 * #19 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CWebApplication.php(282): *LSBaseController*->*run*("copy") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); #20 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CWebApplication.php(141): *CWebApplication*->*runController*("surveyAdministration/copy") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. #21 + – C: \laragon\www\limesurvey\vendor\yiisoft\yii\framework\base\CApplication.php(185): *CWebApplication*->*processRequest*() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** #22 + – C:\laragon\www\limesurvey\index.php(161): *CApplication*->*run*() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ 2024-02-09 15:21:13 Apache/2.4.54 (Win64) OpenSSL/1.1.1q mod_fcgid/ 2.3.10-dev Yii Framework /1.1.29