View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
14250Bug reportsImport/Exportpublic2021-03-11 07:50
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.15.x 
Summary14250: Unable to import some survey lss with debug=2
Description

Survey seems to work good, but receuve a notice when try to import

Steps To Reproduce

Try to import included survey : seems toi be a parent issue

TagsNo tags attached.
Attached Files
PHP notice.html (29,683 bytes)   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PHP notice</title>

<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}

body {
	font: normal 9pt "Verdana";
	color: #000;
	background: #fff;
}

h1 {
	font: normal 18pt "Verdana";
	color: #f00;
	margin-bottom: .5em;
}

h2 {
	font: normal 14pt "Verdana";
	color: #800000;
	margin-bottom: .5em;
}

h3 {
	font: bold 11pt "Verdana";
}

pre {
	font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}

pre span.error {
	display: block;
	background: #fce3e3;
}

pre span.ln {
	color: #999;
	padding-right: 0.5em;
	border-right: 1px solid #ccc;
}

pre span.error-ln {
	font-weight: bold;
}

.container {
	margin: 1em 4em;
}

.version {
	color: gray;
	font-size: 8pt;
	border-top: 1px solid #aaa;
	padding-top: 1em;
	margin-bottom: 1em;
}

.message {
	color: #000;
	padding: 1em;
	font-size: 11pt;
	background: #f3f3f3;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	margin-bottom: 1em;
	line-height: 160%;
}

.source {
	margin-bottom: 1em;
}

.code pre {
	background-color: #ffe;
	margin: 0.5em 0;
	padding: 0.5em;
	line-height: 125%;
	border: 1px solid #eee;
}

.source .file {
	margin-bottom: 1em;
	font-weight: bold;
}

.traces {
	margin: 2em 0;
}

.trace {
	margin: 0.5em 0;
	padding: 0.5em;
}

.trace.app {
	border: 1px dashed #c00;
}

.trace .number {
	text-align: right;
	width: 2em;
	padding: 0.5em;
}

.trace .content {
	padding: 0.5em;
}

.trace .plus,
.trace .minus {
	display:inline;
	vertical-align:middle;
	text-align:center;
	border:1px solid #000;
	color:#000;
	font-size:10px;
	line-height:10px;
	margin:0;
	padding:0 1px;
	width:10px;
	height:10px;
}

.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
	display: none;
}

.trace-file {
	cursor: pointer;
	padding: 0.2em;
}

.trace-file:hover {
	background: #f0ffff;
}
/*]]>*/
</style>
</head>

<body>
<div class="container">
	<h1>PHP notice</h1>

	<p class="message">
		Undefined property: TemplateConfiguration::$options	</p>

	<div class="source">
		<p class="file">/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1245)</p>
		<div class="code"><pre><span class="ln">1233</span>      * @param string $name the name of the attribute
<span class="ln">1234</span>      * @return mixed
<span class="ln">1235</span>      */
<span class="ln">1236</span>     public function __get($name)
<span class="ln">1237</span>     {
<span class="ln">1238</span>         $aAttributesThatCanBeInherited = array('files_css', 'files_js', 'options', 'cssframework_name', 'cssframework_css', 'cssframework_js', 'packages_to_load');
<span class="ln">1239</span> 
<span class="ln">1240</span>         if (in_array($name, $aAttributesThatCanBeInherited) &amp;&amp; $this-&gt;bUseMagicInherit) {
<span class="ln">1241</span>             // Full inheritance of the whole field
<span class="ln">1242</span>             $sAttribute = parent::__get($name);
<span class="ln">1243</span>             if ($sAttribute === 'inherit') {
<span class="ln">1244</span>                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
<span class="error"><span class="ln error-ln">1245</span>                 $sAttribute = $this-&gt;getParentConfiguration()-&gt;$name;
</span><span class="ln">1246</span>             }
<span class="ln">1247</span>         } else {
<span class="ln">1248</span>             $sAttribute = parent::__get($name);
<span class="ln">1249</span>         }
<span class="ln">1250</span> 
<span class="ln">1251</span>         return $sAttribute;
<span class="ln">1252</span>     }
<span class="ln">1253</span> 
<span class="ln">1254</span>     /**
<span class="ln">1255</span>      * @return string
<span class="ln">1256</span>      */
<span class="ln">1257</span>     public function getTemplateAndMotherNames()
</pre></div>	</div>

	<div class="traces">
		<h2>Stack Trace</h2>
				<table style="width:100%;">
						<tbody><tr class="trace app expanded">
			<td class="number">
				#0			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1245): <strong>TemplateConfiguration</strong>-&gt;<strong>__get</strong>("options")				</div>

				<div class="code"><pre><span class="ln">1240</span>         if (in_array($name, $aAttributesThatCanBeInherited) &amp;&amp; $this-&gt;bUseMagicInherit) {
<span class="ln">1241</span>             // Full inheritance of the whole field
<span class="ln">1242</span>             $sAttribute = parent::__get($name);
<span class="ln">1243</span>             if ($sAttribute === 'inherit') {
<span class="ln">1244</span>                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
<span class="error"><span class="ln error-ln">1245</span>                 $sAttribute = $this-&gt;getParentConfiguration()-&gt;$name;
</span><span class="ln">1246</span>             }
<span class="ln">1247</span>         } else {
<span class="ln">1248</span>             $sAttribute = parent::__get($name);
<span class="ln">1249</span>         }
<span class="ln">1250</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#1			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1062): <strong>TemplateConfiguration</strong>-&gt;<strong>__get</strong>("options")				</div>

				<div class="code"><pre><span class="ln">1057</span>     }
<span class="ln">1058</span> 
<span class="ln">1059</span>     protected function setOptions()
<span class="ln">1060</span>     {
<span class="ln">1061</span>         $this-&gt;oOptions = array();
<span class="error"><span class="ln error-ln">1062</span>         if (!empty($this-&gt;options)) {
</span><span class="ln">1063</span>             $this-&gt;oOptions = json_decode($this-&gt;options);
<span class="ln">1064</span>         }
<span class="ln">1065</span> 
<span class="ln">1066</span>         $this-&gt;setOptionInheritance();
<span class="ln">1067</span>     }
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#2			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1027): <strong>TemplateConfiguration</strong>-&gt;<strong>setOptions</strong>()				</div>

				<div class="code"><pre><span class="ln">1022</span>         $this-&gt;apiVersion       = (!empty($this-&gt;template-&gt;api_version)) ? $this-&gt;template-&gt;api_version : null; // Mandtory setting in config XML
