TypeError XMLWriter::writeElement(): Argument #2 ($content) must be of type ?string, stdClass given C:\laragon\www\limesurvey\application\helpers\export_helper.php(3170) 3158 } else { 3159 writeXmlFromArray($xml, $value, $key); 3160 } 3161 3162 if ($bCloseElement === true) { 3163 $xml->endElement(); 3164 $bCloseElement = false; 3165 } 3166 continue; 3167 } elseif (is_numeric($key)) { 3168 $xml->writeElement($sParentKey, $value); 3169 } else { 3170 $xml->writeElement($key, $value); 3171 } 3172 } 3173 } 3174 return $xml; 3175 } 3176 3177 /** 3178 * Write XML structure for themes 3179 * @param int $iSurveyId Survey ID 3180 * @param object $oXml XMLWriter Object 3181 * @param bool $bInherit should theme configuration be inherited? 3182 * @param string $sElementName name for XML element Stack Trace #0 + – C:\laragon\www\limesurvey\application\helpers\export_helper.php(3170): *XMLWriter*->*writeElement*("cssframework", stdClass) 3165 } 3166 continue; 3167 } elseif (is_numeric($key)) { 3168 $xml->writeElement($sParentKey, $value); 3169 } else { 3170 $xml->writeElement($key, $value); 3171 } 3172 } 3173 } 3174 return $xml; 3175 } #1 + – 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; #2 + – 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; #3 + – 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) { #4 + – 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; #5 + – 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; #6 + – 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) #7 + – 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 #8 + – C:\laragon\www\limesurvey\application\controllers\SurveyAdministrationController.php(2350): *surveyGetXMLData*(644215, array()) 2345 ) { 2346 $aData['sErrorMessage'] = gT("We are sorry but you don't have permissions to do this."); 2347 $aData['bFailed'] = true; 2348 } else { 2349 Yii::app()->loadHelper('export'); 2350 $copysurveydata = surveyGetXMLData($iSurveyID, $aExcludes); 2351 if (empty(Yii::app()->request->getPost('copysurveyname'))) { 2352 $sourceSurvey = Survey::model()->findByPk($iSurveyID); 2353 $sNewSurveyName = $sourceSurvey->currentLanguageSettings->surveyls_title; 2354 } else { 2355 $sNewSurveyName = Yii::app()->request->getPost('copysurveyname'); #9 + – 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 } #10 + – 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; #11 + – C:\laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CController.php(286): *CController*->*runAction*(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); #12 + – C:\laragon\www\limesurvey\vendor\yiisoft\yii\framework\web\CController.php(265): *CController*->*runActionWithFilters*(CInlineAction, array()) 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); #13 + – 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 * #14 + – 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))); #15 + – 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. #16 + – 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 /** #17 + – 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 */ 2023-11-07 13:12:26 Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 Yii Framework /1.1.28