<span class="ln">1023</span>         $this-&gt;viewPath         = $this-&gt;path.$this-&gt;getTemplateForPath($this, 'view_folder')-&gt;template-&gt;view_folder.DIRECTORY_SEPARATOR;
<span class="ln">1024</span>         $this-&gt;filesPath        = $this-&gt;path.$this-&gt;getTemplateForPath($this, 'files_folder')-&gt;template-&gt;files_folder.DIRECTORY_SEPARATOR;
<span class="ln">1025</span>         $this-&gt;generalFilesPath = Yii::app()-&gt;getConfig("userthemerootdir").DIRECTORY_SEPARATOR.'generalfiles'.DIRECTORY_SEPARATOR;
<span class="ln">1026</span>         // Options are optional
<span class="error"><span class="ln error-ln">1027</span>         $this-&gt;setOptions();
</span><span class="ln">1028</span> 
<span class="ln">1029</span>         // Not mandatory (use package dependances)
<span class="ln">1030</span>         $this-&gt;setCssFramework();
<span class="ln">1031</span>         $this-&gt;packages = $this-&gt;getDependsPackages($this);
<span class="ln">1032</span>         if (!empty($this-&gt;packages_to_load)) {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#3			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfig.php(154): <strong>TemplateConfiguration</strong>-&gt;<strong>setThisTemplate</strong>()				</div>

				<div class="code"><pre><span class="ln">149</span>         }
<span class="ln">150</span> 
<span class="ln">151</span> 
<span class="ln">152</span>         $this-&gt;setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit);
<span class="ln">153</span>         $this-&gt;setMotherTemplates(); // Recursive mother templates configuration
<span class="error"><span class="ln error-ln">154</span>         $this-&gt;setThisTemplate(); // Set the main config values of this template
</span><span class="ln">155</span>         $this-&gt;createTemplatePackage($this); // Create an asset package ready to be loaded
<span class="ln">156</span>         $this-&gt;removeFiles();
<span class="ln">157</span>         $this-&gt;getshowpopups();
<span class="ln">158</span> 
<span class="ln">159</span>         if (!empty ($sTemplateName) &amp;&amp; !empty ($iSurveyId)  ){
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#4			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/Template.php(505): <strong>TemplateConfig</strong>-&gt;<strong>prepareTemplateRendering</strong>("fruity", null)				</div>

				<div class="code"><pre><span class="ln">500</span>             return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true);
<span class="ln">501</span>         }
<span class="ln">502</span> 
<span class="ln">503</span>         if (empty(self::$instance)) {
<span class="ln">504</span>             self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML);
<span class="error"><span class="ln error-ln">505</span>             self::$instance-&gt;prepareTemplateRendering($sTemplateName, $iSurveyId);
</span><span class="ln">506</span>         }
<span class="ln">507</span> 
<span class="ln">508</span> 
<span class="ln">509</span>         return self::$instance;
<span class="ln">510</span>     }
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#5			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/helpers/replacements_helper.php(120): <strong>Template</strong>::<strong>getInstance</strong>("fruity")				</div>

				<div class="code"><pre><span class="ln">115</span>      * oTemplate is defined in controller/survey/index
<span class="ln">116</span>      *
<span class="ln">117</span>      * If templatereplace is called from the template editor, a $oTemplate is provided.
<span class="ln">118</span>      */
<span class="ln">119</span>     if ($oTemplate === '') {
<span class="error"><span class="ln error-ln">120</span>         $oTemplate = Template::model()-&gt;getInstance($templatename);
</span><span class="ln">121</span>     }
<span class="ln">122</span> 
<span class="ln">123</span>     // surveyformat
<span class="ln">124</span>     if (isset($thissurvey['format'])) {
<span class="ln">125</span>         $surveyformat = str_replace(array("A", "S", "G"), array("allinone", "questionbyquestion", "groupbygroup"), $thissurvey['format']);
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#6			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(3662): <strong>templatereplace</strong>("{SID}")				</div>

				<div class="code"><pre><span class="ln">3657</span>                 'jsName_on'=&gt;'',
<span class="ln">3658</span>                 'jsName'=&gt;'',
<span class="ln">3659</span>                 'readWrite'=&gt;'N',
<span class="ln">3660</span>             );
<span class="ln">3661</span>             /* Add the core replacement before question code : needed if use it in equation , use SID to never send error */
<span class="error"><span class="ln error-ln">3662</span>             templatereplace("{SID}");
</span><span class="ln">3663</span> 
<span class="ln">3664</span>             // Since building array of allowable answers, need to know preset values for certain question types
<span class="ln">3665</span>             $presets = array();
<span class="ln">3666</span>             $presets['G'] = array(  //GENDER drop-down list
<span class="ln">3667</span>             'M' =&gt; $this-&gt;gT("Male"),
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#7			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(5000): <strong>LimeExpressionManager</strong>-&gt;<strong>setVariableAndTokenMappingsForExpressionManager</strong>("599119", true, "N")				</div>

				<div class="code"><pre><span class="ln">4995</span>                     $LEM-&gt;allOnOnePage=false;
<span class="ln">4996</span>                     $LEM-&gt;surveyMode = 'group';
<span class="ln">4997</span>                     break;
<span class="ln">4998</span>             }
<span class="ln">4999</span> 
<span class="error"><span class="ln error-ln">5000</span>             $LEM-&gt;setVariableAndTokenMappingsForExpressionManager($surveyid,$forceRefresh,$LEM-&gt;surveyOptions['anonymized']);
</span><span class="ln">5001</span>             $LEM-&gt;currentGroupSeq=-1;
<span class="ln">5002</span>             $LEM-&gt;currentQuestionSeq=-1;    // for question-by-question mode
<span class="ln">5003</span>             $LEM-&gt;indexGseq=array();
<span class="ln">5004</span>             $LEM-&gt;indexQseq=array();
<span class="ln">5005</span>             $LEM-&gt;qrootVarName2arrayFilter=array();
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#8			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/surveyadmin.php(1378): <strong>LimeExpressionManager</strong>::<strong>StartSurvey</strong>("599119",
 "survey", array("htmlemail" =&gt; "N", "format" =&gt; "S", "template" 
=&gt; "fruity", "language" =&gt; "it", ...), true)				</div>

				<div class="code"><pre><span class="ln">1373</span>             LimeExpressionManager::singleton();
<span class="ln">1374</span>             // Why this @ !
<span class="ln">1375</span>             LimeExpressionManager::SetSurveyId($aImportResults['newsid']);
<span class="ln">1376</span>             LimeExpressionManager::RevertUpgradeConditionsToRelevance($aImportResults['newsid']);
<span class="ln">1377</span>             LimeExpressionManager::UpgradeConditionsToRelevance($aImportResults['newsid']);
<span class="error"><span class="ln error-ln">1378</span>             LimeExpressionManager::StartSurvey($oSurvey-&gt;sid, 'survey', $oSurvey-&gt;attributes, true);
</span><span class="ln">1379</span>             LimeExpressionManager::StartProcessingPage(true, true);
<span class="ln">1380</span>             $aGrouplist = QuestionGroup::model()-&gt;findAllByAttributes(['sid'=&gt;$aImportResults['newsid']]);
<span class="ln">1381</span>             foreach ($aGrouplist as $aGroup) {
<span class="ln">1382</span>                 LimeExpressionManager::StartProcessingGroup($aGroup['gid'], $oSurvey-&gt;anonymized != 'Y', $aImportResults['newsid']);
<span class="ln">1383</span>                 LimeExpressionManager::FinishProcessingGroup();
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#9			</td>
			<td class="content">
				<div class="trace-file">
										&nbsp;unknown(0): <strong>SurveyAdmin</strong>-&gt;<strong>copy</strong>()				</div>

							</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#10			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): <strong>ReflectionMethod</strong>-&gt;<strong>invokeArgs</strong>(SurveyAdmin, array())				</div>

				<div class="code"><pre><span class="ln">104</span>             elseif($param-&gt;isDefaultValueAvailable())
<span class="ln">105</span>                 $ps[]=$param-&gt;getDefaultValue();
<span class="ln">106</span>             else
<span class="ln">107</span>                 return false;
<span class="ln">108</span>         }
<span class="error"><span class="ln error-ln">109</span>         $method-&gt;invokeArgs($object,$ps);
</span><span class="ln">110</span>         return true;
<span class="ln">111</span>     }
<span class="ln">112</span> }
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#11			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(83): <strong>CAction</strong>-&gt;<strong>runWithParamsInternal</strong>(SurveyAdmin, ReflectionMethod, array("r" =&gt; "admin/survey/sa/copy", "sa" =&gt; "copy"))				</div>

				<div class="code"><pre><span class="ln">78</span>             $oMethod = new ReflectionMethod($this, $sDefault);
<span class="ln">79</span>         }
<span class="ln">80</span> 
<span class="ln">81</span>         // We're all good to go, let's execute it
<span class="ln">82</span>         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
<span class="error"><span class="ln error-ln">83</span>         return parent::runWithParamsInternal($this, $oMethod, $params);
</span><span class="ln">84</span>     }
<span class="ln">85</span> 
<span class="ln">86</span>     /**
<span class="ln">87</span>      * Some functions have different parameters, which are just an alias of the
<span class="ln">88</span>      * usual parameters we're getting in the url. This function just populates
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#12			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): <strong>Survey_Common_Action</strong>-&gt;<strong>runWithParams</strong>(array("r" =&gt; "admin/survey/sa/copy", "sa" =&gt; "copy"))				</div>

				<div class="code"><pre><span class="ln">303</span>     {
<span class="ln">304</span>         $priorAction=$this-&gt;_action;
<span class="ln">305</span>         $this-&gt;_action=$action;
<span class="ln">306</span>         if($this-&gt;beforeAction($action))
<span class="ln">307</span>         {
<span class="error"><span class="ln error-ln">308</span>             if($action-&gt;runWithParams($this-&gt;getActionParams())===false)
</span><span class="ln">309</span>                 $this-&gt;invalidActionParams($action);
<span class="ln">310</span>             else
<span class="ln">311</span>                 $this-&gt;afterAction($action);
<span class="ln">312</span>         }
<span class="ln">313</span>         $this-&gt;_action=$priorAction;
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#13			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): <strong>CController</strong>-&gt;<strong>runAction</strong>(SurveyAdmin)				</div>

				<div class="code"><pre><span class="ln">281</span>      * @see runAction
<span class="ln">282</span>      */
<span class="ln">283</span>     public function runActionWithFilters($action,$filters)
<span class="ln">284</span>     {
<span class="ln">285</span>         if(empty($filters))
<span class="error"><span class="ln error-ln">286</span>             $this-&gt;runAction($action);
</span><span class="ln">287</span>         else
<span class="ln">288</span>         {
<span class="ln">289</span>             $priorAction=$this-&gt;_action;
<span class="ln">290</span>             $this-&gt;_action=$action;
<span class="ln">291</span>             CFilterChain::create($this,$action,$filters)-&gt;run();
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#14			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): <strong>CController</strong>-&gt;<strong>runActionWithFilters</strong>(SurveyAdmin, array())				</div>

				<div class="code"><pre><span class="ln">260</span>         {
<span class="ln">261</span>             if(($parent=$this-&gt;getModule())===null)
<span class="ln">262</span>                 $parent=Yii::app();
<span class="ln">263</span>             if($parent-&gt;beforeControllerAction($this,$action))
<span class="ln">264</span>             {
<span class="error"><span class="ln error-ln">265</span>                 $this-&gt;runActionWithFilters($action,$this-&gt;filters());
</span><span class="ln">266</span>                 $parent-&gt;afterControllerAction($this,$action);
<span class="ln">267</span>             }
<span class="ln">268</span>         }
<span class="ln">269</span>         else
<span class="ln">270</span>             $this-&gt;missingAction($actionID);
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#15			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(158): <strong>CController</strong>-&gt;<strong>run</strong>("survey")				</div>

				<div class="code"><pre><span class="ln">153</span>                     $this-&gt;redirect(array('/admin/authentication/sa/login'));
<span class="ln">154</span>                 }
<span class="ln">155</span>             }
<span class="ln">156</span>         }
<span class="ln">157</span> 
<span class="error"><span class="ln error-ln">158</span>         return parent::run($action);
</span><span class="ln">159</span>     }
<span class="ln">160</span> 
<span class="ln">161</span>     /**
<span class="ln">162</span>      * Routes all the actions to their respective places
<span class="ln">163</span>      *
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#16			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): <strong>AdminController</strong>-&gt;<strong>run</strong>("survey")				</div>

				<div class="code"><pre><span class="ln">277</span>         {
<span class="ln">278</span>             list($controller,$actionID)=$ca;
<span class="ln">279</span>             $oldController=$this-&gt;_controller;
<span class="ln">280</span>             $this-&gt;_controller=$controller;
<span class="ln">281</span>             $controller-&gt;init();
<span class="error"><span class="ln error-ln">282</span>             $controller-&gt;run($actionID);
</span><span class="ln">283</span>             $this-&gt;_controller=$oldController;
<span class="ln">284</span>         }
<span class="ln">285</span>         else
<span class="ln">286</span>             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
<span class="ln">287</span>                 array('{route}'=&gt;$route===''?$this-&gt;defaultController:$route)));
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#17			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-&gt;<strong>runController</strong>("admin/survey/sa/copy")				</div>

				<div class="code"><pre><span class="ln">136</span>             foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$value)
<span class="ln">137</span>                 $_GET[$name]=$value;
<span class="ln">138</span>         }
<span class="ln">139</span>         else
<span class="ln">140</span>             $route=$this-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());
<span class="error"><span class="ln error-ln">141</span>         $this-&gt;runController($route);
</span><span class="ln">142</span>     }
<span class="ln">143</span> 
<span class="ln">144</span>     /**
<span class="ln">145</span>      * Registers the core application components.
<span class="ln">146</span>      * This method overrides the parent implementation by registering additional core components.
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#18			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-&gt;<strong>processRequest</strong>()				</div>

				<div class="code"><pre><span class="ln">180</span>     public function run()
<span class="ln">181</span>     {
<span class="ln">182</span>         if($this-&gt;hasEventHandler('onBeginRequest'))
<span class="ln">183</span>             $this-&gt;onBeginRequest(new CEvent($this));
<span class="ln">184</span>         register_shutdown_function(array($this,'end'),0,false);
<span class="error"><span class="ln error-ln">185</span>         $this-&gt;processRequest();
</span><span class="ln">186</span>         if($this-&gt;hasEventHandler('onEndRequest'))
<span class="ln">187</span>             $this-&gt;onEndRequest(new CEvent($this));
<span class="ln">188</span>     }
<span class="ln">189</span> 
<span class="ln">190</span>     /**
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#19			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/index.php(194): <strong>CApplication</strong>-&gt;<strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">189</span> require_once APPPATH . 'core/LSYii_Application' . EXT;
<span class="ln">190</span> 
<span class="ln">191</span> $config = require_once(APPPATH . 'config/internal' . EXT);
<span class="ln">192</span> 
<span class="ln">193</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">194</span> Yii::createApplication('LSYii_Application', $config)-&gt;run();
</span><span class="ln">195</span> 
<span class="ln">196</span> /* End of file index.php */
<span class="ln">197</span> /* Location: ./index.php */
</pre></div>			</td>
		</tr>
				</tbody></table>
	</div>

	<div class="version">
		2018-11-13 22:37:26 nginx/1.12.1 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.19	</div>
</div>

<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");

var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
	if(traceReg.test(e[j].className)){
		e[j].onclick = function(){
			var trace = this.parentNode.parentNode;
			if(collapsedReg.test(trace.className))
				trace.className = trace.className.replace("collapsed", "expanded");
			else
				trace.className = trace.className.replace("expanded", "collapsed");
		}
	}
}
/*]]>*/
</script>



</body></html>
PHP notice.html (29,683 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)3.15.4 github
I will donate to the project if issue is resolvedNo
Browserff
Database type & versionmariadb
Server OS (if known)fedora/linux
Webserver software & version (if known)nginx
PHP Versionphp7.2

Relationships

related to 14208 new Feature requests A way to update "parent template" 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2018-11-13 23:43

developer   ~49640

Last edited: 2018-11-13 23:43

I put the related since base code to update parent must be same

DenisChenu

DenisChenu

2018-11-14 08:28

developer   ~49645

OK, broke with lss from 2.73 and lesser : <template>default</template> …

DenisChenu

DenisChenu

2018-11-14 08:57

developer   ~49646

@LouisGac : i try to fix template name when import :
https://github.com/LimeSurvey/LimeSurvey/blob/8053d05756fed9b6c16641cb8d5f98ab55fc3724/application/helpers/admin/import_helper.php#L858

            if ($key == 'template') {
                $sTemplateName = (string)$value;
                /* Fix template if needed, see mantis 14250 */
                $value = Template::templateNameFilter($sTemplateName);
                if($value != $sTemplateName) {
                    $results['importwarnings'][] = sprintf(gT(&quot;Template are set to %s&quot;), $value);
                    $sTemplateName = $value;
                }
            }

but after i have this same notice

I don't undestand : if there are no survey template config for an existing template : we don't get the default one ?

Attach a 2.73 survey here

DenisChenu

DenisChenu

2018-11-21 14:39

developer   ~49714

Argl …
Quick fix by

                if(!isset($this->getParentConfiguration()->$name)) {
                    // recursive but no parent, return null. Mantis issue 14250 (quick fix)
                    return null;
                }
                $sAttribute = $this->getParentConfiguration()->$name;

receive Undefined property: TemplateConfiguration::$cssframework_css

PHP notice-2.html (30,962 bytes)   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PHP notice</title>

<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}

body {
	font: normal 9pt "Verdana";
	color: #000;
	background: #fff;
}

h1 {
	font: normal 18pt "Verdana";
	color: #f00;
	margin-bottom: .5em;
}

h2 {
	font: normal 14pt "Verdana";
	color: #800000;
	margin-bottom: .5em;
}

h3 {
	font: bold 11pt "Verdana";
}

pre {
	font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}

pre span.error {
	display: block;
	background: #fce3e3;
}

pre span.ln {
	color: #999;
	padding-right: 0.5em;
	border-right: 1px solid #ccc;
}

pre span.error-ln {
	font-weight: bold;
}

.container {
	margin: 1em 4em;
}

.version {
	color: gray;
	font-size: 8pt;
	border-top: 1px solid #aaa;
	padding-top: 1em;
	margin-bottom: 1em;
}

.message {
	color: #000;
	padding: 1em;
	font-size: 11pt;
	background: #f3f3f3;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	margin-bottom: 1em;
	line-height: 160%;
}

.source {
	margin-bottom: 1em;
}

.code pre {
	background-color: #ffe;
	margin: 0.5em 0;
	padding: 0.5em;
	line-height: 125%;
	border: 1px solid #eee;
}

.source .file {
	margin-bottom: 1em;
	font-weight: bold;
}

.traces {
	margin: 2em 0;
}

.trace {
	margin: 0.5em 0;
	padding: 0.5em;
}

.trace.app {
	border: 1px dashed #c00;
}

.trace .number {
	text-align: right;
	width: 2em;
	padding: 0.5em;
}

.trace .content {
	padding: 0.5em;
}

.trace .plus,
.trace .minus {
	display:inline;
	vertical-align:middle;
	text-align:center;
	border:1px solid #000;
	color:#000;
	font-size:10px;
	line-height:10px;
	margin:0;
	padding:0 1px;
	width:10px;
	height:10px;
}

.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
	display: none;
}

.trace-file {
	cursor: pointer;
	padding: 0.2em;
}

.trace-file:hover {
	background: #f0ffff;
}
/*]]>*/
</style>
</head>

<body>
<div class="container">
	<h1>PHP notice</h1>

	<p class="message">
		Undefined property: TemplateConfiguration::$cssframework_css	</p>

	<div class="source">
		<p class="file">/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1249)</p>
		<div class="code"><pre><span class="ln">1237</span>     {
<span class="ln">1238</span>         $aAttributesThatCanBeInherited = array('files_css', 'files_js', 'options', 'cssframework_name', 'cssframework_css', 'cssframework_js', 'packages_to_load');
<span class="ln">1239</span> 
<span class="ln">1240</span>         if (in_array($name, $aAttributesThatCanBeInherited) &amp;&amp; $this-&gt;bUseMagicInherit) {
<span class="ln">1241</span>             // Full inheritance of the whole field
<span class="ln">1242</span>             $sAttribute = parent::__get($name);
<span class="ln">1243</span>             if ($sAttribute === 'inherit') {
<span class="ln">1244</span>                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
<span class="ln">1245</span>                 if(!isset($this-&gt;getParentConfiguration()-&gt;$name)) {
<span class="ln">1246</span>                     // recursive but no parent, return null. Mantis issue #14250 (quick fix)
<span class="ln">1247</span>                     return null;
<span class="ln">1248</span>                 }
<span class="error"><span class="ln error-ln">1249</span>                 $sAttribute = $this-&gt;getParentConfiguration()-&gt;$name;
</span><span class="ln">1250</span>             }
<span class="ln">1251</span>         } else {
<span class="ln">1252</span>             $sAttribute = parent::__get($name);
<span class="ln">1253</span>         }
<span class="ln">1254</span> 
<span class="ln">1255</span>         return $sAttribute;
<span class="ln">1256</span>     }
<span class="ln">1257</span> 
<span class="ln">1258</span>     /**
<span class="ln">1259</span>      * @return string
<span class="ln">1260</span>      */
<span class="ln">1261</span>     public function getTemplateAndMotherNames()
</pre></div>	</div>

	<div class="traces">
		<h2>Stack Trace</h2>
				<table style="width:100%;">
						<tbody><tr class="trace app expanded">
			<td class="number">
				#0			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1249): <strong>TemplateConfiguration</strong>-&gt;<strong>__get</strong>("cssframework_css")				</div>

				<div class="code"><pre><span class="ln">1244</span>                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
<span class="ln">1245</span>                 if(!isset($this-&gt;getParentConfiguration()-&gt;$name)) {
<span class="ln">1246</span>                     // recursive but no parent, return null. Mantis issue #14250 (quick fix)
<span class="ln">1247</span>                     return null;
<span class="ln">1248</span>                 }
<span class="error"><span class="ln error-ln">1249</span>                 $sAttribute = $this-&gt;getParentConfiguration()-&gt;$name;
</span><span class="ln">1250</span>             }
<span class="ln">1251</span>         } else {
<span class="ln">1252</span>             $sAttribute = parent::__get($name);
<span class="ln">1253</span>         }
<span class="ln">1254</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#1			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1128): <strong>TemplateConfiguration</strong>-&gt;<strong>__get</strong>("cssframework_css")				</div>

				<div class="code"><pre><span class="ln">1123</span>         }
<span class="ln">1124</span> 
<span class="ln">1125</span>         $this-&gt;aFrameworkAssetsToReplace[$sType] = array();
<span class="ln">1126</span> 
<span class="ln">1127</span>         $sFieldName  = 'cssframework_'.$sType;
<span class="error"><span class="ln error-ln">1128</span>         $aFieldValue = (array) json_decode($this-&gt;$sFieldName);
</span><span class="ln">1129</span> 
<span class="ln">1130</span>         if (!empty($aFieldValue) &amp;&amp; !empty($aFieldValue['replace'])) {
<span class="ln">1131</span>             $this-&gt;aFrameworkAssetsToReplace[$sType] = (array) $aFieldValue['replace'];
<span class="ln">1132</span> 
<span class="ln">1133</span>             // Inner field inheritance
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#2			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1164): <strong>TemplateConfiguration</strong>-&gt;<strong>getFrameworkAssetsToReplace</strong>("css")				</div>

				<div class="code"><pre><span class="ln">1159</span>         if (empty($this-&gt;aReplacements)) {
<span class="ln">1160</span>             $this-&gt;aReplacements = array();
<span class="ln">1161</span>         }
<span class="ln">1162</span>         $this-&gt;aReplacements[$sType] = array();
<span class="ln">1163</span> 
<span class="error"><span class="ln error-ln">1164</span>         $aFrameworkAssetsToReplace = $this-&gt;getFrameworkAssetsToReplace($sType);
</span><span class="ln">1165</span> 
<span class="ln">1166</span>         foreach ($aFrameworkAssetsToReplace as $key =&gt; $aAsset) {
<span class="ln">1167</span>             $aReplace = $aAsset[1];
<span class="ln">1168</span>             $this-&gt;aReplacements[$sType][] = $aReplace;
<span class="ln">1169</span>         }
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#3			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfig.php(256): <strong>TemplateConfiguration</strong>-&gt;<strong>getFrameworkAssetsReplacement</strong>("css")				</div>

				<div class="code"><pre><span class="ln">251</span> 
<span class="ln">252</span>         Yii::setPathOfAlias($sPathName, $oTemplate-&gt;path);
<span class="ln">253</span>         Yii::setPathOfAlias($sViewName, $oTemplate-&gt;viewPath);
<span class="ln">254</span> 
<span class="ln">255</span>         // First we add the framework replacement (bootstrap.css must be loaded before template.css)
<span class="error"><span class="ln error-ln">256</span>         $aCssFiles  = $this-&gt;getFrameworkAssetsReplacement('css');
</span><span class="ln">257</span>         $aJsFiles   = $this-&gt;getFrameworkAssetsReplacement('js');
<span class="ln">258</span> 
<span class="ln">259</span>         // This variable will be used to add the variation name to the body class via $aClassAndAttributes['class']['body']
<span class="ln">260</span>         $this-&gt;aCssFrameworkReplacement = $aCssFiles;
<span class="ln">261</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#4			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfig.php(155): <strong>TemplateConfig</strong>-&gt;<strong>createTemplatePackage</strong>(TemplateConfiguration)				</div>

				<div class="code"><pre><span class="ln">150</span> 
<span class="ln">151</span> 
<span class="ln">152</span>         $this-&gt;setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit);
<span class="ln">153</span>         $this-&gt;setMotherTemplates(); // Recursive mother templates configuration
<span class="ln">154</span>         $this-&gt;setThisTemplate(); // Set the main config values of this template
<span class="error"><span class="ln error-ln">155</span>         $this-&gt;createTemplatePackage($this); // Create an asset package ready to be loaded
</span><span class="ln">156</span>         $this-&gt;removeFiles();
<span class="ln">157</span>         $this-&gt;getshowpopups();
<span class="ln">158</span> 
<span class="ln">159</span>         if (!empty ($sTemplateName) &amp;&amp; !empty ($iSurveyId)  ){
<span class="ln">160</span>             self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = $this;
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#5			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/models/Template.php(505): <strong>TemplateConfig</strong>-&gt;<strong>prepareTemplateRendering</strong>("vanilla", null)				</div>

				<div class="code"><pre><span class="ln">500</span>             return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true);
<span class="ln">501</span>         }
<span class="ln">502</span> 
<span class="ln">503</span>         if (empty(self::$instance)) {
<span class="ln">504</span>             self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML);
<span class="error"><span class="ln error-ln">505</span>             self::$instance-&gt;prepareTemplateRendering($sTemplateName, $iSurveyId);
</span><span class="ln">506</span>         }
<span class="ln">507</span> 
<span class="ln">508</span> 
<span class="ln">509</span>         return self::$instance;
<span class="ln">510</span>     }
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#6			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/helpers/replacements_helper.php(120): <strong>Template</strong>::<strong>getInstance</strong>("vanilla")				</div>

				<div class="code"><pre><span class="ln">115</span>      * oTemplate is defined in controller/survey/index
<span class="ln">116</span>      *
<span class="ln">117</span>      * If templatereplace is called from the template editor, a $oTemplate is provided.
<span class="ln">118</span>      */
<span class="ln">119</span>     if ($oTemplate === '') {
<span class="error"><span class="ln error-ln">120</span>         $oTemplate = Template::model()-&gt;getInstance($templatename);
</span><span class="ln">121</span>     }
<span class="ln">122</span> 
<span class="ln">123</span>     // surveyformat
<span class="ln">124</span>     if (isset($thissurvey['format'])) {
<span class="ln">125</span>         $surveyformat = str_replace(array("A", "S", "G"), array("allinone", "questionbyquestion", "groupbygroup"), $thissurvey['format']);
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#7			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(3662): <strong>templatereplace</strong>("{SID}")				</div>

				<div class="code"><pre><span class="ln">3657</span>                 'jsName_on'=&gt;'',
<span class="ln">3658</span>                 'jsName'=&gt;'',
<span class="ln">3659</span>                 'readWrite'=&gt;'N',
<span class="ln">3660</span>             );
<span class="ln">3661</span>             /* Add the core replacement before question code : needed if use it in equation , use SID to never send error */
<span class="error"><span class="ln error-ln">3662</span>             templatereplace("{SID}");
</span><span class="ln">3663</span> 
<span class="ln">3664</span>             // Since building array of allowable answers, need to know preset values for certain question types
<span class="ln">3665</span>             $presets = array();
<span class="ln">3666</span>             $presets['G'] = array(  //GENDER drop-down list
<span class="ln">3667</span>             'M' =&gt; $this-&gt;gT("Male"),
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#8			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(5000): <strong>LimeExpressionManager</strong>-&gt;<strong>setVariableAndTokenMappingsForExpressionManager</strong>("847323", true, "N")				</div>

				<div class="code"><pre><span class="ln">4995</span>                     $LEM-&gt;allOnOnePage=false;
<span class="ln">4996</span>                     $LEM-&gt;surveyMode = 'group';
<span class="ln">4997</span>                     break;
<span class="ln">4998</span>             }
<span class="ln">4999</span> 
<span class="error"><span class="ln error-ln">5000</span>             $LEM-&gt;setVariableAndTokenMappingsForExpressionManager($surveyid,$forceRefresh,$LEM-&gt;surveyOptions['anonymized']);
</span><span class="ln">5001</span>             $LEM-&gt;currentGroupSeq=-1;
<span class="ln">5002</span>             $LEM-&gt;currentQuestionSeq=-1;    // for question-by-question mode
<span class="ln">5003</span>             $LEM-&gt;indexGseq=array();
<span class="ln">5004</span>             $LEM-&gt;indexQseq=array();
<span class="ln">5005</span>             $LEM-&gt;qrootVarName2arrayFilter=array();
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#9			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/surveyadmin.php(1399): <strong>LimeExpressionManager</strong>::<strong>StartSurvey</strong>("847323",
 "survey", array("htmlemail" =&gt; "Y", "format" =&gt; "S", "template" 
=&gt; "vanilla", "language" =&gt; "en", ...), true)				</div>

				<div class="code"><pre><span class="ln">1394</span>             LimeExpressionManager::singleton();
<span class="ln">1395</span>             // Why this @ !
<span class="ln">1396</span>             LimeExpressionManager::SetSurveyId($aImportResults['newsid']);
<span class="ln">1397</span>             LimeExpressionManager::RevertUpgradeConditionsToRelevance($aImportResults['newsid']);
<span class="ln">1398</span>             LimeExpressionManager::UpgradeConditionsToRelevance($aImportResults['newsid']);
<span class="error"><span class="ln error-ln">1399</span>             LimeExpressionManager::StartSurvey($oSurvey-&gt;sid, 'survey', $oSurvey-&gt;attributes, true);
</span><span class="ln">1400</span>             LimeExpressionManager::StartProcessingPage(true, true);
<span class="ln">1401</span>             $aGrouplist = QuestionGroup::model()-&gt;findAllByAttributes(['sid'=&gt;$aImportResults['newsid']]);
<span class="ln">1402</span>             foreach ($aGrouplist as $aGroup) {
<span class="ln">1403</span>                 LimeExpressionManager::StartProcessingGroup($aGroup['gid'], $oSurvey-&gt;anonymized != 'Y', $aImportResults['newsid']);
<span class="ln">1404</span>                 LimeExpressionManager::FinishProcessingGroup();
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#10			</td>
			<td class="content">
				<div class="trace-file">
										&nbsp;unknown(0): <strong>SurveyAdmin</strong>-&gt;<strong>copy</strong>()				</div>

							</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#11			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): <strong>ReflectionMethod</strong>-&gt;<strong>invokeArgs</strong>(SurveyAdmin, array())				</div>

				<div class="code"><pre><span class="ln">104</span>             elseif($param-&gt;isDefaultValueAvailable())
<span class="ln">105</span>                 $ps[]=$param-&gt;getDefaultValue();
<span class="ln">106</span>             else
<span class="ln">107</span>                 return false;
<span class="ln">108</span>         }
<span class="error"><span class="ln error-ln">109</span>         $method-&gt;invokeArgs($object,$ps);
</span><span class="ln">110</span>         return true;
<span class="ln">111</span>     }
<span class="ln">112</span> }
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#12			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(83): <strong>CAction</strong>-&gt;<strong>runWithParamsInternal</strong>(SurveyAdmin, ReflectionMethod, array("r" =&gt; "admin/survey/sa/copy", "sa" =&gt; "copy"))				</div>

				<div class="code"><pre><span class="ln">78</span>             $oMethod = new ReflectionMethod($this, $sDefault);
<span class="ln">79</span>         }
<span class="ln">80</span> 
<span class="ln">81</span>         // We're all good to go, let's execute it
<span class="ln">82</span>         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
<span class="error"><span class="ln error-ln">83</span>         return parent::runWithParamsInternal($this, $oMethod, $params);
</span><span class="ln">84</span>     }
<span class="ln">85</span> 
<span class="ln">86</span>     /**
<span class="ln">87</span>      * Some functions have different parameters, which are just an alias of the
<span class="ln">88</span>      * usual parameters we're getting in the url. This function just populates
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#13			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): <strong>Survey_Common_Action</strong>-&gt;<strong>runWithParams</strong>(array("r" =&gt; "admin/survey/sa/copy", "sa" =&gt; "copy"))				</div>

				<div class="code"><pre><span class="ln">303</span>     {
<span class="ln">304</span>         $priorAction=$this-&gt;_action;
<span class="ln">305</span>         $this-&gt;_action=$action;
<span class="ln">306</span>         if($this-&gt;beforeAction($action))
<span class="ln">307</span>         {
<span class="error"><span class="ln error-ln">308</span>             if($action-&gt;runWithParams($this-&gt;getActionParams())===false)
</span><span class="ln">309</span>                 $this-&gt;invalidActionParams($action);
<span class="ln">310</span>             else
<span class="ln">311</span>                 $this-&gt;afterAction($action);
<span class="ln">312</span>         }
<span class="ln">313</span>         $this-&gt;_action=$priorAction;
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#14			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): <strong>CController</strong>-&gt;<strong>runAction</strong>(SurveyAdmin)				</div>

				<div class="code"><pre><span class="ln">281</span>      * @see runAction
<span class="ln">282</span>      */
<span class="ln">283</span>     public function runActionWithFilters($action,$filters)
<span class="ln">284</span>     {
<span class="ln">285</span>         if(empty($filters))
<span class="error"><span class="ln error-ln">286</span>             $this-&gt;runAction($action);
</span><span class="ln">287</span>         else
<span class="ln">288</span>         {
<span class="ln">289</span>             $priorAction=$this-&gt;_action;
<span class="ln">290</span>             $this-&gt;_action=$action;
<span class="ln">291</span>             CFilterChain::create($this,$action,$filters)-&gt;run();
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#15			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): <strong>CController</strong>-&gt;<strong>runActionWithFilters</strong>(SurveyAdmin, array())				</div>

				<div class="code"><pre><span class="ln">260</span>         {
<span class="ln">261</span>             if(($parent=$this-&gt;getModule())===null)
<span class="ln">262</span>                 $parent=Yii::app();
<span class="ln">263</span>             if($parent-&gt;beforeControllerAction($this,$action))
<span class="ln">264</span>             {
<span class="error"><span class="ln error-ln">265</span>                 $this-&gt;runActionWithFilters($action,$this-&gt;filters());
</span><span class="ln">266</span>                 $parent-&gt;afterControllerAction($this,$action);
<span class="ln">267</span>             }
<span class="ln">268</span>         }
<span class="ln">269</span>         else
<span class="ln">270</span>             $this-&gt;missingAction($actionID);
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#16			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(158): <strong>CController</strong>-&gt;<strong>run</strong>("survey")				</div>

				<div class="code"><pre><span class="ln">153</span>                     $this-&gt;redirect(array('/admin/authentication/sa/login'));
<span class="ln">154</span>                 }
<span class="ln">155</span>             }
<span class="ln">156</span>         }
<span class="ln">157</span> 
<span class="error"><span class="ln error-ln">158</span>         return parent::run($action);
</span><span class="ln">159</span>     }
<span class="ln">160</span> 
<span class="ln">161</span>     /**
<span class="ln">162</span>      * Routes all the actions to their respective places
<span class="ln">163</span>      *
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#17			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): <strong>AdminController</strong>-&gt;<strong>run</strong>("survey")				</div>

				<div class="code"><pre><span class="ln">277</span>         {
<span class="ln">278</span>             list($controller,$actionID)=$ca;
<span class="ln">279</span>             $oldController=$this-&gt;_controller;
<span class="ln">280</span>             $this-&gt;_controller=$controller;
<span class="ln">281</span>             $controller-&gt;init();
<span class="error"><span class="ln error-ln">282</span>             $controller-&gt;run($actionID);
</span><span class="ln">283</span>             $this-&gt;_controller=$oldController;
<span class="ln">284</span>         }
<span class="ln">285</span>         else
<span class="ln">286</span>             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
<span class="ln">287</span>                 array('{route}'=&gt;$route===''?$this-&gt;defaultController:$route)));
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#18			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-&gt;<strong>runController</strong>("admin/survey/sa/copy")				</div>

				<div class="code"><pre><span class="ln">136</span>             foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$value)
<span class="ln">137</span>                 $_GET[$name]=$value;
<span class="ln">138</span>         }
<span class="ln">139</span>         else
<span class="ln">140</span>             $route=$this-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());
<span class="error"><span class="ln error-ln">141</span>         $this-&gt;runController($route);
</span><span class="ln">142</span>     }
<span class="ln">143</span> 
<span class="ln">144</span>     /**
<span class="ln">145</span>      * Registers the core application components.
<span class="ln">146</span>      * This method overrides the parent implementation by registering additional core components.
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#19			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-&gt;<strong>processRequest</strong>()				</div>

				<div class="code"><pre><span class="ln">180</span>     public function run()
<span class="ln">181</span>     {
<span class="ln">182</span>         if($this-&gt;hasEventHandler('onBeginRequest'))
<span class="ln">183</span>             $this-&gt;onBeginRequest(new CEvent($this));
<span class="ln">184</span>         register_shutdown_function(array($this,'end'),0,false);
<span class="error"><span class="ln error-ln">185</span>         $this-&gt;processRequest();
</span><span class="ln">186</span>         if($this-&gt;hasEventHandler('onEndRequest'))
<span class="ln">187</span>             $this-&gt;onEndRequest(new CEvent($this));
<span class="ln">188</span>     }
<span class="ln">189</span> 
<span class="ln">190</span>     /**
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#20			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/mnt/data/shnoulle/nginx/www/master/index.php(194): <strong>CApplication</strong>-&gt;<strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">189</span> require_once APPPATH . 'core/LSYii_Application' . EXT;
<span class="ln">190</span> 
<span class="ln">191</span> $config = require_once(APPPATH . 'config/internal' . EXT);
<span class="ln">192</span> 
<span class="ln">193</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">194</span> Yii::createApplication('LSYii_Application', $config)-&gt;run();
</span><span class="ln">195</span> 
<span class="ln">196</span> /* End of file index.php */
<span class="ln">197</span> /* Location: ./index.php */
</pre></div>			</td>
		</tr>
				</tbody></table>
	</div>

	<div class="version">
		2018-11-21 13:38:06 nginx/1.12.1 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.19	</div>
</div>

<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");

var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
	if(traceReg.test(e[j].className)){
		e[j].onclick = function(){
			var trace = this.parentNode.parentNode;
			if(collapsedReg.test(trace.className))
				trace.className = trace.className.replace("collapsed", "expanded");
			else
				trace.className = trace.className.replace("expanded", "collapsed");
		}
	}
}
/*]]>*/
</script>



</body></html>
PHP notice-2.html (30,962 bytes)   
ollehar

ollehar

2021-03-10 22:36

administrator   ~63201

Please update to the latest version and check if the bug can still be reproduced. Thank you.

DenisChenu

DenisChenu

2021-03-11 07:50

developer   ~63259

SEEM FIXED

Issue History

Date Modified Username Field Change
2018-11-13 23:40 DenisChenu New Issue
2018-11-13 23:40 DenisChenu File Added: limesurvey_survey_746393.lss
2018-11-13 23:42 DenisChenu File Added: PHP notice.html
2018-11-13 23:43 DenisChenu Relationship added related to 14208
2018-11-13 23:43 DenisChenu Note Added: 49640
2018-11-13 23:43 DenisChenu Note Edited: 49640
2018-11-14 08:28 DenisChenu Note Added: 49645
2018-11-14 08:50 DenisChenu Assigned To => LouisGac
2018-11-14 08:50 DenisChenu Status new => assigned
2018-11-14 08:57 DenisChenu File Added: Modele_de_Quotas_Sans_URL_Fin_limesurvey_survey_627969.lss
2018-11-14 08:57 DenisChenu Note Added: 49646
2018-11-21 14:39 DenisChenu File Added: PHP notice-2.html
2018-11-21 14:39 DenisChenu Note Added: 49714
2021-03-10 22:36 ollehar Assigned To LouisGac =>
2021-03-10 22:36 ollehar Status assigned => feedback
2021-03-10 22:36 ollehar Note Added: 63201
2021-03-11 07:50 DenisChenu Status feedback => closed
2021-03-11 07:50 DenisChenu Resolution open => fixed
2021-03-11 07:50 DenisChenu Note Added: 63259